refactor: Update language reply prompts to use {language} placeholder

This commit is contained in:
Paul Gauthier 2024-11-11 09:38:30 -08:00 committed by Paul Gauthier (aider)
parent f66b916d4b
commit 21b88c0e65
4 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ Just show the changes needed.
DO NOT show the entire updated function/file/etc! 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 = [] example_messages = []

View file

@ -6,7 +6,7 @@ from .base_prompts import CoderPrompts
class AskPrompts(CoderPrompts): class AskPrompts(CoderPrompts):
main_system = """Act as an expert code analyst. main_system = """Act as an expert code analyst.
Answer questions about the supplied code. 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 = [] example_messages = []

View file

@ -12,7 +12,7 @@ Respect and use existing conventions, libraries, etc that are already present in
Take requests for changes to the supplied code. Take requests for changes to the supplied code.
If the request is ambiguous, ask questions. 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. For each file that needs to be changed, write out the changes similar to a unified diff like `diff -U0` would produce.
""" """

View file

@ -8,7 +8,7 @@ class WholeFilePrompts(CoderPrompts):
Take requests for changes to the supplied code. Take requests for changes to the supplied code.
If the request is ambiguous, ask questions. 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} {lazy_prompt}
Once you understand the request you MUST: Once you understand the request you MUST: