xulh
commited on
Commit
·
b53eebe
1
Parent(s):
b30a245
代码初始化
Browse files- inference/inference.py +1 -6
inference/inference.py
CHANGED
@@ -61,12 +61,7 @@ async def chat_completion(token: str = Body(...), messages: list = Body(...)):
|
|
61 |
|
62 |
messages.append({
|
63 |
"role": "system",
|
64 |
-
"content": "You are a multilingual chatbot capable of understanding questions in various languages and "
|
65 |
-
"providing accurate responses in the appropriate language."
|
66 |
-
})
|
67 |
-
messages.append({
|
68 |
-
"role": "system",
|
69 |
-
"content": "所有问题都用中文回答"
|
70 |
})
|
71 |
|
72 |
# 使用 chat API 请求生成模型的回答
|
|
|
61 |
|
62 |
messages.append({
|
63 |
"role": "system",
|
64 |
+
"content": "You are a multilingual chatbot capable of understanding questions in various languages and providing accurate responses in the appropriate language. However, all questions must be answered in Chinese."
|
|
|
|
|
|
|
|
|
|
|
65 |
})
|
66 |
|
67 |
# 使用 chat API 请求生成模型的回答
|