mirror of https://github.com/Mai-with-u/MaiBot.git
缓冲区优化
parent
bd3df844be
commit
1a21292277
|
|
@ -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} 条来自他人的新消息"
|
||||
|
|
|
|||
Loading…
Reference in New Issue