Skip to content

Commit

Permalink
fix(api/core/workflow/nodes/tool/tool_node.py): Keep None value in to…
Browse files Browse the repository at this point in the history
…ol params. (#7066)
  • Loading branch information
laipz8200 authored Aug 7, 2024
1 parent a0d5b61 commit 67a2f14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/core/workflow/nodes/tool/tool_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def _generate_parameters(
for parameter_name in node_data.tool_parameters:
parameter = tool_parameters_dictionary.get(parameter_name)
if not parameter:
result[parameter_name] = None
continue
if parameter.type == ToolParameter.ToolParameterType.FILE:
result[parameter_name] = [
Expand Down

0 comments on commit 67a2f14

Please sign in to comment.