From d030e36192302d94eeca60c4c59c38cb80f80673 Mon Sep 17 00:00:00 2001 From: Scorpion Date: Wed, 11 Sep 2024 10:36:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=96=E5=9B=BE=E7=89=87=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/core/workflow/nodes/tool/tool_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/workflow/nodes/tool/tool_node.py b/api/core/workflow/nodes/tool/tool_node.py index 20a3738d4384f8..4cd27022e7574a 100644 --- a/api/core/workflow/nodes/tool/tool_node.py +++ b/api/core/workflow/nodes/tool/tool_node.py @@ -128,7 +128,7 @@ def _generate_parameters( if isinstance(tool_input.value, list) and tool_input.value: tool_input_first_value = tool_input.value[0] - variable = variable_pool.get([tool_input_first_value, SystemVariable.FILES.value]) + variable = variable_pool.get([tool_input_first_value, SystemVariableKey.FILES.value]) files = list(variable.value) if variable else [] result[parameter_name] = [ v.to_dict() for v in files