fixed benchmark

This commit is contained in:
Paul Gauthier 2023-12-05 11:21:11 -08:00
parent d92a93221c
commit bf03f43b44
4 changed files with 18 additions and 11 deletions

View file

@ -274,13 +274,17 @@ done
You can also script aider from python:
```python
import openai
from aider.coders import Coder
# Make an openai client
client = openai.OpenAI(api_key=os.environ["OPENAI_API_KEY"])
# This is a list of files to add to the chat
fnames = ["foo.py"]
# Create a coder object
coder = Coder.create(fnames=fnames)
coder = Coder.create(client=client, fnames=fnames)
# This will execute one instruction on those files and then return
coder.run("make a script that prints hello world")