mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
no fuzy matching, stronger prompt for whitespace
This commit is contained in:
parent
c6f6ab6070
commit
00512e3d1c
2 changed files with 2 additions and 1 deletions
|
@ -102,6 +102,7 @@ def replace_most_similar_chunk(whole, part, replace):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
return
|
||||||
# Try fuzzy matching
|
# Try fuzzy matching
|
||||||
res = replace_closest_edit_distance(whole_lines, part, part_lines, replace_lines)
|
res = replace_closest_edit_distance(whole_lines, part, part_lines, replace_lines)
|
||||||
if res:
|
if res:
|
||||||
|
|
|
@ -36,7 +36,7 @@ Every *edit block* must be fenced with {fence[0]}...{fence[1]} with the correct
|
||||||
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:
|
The ORIGINAL section must be an *exact set of sequential lines* from the file:
|
||||||
- NEVER SKIP LINES!
|
- NEVER SKIP LINES!
|
||||||
- Include all original leading spaces and indentation!
|
- NEVER SKIP LEADING WHITESPACE FROM LINES!
|
||||||
|
|
||||||
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*.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue