mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
More clear instructions
This commit is contained in:
parent
64dcfefbec
commit
54cd797e64
1 changed files with 5 additions and 3 deletions
|
@ -149,10 +149,10 @@ def run_test(testdir, model_name, edit_format, retries, no_test):
|
|||
if "test" not in fname and os.path.isfile(fname) and fname[0] != ".":
|
||||
fnames.append(fname)
|
||||
|
||||
filelist = " ".join(fnames)
|
||||
file_list = " ".join(fnames)
|
||||
instructions = Path(".docs/instructions.md").read_text()
|
||||
instructions += "\n\n=====\n\nModify these files according to the above instructions: "
|
||||
instructions += filelist
|
||||
instructions += file_list
|
||||
|
||||
io = InputOutput(
|
||||
pretty=True,
|
||||
|
@ -228,7 +228,9 @@ def run_test(testdir, model_name, edit_format, retries, no_test):
|
|||
errors = errors[:50]
|
||||
errors = "\n".join(errors)
|
||||
instructions = errors
|
||||
instructions += "\n\nFix the code to resolve the test failures above."
|
||||
instructions += (
|
||||
"\n\n####\n\nFix the code in {file_list} to resolve the test failures above."
|
||||
)
|
||||
|
||||
results = dict(
|
||||
testdir=str(testdir),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue