Skip to content

Commit

Permalink
refactor: Update language reply prompts to use {language} placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Nov 11, 2024
1 parent f66b916 commit 21b88c0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aider/coders/architect_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ArchitectPrompts(CoderPrompts):
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 = []
Expand Down
2 changes: 1 addition & 1 deletion aider/coders/ask_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
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 = []
Expand Down
2 changes: 1 addition & 1 deletion aider/coders/udiff_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class UnifiedDiffPrompts(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}.
For each file that needs to be changed, write out the changes similar to a unified diff like `diff -U0` would produce.
"""
Expand Down
2 changes: 1 addition & 1 deletion aider/coders/wholefile_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 21b88c0

Please sign in to comment.