mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix(llm-node): handle NoneSegment variables properly (#9978)
This commit is contained in:
parent
539fc8b760
commit
eb87e690ed
|
@ -327,7 +327,7 @@ class LLMNode(BaseNode[LLMNodeData]):
|
||||||
if variable is None:
|
if variable is None:
|
||||||
raise ValueError(f"Variable {variable_selector.variable} not found")
|
raise ValueError(f"Variable {variable_selector.variable} not found")
|
||||||
if isinstance(variable, NoneSegment):
|
if isinstance(variable, NoneSegment):
|
||||||
continue
|
inputs[variable_selector.variable] = ""
|
||||||
inputs[variable_selector.variable] = variable.to_object()
|
inputs[variable_selector.variable] = variable.to_object()
|
||||||
|
|
||||||
memory = node_data.memory
|
memory = node_data.memory
|
||||||
|
|
Loading…
Reference in New Issue
Block a user