From 21b88c0e65283ee9d72ad42f3d4c4c3132fe110c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 11 Nov 2024 09:38:30 -0800 Subject: [PATCH] refactor: Update language reply prompts to use {language} placeholder --- aider/coders/architect_prompts.py | 2 +- aider/coders/ask_prompts.py | 2 +- aider/coders/udiff_prompts.py | 2 +- aider/coders/wholefile_prompts.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aider/coders/architect_prompts.py b/aider/coders/architect_prompts.py index e6798dbba..2ac23f5fc 100644 --- a/aider/coders/architect_prompts.py +++ b/aider/coders/architect_prompts.py @@ -13,7 +13,7 @@ Just show the changes needed. DO NOT show the entire updated function/file/etc! -Always reply in the same language as the change request. +Always reply to the user in {language}. """ example_messages = [] diff --git a/aider/coders/ask_prompts.py b/aider/coders/ask_prompts.py index 7e1da106a..198ec6172 100644 --- a/aider/coders/ask_prompts.py +++ b/aider/coders/ask_prompts.py @@ -6,7 +6,7 @@ from .base_prompts import CoderPrompts class AskPrompts(CoderPrompts): main_system = """Act as an expert code analyst. Answer questions about the supplied code. -Always reply to the user in the same language they are using. +Always reply to the user in {language}. """ example_messages = [] diff --git a/aider/coders/udiff_prompts.py b/aider/coders/udiff_prompts.py index 8084f885c..5e7ca2c13 100644 --- a/aider/coders/udiff_prompts.py +++ b/aider/coders/udiff_prompts.py @@ -12,7 +12,7 @@ Respect and use existing conventions, libraries, etc that are already present in Take requests for changes to the supplied code. If the request is ambiguous, ask questions. -Always reply to the user in the same language they are using. +Always reply to the user in {language}. For each file that needs to be changed, write out the changes similar to a unified diff like `diff -U0` would produce. """ diff --git a/aider/coders/wholefile_prompts.py b/aider/coders/wholefile_prompts.py index 615645f69..95a4bb87b 100644 --- a/aider/coders/wholefile_prompts.py +++ b/aider/coders/wholefile_prompts.py @@ -8,7 +8,7 @@ class WholeFilePrompts(CoderPrompts): Take requests for changes to the supplied code. If the request is ambiguous, ask questions. -Always reply to the user in the same language they are using. +Always reply to the user in {language}. {lazy_prompt} Once you understand the request you MUST: