Ask GPT to retry if original block is not found

This commit is contained in:
Paul Gauthier 2023-07-19 17:24:53 -03:00
parent 691c013272
commit 4bc35a7376
3 changed files with 14 additions and 3 deletions

View file

@ -33,7 +33,7 @@ some/dir/example.py
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.
The ORIGINAL section must be an *exact* set of lines from the file:
The ORIGINAL section must be an *exact set of sequential lines* from the file:
- NEVER SKIP LINES!
- Include all original leading spaces and indentation!