From 1770556d561f23ac5be443d1a67de891b404ffc7 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Fri, 12 Sep 2025 13:05:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E6=97=B6=E7=9A=84=20content=20=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=9C=A8=E9=87=8D=E6=96=B0=E5=8A=A0=E8=BD=BD=E5=90=8E?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=98=BE=E7=A4=BA=E5=9C=A8=20webchat=20?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#2727)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/dashboard/routes/chat.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(