From 13fe2ca8fe7a030fa0dcac4f86429f43d385e9e5 Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Thu, 18 Sep 2025 17:30:02 +0800 Subject: [PATCH] fix(api): fix single stepping variable loading (#25908) --- api/core/workflow/nodes/llm/node.py | 2 +- api/core/workflow/workflow_entry.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/core/workflow/nodes/llm/node.py b/api/core/workflow/nodes/llm/node.py index a0f4836e82..7767440be6 100644 --- a/api/core/workflow/nodes/llm/node.py +++ b/api/core/workflow/nodes/llm/node.py @@ -219,7 +219,7 @@ class LLMNode(Node): model_instance=model_instance, ) - query = None + query: str | None = None if self._node_data.memory: query = self._node_data.memory.query_prompt_template if not query and ( diff --git a/api/core/workflow/workflow_entry.py b/api/core/workflow/workflow_entry.py index 8fba5f91ff..49645ff120 100644 --- a/api/core/workflow/workflow_entry.py +++ b/api/core/workflow/workflow_entry.py @@ -402,6 +402,8 @@ class WorkflowEntry: input_value = user_inputs.get(node_variable) if not input_value: input_value = user_inputs.get(node_variable_key) + if input_value is None: + continue if isinstance(input_value, dict) and "type" in input_value and "transfer_method" in input_value: input_value = file_factory.build_from_mapping(mapping=input_value, tenant_id=tenant_id)