Skip to content

Commit

Permalink
fix: 取图片的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Scorpion1221 committed Sep 11, 2024
1 parent 17beda0 commit d030e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/workflow/nodes/tool/tool_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d030e36

Please sign in to comment.