Skip to content

Commit

Permalink
fix: 读取图片
Browse files Browse the repository at this point in the history
  • Loading branch information
Scorpion1221 committed Aug 21, 2024
1 parent 26c1b1c commit 5b6a69f
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])
files = [file_var.value for file_var in variable.value] if variable else []
files = list(variable.value) if variable else []
result[parameter_name] = [
v.to_dict() for v in files
]
Expand Down

0 comments on commit 5b6a69f

Please sign in to comment.