mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 04:39:05 +08:00
fix: user query be ignored if query_prompt_template is an empty string (#11103)
This commit is contained in:
parent
e9c098d024
commit
20c091a5e7
@ -137,7 +137,7 @@ class LLMNode(BaseNode[LLMNodeData]):
|
||||
query = None
|
||||
if self.node_data.memory:
|
||||
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(
|
||||
(SYSTEM_VARIABLE_NODE_ID, SystemVariableKey.QUERY)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user