mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
update benchmark driver
This commit is contained in:
parent
743d3f0d1c
commit
edbec5498e
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,7 @@ import git
|
||||||
import lox
|
import lox
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
import openai
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import prompts
|
import prompts
|
||||||
import typer
|
import typer
|
||||||
|
@ -507,11 +508,12 @@ def run_test(
|
||||||
show_fnames = ",".join(map(str, fnames))
|
show_fnames = ",".join(map(str, fnames))
|
||||||
print("fnames:", show_fnames)
|
print("fnames:", show_fnames)
|
||||||
|
|
||||||
|
openai.api_key = os.environ["OPENAI_API_KEY"]
|
||||||
|
|
||||||
coder = Coder.create(
|
coder = Coder.create(
|
||||||
main_model,
|
main_model,
|
||||||
edit_format,
|
edit_format,
|
||||||
io,
|
io,
|
||||||
os.environ["OPENAI_API_KEY"],
|
|
||||||
fnames=fnames,
|
fnames=fnames,
|
||||||
use_git=False,
|
use_git=False,
|
||||||
stream=False,
|
stream=False,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue