fix:优化代码逻辑

This commit is contained in:
SengokuCola
2025-07-26 17:43:18 +08:00
parent 7d2cef9a9c
commit 8c6dadc6f3
2 changed files with 43 additions and 18 deletions

View File

@@ -225,8 +225,9 @@ class ActionPlanner:
reasoning = f"Planner 内部处理错误: {outer_e}"
is_parallel = False
if action in current_available_actions:
is_parallel = current_available_actions[action].parallel_action
if mode == ChatMode.NORMAL:
if action in current_available_actions:
is_parallel = current_available_actions[action].parallel_action
action_result = {
"action_type": action,