This commit is contained in:
Paul Gauthier 2023-11-03 14:39:47 -07:00
parent 87ab5495a7
commit c16210cdd7
2 changed files with 8 additions and 6 deletions

View file

@ -2,10 +2,11 @@
### 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.
- Improved repo-map support for elisp.
- 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

View file

@ -278,12 +278,13 @@ from aider.coders import Coder
# This is a list of files to add to the chat
fnames = ['foo.py']
# This is the instruction to give to GPT
message = 'make a script that prints hello world!'
# Create a coder object
coder = Coder.create(fnames=fnames)
# This will execute that one instruction on those files and then return
coder.run(message)
# This will execute one instruction on those files and then return
coder.run("make a script that prints hello world")
# Send another instruction
coder.run("make it say goodbye")
```