修复模型回复没有发送问题
This commit is contained in:
@@ -247,9 +247,6 @@ async def chat_stream(request: ChatRequest):
|
||||
"tool_name": message.name,
|
||||
"tool_call_id": message.tool_call_id
|
||||
})
|
||||
# 特殊处理:如果内容看起来是用户画像或特定格式
|
||||
if "实时用户画像" in message.content:
|
||||
payload_out["type"] = "user_persona"
|
||||
yield f"data: {json.dumps(payload_out, ensure_ascii=False)}\n\n"
|
||||
|
||||
elif isinstance(message, AIMessage):
|
||||
|
||||
Reference in New Issue
Block a user