Update planner.py

This commit is contained in:
SengokuCola
2025-07-06 22:16:13 +08:00
parent f001eb51fb
commit e946a127a4

View File

@@ -156,8 +156,7 @@ class ActionPlanner:
if action == "no_action":
action = "no_reply"
reasoning = "决定不使用额外动作"
if action not in current_available_actions and action != "no_action":
elif action not in current_available_actions:
logger.warning(
f"{self.log_prefix}LLM 返回了当前不可用或无效的动作: '{action}' (可用: {list(current_available_actions.keys())}),将强制使用 'no_reply'"
)