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

@ -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")
```