From eb87e690ed6dbfce11b5a5bd41b063691e788fbf Mon Sep 17 00:00:00 2001 From: -LAN- Date: Wed, 30 Oct 2024 08:46:11 +0800 Subject: [PATCH] fix(llm-node): handle NoneSegment variables properly (#9978) --- api/core/workflow/nodes/llm/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/workflow/nodes/llm/node.py b/api/core/workflow/nodes/llm/node.py index abf77f3339..472587cb03 100644 --- a/api/core/workflow/nodes/llm/node.py +++ b/api/core/workflow/nodes/llm/node.py @@ -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