缓冲区优化

pull/937/head
Bakadax 2025-05-14 08:55:22 +08:00
parent bd3df844be
commit 1a21292277
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ async def run_conversation_loop(conversation_instance: "Conversation"):
if action in ["wait", "listening"] and new_msg_count_action_planning > 0:
should_interrupt_action_planning = True
interrupt_reason_action_planning = f"规划 {action} 期间收到 {new_msg_count_action_planning} 条新消息"
elif other_new_msg_count_action_planning > 2:
elif other_new_msg_count_action_planning > global_config.pfc_message_buffer_size:
should_interrupt_action_planning = True
interrupt_reason_action_planning = (
f"规划 {action} 期间收到 {other_new_msg_count_action_planning} 条来自他人的新消息"