报告空格保留
This commit is contained in:
@@ -247,14 +247,13 @@ async def chat_stream(request: DeepAgentChatRequest):
|
||||
"content": "",
|
||||
"type": ""
|
||||
}
|
||||
delta = chunks.get("delta", "").strip()
|
||||
if delta:
|
||||
payload_out.update({
|
||||
"type": chunks.get("type", ""),
|
||||
"is_delta": True,
|
||||
"content": delta,
|
||||
})
|
||||
yield f"data: {json.dumps(payload_out, ensure_ascii=False)}\n\n"
|
||||
delta = chunks.get("delta", "")
|
||||
payload_out.update({
|
||||
"type": chunks.get("type", ""),
|
||||
"is_delta": True,
|
||||
"content": delta,
|
||||
})
|
||||
yield f"data: {json.dumps(payload_out, ensure_ascii=False)}\n\n"
|
||||
|
||||
# 获取建议消息
|
||||
if request.need_suggestion > 0 and random.random() < request.need_suggestion:
|
||||
|
||||
Reference in New Issue
Block a user