mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
copy
This commit is contained in:
parent
fe6257b513
commit
60d92feaa8
1 changed files with 3 additions and 2 deletions
|
@ -118,11 +118,12 @@ You can also script aider from python:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from aider.coders import Coder
|
from aider.coders import Coder
|
||||||
|
from aider.models import Model
|
||||||
|
|
||||||
# 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 = ["greeting.py"]
|
||||||
|
|
||||||
model = models.Model("gpt-4-turbo", weak_model="gpt-3.5-turbo")
|
model = Model("gpt-4-turbo", weak_model="gpt-3.5-turbo")
|
||||||
|
|
||||||
# Create a coder object
|
# Create a coder object
|
||||||
coder = Coder.create(main_model=model, fnames=fnames)
|
coder = Coder.create(main_model=model, fnames=fnames)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue