Added prompt to reply in the users language #597

This commit is contained in:
Paul Gauthier 2024-05-09 14:06:31 -07:00
parent 5eed34af5a
commit a5bc2e8b97
3 changed files with 7 additions and 0 deletions

View file

@ -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.

View file

@ -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.
"""

View file

@ -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.