xulh commited on
Commit
9fd5bac
·
1 Parent(s): b53eebe

代码初始化

Browse files
Files changed (1) hide show
  1. inference/inference.py +3 -1
inference/inference.py CHANGED
@@ -61,7 +61,9 @@ 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 providing accurate responses in the appropriate language. However, all questions must be answered in Chinese."
 
 
65
  })
66
 
67
  # 使用 chat API 请求生成模型的回答
 
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. However, all questions must be "
66
+ "answered in Chinese."
67
  })
68
 
69
  # 使用 chat API 请求生成模型的回答