Skip to content

Commit

Permalink
fix(llm-node): handle NoneSegment variables properly (langgenius#9978)
Browse files Browse the repository at this point in the history
  • Loading branch information
laipz8200 authored and JunXu01 committed Nov 9, 2024
1 parent d061be5 commit 03e3cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/workflow/nodes/llm/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def _fetch_inputs(self, node_data: LLMNodeData) -> dict[str, Any]:
if variable is None:
raise ValueError(f"Variable {variable_selector.variable} not found")
if isinstance(variable, NoneSegment):
continue
inputs[variable_selector.variable] = ""
inputs[variable_selector.variable] = variable.to_object()

memory = node_data.memory
Expand Down

0 comments on commit 03e3cbf

Please sign in to comment.