From 2c0dff52d3f383be27f4ca1be2278e363ee0d0f1 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 1 May 2024 09:17:29 -0700 Subject: [PATCH] asking for code language in whole edit format confuses some models --- aider/coders/wholefile_prompts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/coders/wholefile_prompts.py b/aider/coders/wholefile_prompts.py index dda10fe3c..e410fdd9c 100644 --- a/aider/coders/wholefile_prompts.py +++ b/aider/coders/wholefile_prompts.py @@ -18,14 +18,14 @@ Once you understand the request you MUST: You MUST use this *file listing* format: path/to/filename.js -{fence[0]}javascript +{fence[0]} // entire file content ... // ... goes in between {fence[1]} Every *file listing* MUST use this format: - First line: the filename with any originally provided path -- Second line: opening {fence[0]} including the code language +- Second line: opening {fence[0]} - ... entire content of the file ... - Final line: closing {fence[1]}