mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 05:14:59 +00:00
sssh
This commit is contained in:
parent
e2cbc17f07
commit
a2547d02c1
1 changed files with 10 additions and 7 deletions
|
@ -57,7 +57,15 @@ def main(tempdir):
|
||||||
dirname = sys.argv[1]
|
dirname = sys.argv[1]
|
||||||
|
|
||||||
fnames = create_temp_repo(dirname, tempdir)
|
fnames = create_temp_repo(dirname, tempdir)
|
||||||
|
|
||||||
tempdir = Path(tempdir)
|
tempdir = Path(tempdir)
|
||||||
|
|
||||||
|
instructions = (tempdir / "docs/instructions.md").read_text()
|
||||||
|
|
||||||
|
instructions += (
|
||||||
|
"\n\n=====\n\nModify these files according to the above instructions: " + " ".join(fnames)
|
||||||
|
)
|
||||||
|
|
||||||
fnames = [str(tempdir / fn) for fn in fnames]
|
fnames = [str(tempdir / fn) for fn in fnames]
|
||||||
|
|
||||||
io = InputOutput(
|
io = InputOutput(
|
||||||
|
@ -75,14 +83,9 @@ def main(tempdir):
|
||||||
io,
|
io,
|
||||||
os.environ["OPENAI_API_KEY"],
|
os.environ["OPENAI_API_KEY"],
|
||||||
fnames=fnames,
|
fnames=fnames,
|
||||||
verbose=True,
|
# verbose=True,
|
||||||
use_git=False,
|
use_git=False,
|
||||||
)
|
stream=False,
|
||||||
|
|
||||||
instructions = (tempdir / "docs/instructions.md").read_text()
|
|
||||||
|
|
||||||
instructions += (
|
|
||||||
"\n\n=====\n\nModify these files according to the above instructions: " + " ".join(fnames)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
coder.run(with_message=instructions)
|
coder.run(with_message=instructions)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue