mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 05:14:59 +00:00
chdir into the temp test dir
This commit is contained in:
parent
a2547d02c1
commit
331638dd89
1 changed files with 2 additions and 7 deletions
|
@ -57,17 +57,14 @@ def main(tempdir):
|
||||||
dirname = sys.argv[1]
|
dirname = sys.argv[1]
|
||||||
|
|
||||||
fnames = create_temp_repo(dirname, tempdir)
|
fnames = create_temp_repo(dirname, tempdir)
|
||||||
|
os.chdir(tempdir)
|
||||||
|
|
||||||
tempdir = Path(tempdir)
|
instructions = Path("docs/instructions.md").read_text()
|
||||||
|
|
||||||
instructions = (tempdir / "docs/instructions.md").read_text()
|
|
||||||
|
|
||||||
instructions += (
|
instructions += (
|
||||||
"\n\n=====\n\nModify these files according to the above instructions: " + " ".join(fnames)
|
"\n\n=====\n\nModify these files according to the above instructions: " + " ".join(fnames)
|
||||||
)
|
)
|
||||||
|
|
||||||
fnames = [str(tempdir / fn) for fn in fnames]
|
|
||||||
|
|
||||||
io = InputOutput(
|
io = InputOutput(
|
||||||
pretty=True,
|
pretty=True,
|
||||||
yes=False,
|
yes=False,
|
||||||
|
@ -75,8 +72,6 @@ def main(tempdir):
|
||||||
|
|
||||||
main_model = models.Model("gpt-3.5-turbo")
|
main_model = models.Model("gpt-3.5-turbo")
|
||||||
|
|
||||||
dump(fnames)
|
|
||||||
|
|
||||||
coder = Coder.create(
|
coder = Coder.create(
|
||||||
main_model,
|
main_model,
|
||||||
None,
|
None,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue