mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 跳!跳进软钢!
parent
f58f6ca550
commit
6265fd6c14
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue