mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
copy
This commit is contained in:
parent
87ab5495a7
commit
c16210cdd7
2 changed files with 8 additions and 6 deletions
|
@ -2,10 +2,11 @@
|
||||||
|
|
||||||
### main branch
|
### main branch
|
||||||
|
|
||||||
|
- Streamlined [API for scripting aider, added docs](https://aider.chat/docs/faq.html#can-i-script-aider)
|
||||||
- Ask for more concise SEARCH/REPLACE blocks. [Benchmarked](https://aider.chat/docs/benchmarks.html) at 63.9%, no regression.
|
- Ask for more concise SEARCH/REPLACE blocks. [Benchmarked](https://aider.chat/docs/benchmarks.html) at 63.9%, no regression.
|
||||||
- Improved repo-map support for elisp.
|
- Improved repo-map support for elisp.
|
||||||
- Fixed crash bug when `/add` used on file matching `.gitignore`
|
- Fixed crash bug when `/add` used on file matching `.gitignore`
|
||||||
- Fixed crash bug when repo-map processed file not matching `--encoding`
|
- Fixed misc bugs to catch and handle unicode decoding errors.
|
||||||
|
|
||||||
### v0.16.3
|
### v0.16.3
|
||||||
|
|
||||||
|
|
11
docs/faq.md
11
docs/faq.md
|
@ -278,12 +278,13 @@ from aider.coders import Coder
|
||||||
# This is a list of files to add to the chat
|
# This is a list of files to add to the chat
|
||||||
fnames = ['foo.py']
|
fnames = ['foo.py']
|
||||||
|
|
||||||
# This is the instruction to give to GPT
|
|
||||||
message = 'make a script that prints hello world!'
|
|
||||||
|
|
||||||
# Create a coder object
|
# Create a coder object
|
||||||
coder = Coder.create(fnames=fnames)
|
coder = Coder.create(fnames=fnames)
|
||||||
|
|
||||||
# This will execute that one instruction on those files and then return
|
# This will execute one instruction on those files and then return
|
||||||
coder.run(message)
|
coder.run("make a script that prints hello world")
|
||||||
|
|
||||||
|
# Send another instruction
|
||||||
|
coder.run("make it say goodbye")
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue