From 9bb9fc1b28bb0de342705f177be1aa63f8daf950 Mon Sep 17 00:00:00 2001 From: tcmofashi Date: Fri, 7 Mar 2025 07:03:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbot=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=9C=AA=E8=B0=83=E7=94=A8=E5=BC=82=E6=AD=A5=E6=98=BE=E5=BC=8F?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=AF=BC=E8=87=B4=E7=9A=84=E7=A9=BA?= =?UTF-8?q?=E6=B6=88=E6=81=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/chat/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/chat/bot.py b/src/plugins/chat/bot.py index 8882a480c..b927472e5 100644 --- a/src/plugins/chat/bot.py +++ b/src/plugins/chat/bot.py @@ -154,6 +154,7 @@ class ChatBot: thinking_start_time=thinking_start_time, #记录了思考开始的时间 reply_message_id=message.message_id ) + await bot_message.initialize() if not mark_head: bot_message.is_head = True mark_head = True @@ -190,6 +191,7 @@ class ChatBot: thinking_start_time=thinking_start_time, # reply_message_id=message.message_id ) + await bot_message.initialize() message_manager.add_message(bot_message) emotion = await self.gpt._get_emotion_tags(raw_content) print(f"为 '{response}' 获取到的情感标签为:{emotion}")