|
@@ -176,7 +176,7 @@ async def generate_stream_response(request: ChatRequest, username: str):
|
|
|
"feature": {
|
|
"feature": {
|
|
|
"ai_search": {
|
|
"ai_search": {
|
|
|
"type": "enabled",
|
|
"type": "enabled",
|
|
|
- "role_description": "你是浙江云悦有限公司助手,专业解答云悦问题"
|
|
|
|
|
|
|
+ "role_description": config.ROLE_DESCRIPTION
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
"user_location": {
|
|
"user_location": {
|
|
@@ -398,7 +398,7 @@ async def chat(
|
|
|
"feature": {
|
|
"feature": {
|
|
|
"ai_search": {
|
|
"ai_search": {
|
|
|
"type": "enabled",
|
|
"type": "enabled",
|
|
|
- "role_description": "你是浙江云悦有限公司助手,专业解答云悦问题"
|
|
|
|
|
|
|
+ "role_description": config.ROLE_DESCRIPTION
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
"user_location": {
|
|
"user_location": {
|
|
@@ -425,6 +425,7 @@ async def chat(
|
|
|
stream=False,
|
|
stream=False,
|
|
|
store=True, # 存储当前对话上下文。此字段不存储tools,每次调用仍需给tools赋值。
|
|
store=True, # 存储当前对话上下文。此字段不存储tools,每次调用仍需给tools赋值。
|
|
|
previous_response_id=previous_response_id,
|
|
previous_response_id=previous_response_id,
|
|
|
|
|
+ thinking={"type": "disabled"}, # Manually disable deep thinking
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
# 记录原始响应日志到 MongoDB(解析前)
|
|
# 记录原始响应日志到 MongoDB(解析前)
|