fix(llm-node): handle NoneSegment variables properly (#9978)

This commit is contained in:
-LAN- 2024-10-30 08:46:11 +08:00 committed by GitHub
parent 539fc8b760
commit eb87e690ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -327,7 +327,7 @@ class LLMNode(BaseNode[LLMNodeData]):
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