fix:修复模型配置应用错误,修复no_action执行错误

This commit is contained in:
SengokuCola
2025-07-06 23:34:32 +08:00
parent 0e982ebcab
commit 0181c26a54
3 changed files with 10 additions and 9 deletions

View File

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