From 12c3c1ed68bf1d73f2bf76f5fb24fe3e6c5255cf Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 13 Jul 2023 15:48:13 -0700 Subject: [PATCH] updated editblock to use all the fences --- aider/coders/editblock_prompts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/coders/editblock_prompts.py b/aider/coders/editblock_prompts.py index ee418663e..5b9d8ce9b 100644 --- a/aider/coders/editblock_prompts.py +++ b/aider/coders/editblock_prompts.py @@ -18,7 +18,7 @@ Once you understand the request you MUST: system_reminder = """You MUST format EVERY code change with an *edit block* like this: -```python +{fence[0]}python some/dir/example.py <<<<<<< ORIGINAL # some comment @@ -29,9 +29,9 @@ some/dir/example.py # Function to add def add(a,b): >>>>>>> UPDATED -``` +{fence[1]} -Every *edit block* must be fenced w/triple backticks 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. The ORIGINAL section must be an *exact* set of lines from the file: - NEVER SKIP LINES!