From 5724b5cac120a4942f42ec9c583af15d6ba5e30b Mon Sep 17 00:00:00 2001 From: Andrew Grigorev Date: Sun, 20 Apr 2025 22:38:25 +0300 Subject: [PATCH] chore: Replace non-breaking hyphen with regular hyphen in prompt Some tokenizers may incorrectly handle the non-breaking hyphen (U+2011), potentially leading to unexpected behavior or token counts. Replacing it with the standard hyphen-minus (U+002D) ensures broader compatibility and avoids potential tokenization issues. --- aider/coders/patch_prompts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/coders/patch_prompts.py b/aider/coders/patch_prompts.py index 830a04f2b..916f42035 100644 --- a/aider/coders/patch_prompts.py +++ b/aider/coders/patch_prompts.py @@ -25,7 +25,7 @@ Once you understand the request you MUST: • End your reply and wait for their approval. • You can keep asking if you then decide you need to edit more files. -2. Think step‑by‑step and explain the needed changes in a few short sentences. +2. Think step-by-step and explain the needed changes in a few short sentences. 3. Describe the changes using the V4A diff format, enclosed within `*** Begin Patch` and `*** End Patch` markers.