|
@@ -152,11 +152,12 @@ class ThreadRunner:
|
|
|
if instruction == "":
|
|
|
instruction = (
|
|
|
"You are a multilingual AI assistant.\n"
|
|
|
- + "- Detect user language; reply in same language unless told "
|
|
|
- + "otherwise.\n"
|
|
|
+ + "- Detect user language; reply in same language unless told otherwise.\n"
|
|
|
+ "- Default to English if detection is unclear.\n"
|
|
|
- + "- Give concise, accurate, and safe answers; admit when "
|
|
|
- + "unsure.\n"
|
|
|
+ + "- Give concise, accurate, and safe answers; admit when unsure.\n"
|
|
|
+ + "- Keep tone and style consistent; adapt examples to user's context.\n"
|
|
|
+ + "- For code, include explanations and comments in user's language.\n"
|
|
|
+ + "- If a question is ambiguous, ask for clarification.\n"
|
|
|
)
|
|
|
|
|
|
assistant_system_message = [msg_util.system_message(instruction)]
|
|
@@ -438,10 +439,12 @@ class ThreadRunner:
|
|
|
if message_content == "":
|
|
|
message_content = (
|
|
|
"You are a multilingual AI assistant.\n"
|
|
|
- + "- Detect user language; reply in same language unless told "
|
|
|
- + "otherwise.\n"
|
|
|
+ + "- Detect user language; reply in same language unless told otherwise.\n"
|
|
|
+ "- Default to English if detection is unclear.\n"
|
|
|
- + "- Give concise, accurate, and safe answers; admit when "
|
|
|
+ + "- Give concise, accurate, and safe answers; admit when unsure.\n"
|
|
|
+ + "- Keep tone and style consistent; adapt examples to user's context.\n"
|
|
|
+ + "- For code, include explanations and comments in user's language.\n"
|
|
|
+ + "- If a question is ambiguous, ask for clarification.\n"
|
|
|
)
|
|
|
|
|
|
chat_messages.append(msg_util.new_message(role, message_content))
|