mirror of https://github.com/Mai-with-u/MaiBot.git
Update planner.py
parent
f001eb51fb
commit
e946a127a4
|
|
@ -156,8 +156,7 @@ class ActionPlanner:
|
||||||
if action == "no_action":
|
if action == "no_action":
|
||||||
action = "no_reply"
|
action = "no_reply"
|
||||||
reasoning = "决定不使用额外动作"
|
reasoning = "决定不使用额外动作"
|
||||||
|
elif action not in current_available_actions:
|
||||||
if action not in current_available_actions and action != "no_action":
|
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"{self.log_prefix}LLM 返回了当前不可用或无效的动作: '{action}' (可用: {list(current_available_actions.keys())}),将强制使用 'no_reply'"
|
f"{self.log_prefix}LLM 返回了当前不可用或无效的动作: '{action}' (可用: {list(current_available_actions.keys())}),将强制使用 'no_reply'"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue