Parcourir la source

fix: incorrect workflow max call depth (#4759)

Yeuoly il y a 10 mois
Parent
commit
d4cd6149ac
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      api/core/workflow/nodes/tool/tool_node.py

+ 1 - 1
api/core/workflow/nodes/tool/tool_node.py

@@ -61,7 +61,7 @@ class ToolNode(BaseNode):
                 user_id=self.user_id,
                 workflow_id=self.workflow_id, 
                 workflow_tool_callback=DifyWorkflowCallbackHandler(),
-                workflow_call_depth=self.workflow_call_depth + 1
+                workflow_call_depth=self.workflow_call_depth,
             )
         except Exception as e:
             return NodeRunResult(