From c16210cdd78484e79b457b62095b7ce0bb0ae091 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 3 Nov 2023 14:39:47 -0700 Subject: [PATCH] copy --- HISTORY.md | 3 ++- docs/faq.md | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 503d3a362..d75d11aae 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/docs/faq.md b/docs/faq.md index f517d8a78..d736e9a1e 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -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") + ```