You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/ai/prompt.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,9 @@ export function buildSystemMessage(
18
18
// 默认系统消息
19
19
letsystemMessage=
20
20
customSystem||
21
-
`You are a helpful AI assistant for a documentation website.
22
-
You can help users understand the documentation, answer questions about the content,
23
-
and provide guidance on the topics covered in the docs. Be concise and helpful.`;
21
+
`You are a helpful AI assistant for a documentation website.
22
+
Always respond in the same language as the user's question: if the user asks in 中文, answer in 中文; if the user asks in English, answer in English.
23
+
You can help users understand the documentation, answer questions about the content, and provide guidance on the topics covered in the docs. Be concise and helpful.`;
0 commit comments