Skip to content

Commit 20c091a

Browse files
authored
fix: user query be ignored if query_prompt_template is an empty string (#11103)
1 parent e9c098d commit 20c091a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/core/workflow/nodes/llm/node.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _run(self) -> NodeRunResult | Generator[NodeEvent | InNodeEvent, None, None]
137137
query = None
138138
if self.node_data.memory:
139139
query = self.node_data.memory.query_prompt_template
140-
if query is None and (
140+
if not query and (
141141
query_variable := self.graph_runtime_state.variable_pool.get(
142142
(SYSTEM_VARIABLE_NODE_ID, SystemVariableKey.QUERY)
143143
)

0 commit comments

Comments
 (0)