mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
Updated ORIGINAL prompting
This commit is contained in:
parent
0aa2ff2cf9
commit
2c53c153b8
2 changed files with 4 additions and 4 deletions
|
@ -34,9 +34,9 @@ some/dir/example.py
|
||||||
|
|
||||||
Every *edit block* must be fenced with {fence[0]}...{fence[1]} with the correct code language.
|
Every *edit block* must be fenced with {fence[0]}...{fence[1]} with the correct code language.
|
||||||
Every *edit block* must start with the full path! *NEVER* propose edit blocks for *read-only* files.
|
Every *edit block* must start with the full path! *NEVER* propose edit blocks for *read-only* files.
|
||||||
The ORIGINAL section must be an *exact set of sequential lines* from the file:
|
|
||||||
- NEVER SKIP LINES!
|
NEVER SKIP LINES in the ORIGINAL section!
|
||||||
- NEVER SKIP LEADING WHITESPACE FROM LINES!
|
NEVER OMIT ANY WHITESPACE in the ORIGINAL section!
|
||||||
|
|
||||||
Edits to different parts of a file each need their own *edit block*.
|
Edits to different parts of a file each need their own *edit block*.
|
||||||
|
|
||||||
|
|
|
@ -377,7 +377,7 @@ def show_diffs(dirnames):
|
||||||
result = [r for r in results if r["testcase"] == testcase][0]
|
result = [r for r in results if r["testcase"] == testcase][0]
|
||||||
|
|
||||||
outcomes = tuple(result["tests_outcomes"])
|
outcomes = tuple(result["tests_outcomes"])
|
||||||
all_outcomes.append(outcomes)
|
all_outcomes.append(True in outcomes)
|
||||||
|
|
||||||
if len(set(all_outcomes)) == 1:
|
if len(set(all_outcomes)) == 1:
|
||||||
unchanged.add(testcase)
|
unchanged.add(testcase)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue