no fuzy matching, stronger prompt for whitespace

This commit is contained in:
Paul Gauthier 2023-08-09 08:25:49 -03:00
parent c6f6ab6070
commit 00512e3d1c
2 changed files with 2 additions and 1 deletions

View file

@ -102,6 +102,7 @@ def replace_most_similar_chunk(whole, part, replace):
except ValueError:
pass
return
# Try fuzzy matching
res = replace_closest_edit_distance(whole_lines, part, part_lines, replace_lines)
if res:

View file

@ -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.
The ORIGINAL section must be an *exact set of sequential lines* from the file:
- 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*.