diff --git a/astrbot/dashboard/routes/chat.py b/astrbot/dashboard/routes/chat.py index 9ce1b522f..3a52476c2 100644 --- a/astrbot/dashboard/routes/chat.py +++ b/astrbot/dashboard/routes/chat.py @@ -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(