From 6265fd6c1405d03e69394f9fcee722386032bfbe Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Wed, 23 Apr 2025 00:55:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=B3=EF=BC=81=E8=B7=B3=E8=BF=9B?= =?UTF-8?q?=E8=BD=AF=E9=92=A2=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/heart_flow/heartflow.py | 2 +- src/plugins/heartFC_chat/normal_chat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/heart_flow/heartflow.py b/src/heart_flow/heartflow.py index c2bc19893..96e298083 100644 --- a/src/heart_flow/heartflow.py +++ b/src/heart_flow/heartflow.py @@ -832,7 +832,7 @@ class Heartflow: stream_name = chat_manager.get_stream_name(flow.subheartflow_id) or flow.subheartflow_id logger.debug(f"[Heartflow Activate] 正在将子心流 {stream_name} 状态设置为 CHAT。") # 调用 set_chat_state,它内部会处理日志记录 - flow.set_chat_state(ChatState.CHAT) + await flow.set_chat_state(ChatState.CHAT) activated_count += 1 else: stream_name = chat_manager.get_stream_name(flow.subheartflow_id) or flow.subheartflow_id diff --git a/src/plugins/heartFC_chat/normal_chat.py b/src/plugins/heartFC_chat/normal_chat.py index 282e87b82..38251c02f 100644 --- a/src/plugins/heartFC_chat/normal_chat.py +++ b/src/plugins/heartFC_chat/normal_chat.py @@ -89,7 +89,7 @@ class NormalChat: thinking_start_time=thinking_time_point, ) - message_manager.add_message(thinking_message) + await message_manager.add_message(thinking_message) return thinking_id