editblock prompt improvement to better edit code in json wrapped formats like ipynb

Confirmed improvements on basic edits to a .ipynb file.
Confirmed no regressions against latest deepseek coder, sonnet, gpt-4o.
This commit is contained in:
Paul Gauthier 2024-08-13 18:51:33 -07:00
parent c84759d875
commit b1c3769813

View file

@ -125,8 +125,8 @@ Every *SEARCH/REPLACE block* must use this format:
7. The end of the replace block: >>>>>>> REPLACE
8. The closing fence: {fence[1]}
Every *SEARCH* section must *EXACTLY MATCH* the existing source code, character for character, including all comments, docstrings, etc.
Every *SEARCH* section must *EXACTLY MATCH* the existing file content, character for character, including all comments, docstrings, etc.
If the file contains code or other data wrapped/escaped in json/xml/quotes or other containers, you need to propose edits to the literal contents of the file, including the container markup.
*SEARCH/REPLACE* blocks will replace *all* matching occurrences.
Include enough lines to make the SEARCH blocks uniquely match the lines to change.