fix: user query be ignored if query_prompt_template is an empty string (#11103)
This commit is contained in:
parent
e9c098d024
commit
20c091a5e7
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ class LLMNode(BaseNode[LLMNodeData]):
|
||||||
query = None
|
query = None
|
||||||
if self.node_data.memory:
|
if self.node_data.memory:
|
||||||
query = self.node_data.memory.query_prompt_template
|
query = self.node_data.memory.query_prompt_template
|
||||||
if query is None and (
|
if not query and (
|
||||||
query_variable := self.graph_runtime_state.variable_pool.get(
|
query_variable := self.graph_runtime_state.variable_pool.get(
|
||||||
(SYSTEM_VARIABLE_NODE_ID, SystemVariableKey.QUERY)
|
(SYSTEM_VARIABLE_NODE_ID, SystemVariableKey.QUERY)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue