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
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
|
||||
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")
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue