Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: variable pool mapping variable mixed up (#3378)

takatost164ef26a6010
diff --git a/api/core/workflow/entities/variable_pool.py b/api/core/workflow/entities/variable_pool.py
index dff8505c1bd..690bdddaf6a 100644
--- a/api/core/workflow/entities/variable_pool.py
+++ b/api/core/workflow/entities/variable_pool.py
@@ -22,9 +22,6 @@ class ValueType(Enum):
class VariablePool:
- variables_mapping = {}
- user_inputs: dict
- system_variables: dict[SystemVariable, Any]
def __init__(self, system_variables: dict[SystemVariable, Any],
user_inputs: dict) -> None:
@@ -34,6 +31,7 @@ class VariablePool:
# 'query': 'abc',
# 'files': []
# }
+ self.variables_mapping = {}
self.user_inputs = user_inputs
self.system_variables = system_variables
for system_variable, value in system_variables.items():