mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
refactor: Update language reply prompts to use {language} placeholder
This commit is contained in:
parent
f66b916d4b
commit
21b88c0e65
4 changed files with 4 additions and 4 deletions
|
@ -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 = []
|
||||
|
|
|
@ -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 = []
|
||||
|
|
|
@ -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.
|
||||
"""
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue