fix: 跳!跳进软钢!

This commit is contained in:
SengokuCola
2025-04-23 00:55:33 +08:00
parent f58f6ca550
commit 6265fd6c14
2 changed files with 2 additions and 2 deletions

View File

@@ -832,7 +832,7 @@ class Heartflow:
stream_name = chat_manager.get_stream_name(flow.subheartflow_id) or flow.subheartflow_id stream_name = chat_manager.get_stream_name(flow.subheartflow_id) or flow.subheartflow_id
logger.debug(f"[Heartflow Activate] 正在将子心流 {stream_name} 状态设置为 CHAT。") logger.debug(f"[Heartflow Activate] 正在将子心流 {stream_name} 状态设置为 CHAT。")
# 调用 set_chat_state它内部会处理日志记录 # 调用 set_chat_state它内部会处理日志记录
flow.set_chat_state(ChatState.CHAT) await flow.set_chat_state(ChatState.CHAT)
activated_count += 1 activated_count += 1
else: else:
stream_name = chat_manager.get_stream_name(flow.subheartflow_id) or flow.subheartflow_id stream_name = chat_manager.get_stream_name(flow.subheartflow_id) or flow.subheartflow_id

View File

@@ -89,7 +89,7 @@ class NormalChat:
thinking_start_time=thinking_time_point, thinking_start_time=thinking_time_point,
) )
message_manager.add_message(thinking_message) await message_manager.add_message(thinking_message)
return thinking_id return thinking_id