fix: 修复工具调用时的 content 内容在重新加载后没有显示在 webchat 的问题 (#2727)

This commit is contained in:
Soulter
2025-09-12 13:05:33 +08:00
committed by GitHub
parent 888fb84aee
commit 1770556d56
+5 -1
View File
@@ -157,7 +157,11 @@ class ChatRoute(Route):
if type == "end":
break
elif (streaming and type == "complete") or not streaming:
elif (
(streaming and type == "complete")
or not streaming
or type == "break"
):
# append bot message
new_his = {"type": "bot", "message": result_text}
await self.platform_history_mgr.insert(