Skip to content

Commit eb87e69

Browse files
authored
fix(llm-node): handle NoneSegment variables properly (#9978)
1 parent 539fc8b commit eb87e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/core/workflow/nodes/llm/node.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def _fetch_inputs(self, node_data: LLMNodeData) -> dict[str, Any]:
327327
if variable is None:
328328
raise ValueError(f"Variable {variable_selector.variable} not found")
329329
if isinstance(variable, NoneSegment):
330-
continue
330+
inputs[variable_selector.variable] = ""
331331
inputs[variable_selector.variable] = variable.to_object()
332332

333333
memory = node_data.memory

0 commit comments

Comments
 (0)