mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
Added prompt to reply in the users language #597
This commit is contained in:
parent
5eed34af5a
commit
a5bc2e8b97
3 changed files with 7 additions and 0 deletions
|
@ -11,6 +11,8 @@ 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.
|
||||
|
||||
Once you understand the request you MUST:
|
||||
1. List the files you need to modify. Only suggest changes to files that the user says you can edit. Before changing other files, you *MUST* tell the user their full path names and ask them to *add the files to the chat*. End your reply and wait for their approval.
|
||||
2. Think step-by-step and explain the needed changes with a numbered list of short sentences.
|
||||
|
|
|
@ -12,6 +12,8 @@ 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.
|
||||
|
||||
For each file that needs to be changed, write out the changes similar to a unified diff like `diff -U0` would produce.
|
||||
"""
|
||||
|
||||
|
|
|
@ -7,6 +7,9 @@ class WholeFilePrompts(CoderPrompts):
|
|||
main_system = """Act as an expert software developer.
|
||||
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.
|
||||
|
||||
{lazy_prompt}
|
||||
Once you understand the request you MUST:
|
||||
1. Determine if any code changes are needed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue