mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: Add language configuration for user communication in prompts
This commit is contained in:
parent
352b91f342
commit
f66b916d4b
2 changed files with 7 additions and 1 deletions
|
@ -956,12 +956,18 @@ class Coder:
|
|||
platform=platform_text
|
||||
)
|
||||
|
||||
if self.chat_language:
|
||||
language = self.chat_language
|
||||
else:
|
||||
language = "in the same language they are using"
|
||||
|
||||
prompt = prompt.format(
|
||||
fence=self.fence,
|
||||
lazy_prompt=lazy_prompt,
|
||||
platform=platform_text,
|
||||
shell_cmd_prompt=shell_cmd_prompt,
|
||||
shell_cmd_reminder=shell_cmd_reminder,
|
||||
language=language,
|
||||
)
|
||||
return prompt
|
||||
|
||||
|
|
|
@ -11,7 +11,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}.
|
||||
|
||||
Once you understand the request you MUST:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue