mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: variable pool mapping variable mixed up (#3378)
This commit is contained in:
parent
0dada847ef
commit
164ef26a60
|
@ -22,9 +22,6 @@ class ValueType(Enum):
|
||||||
|
|
||||||
|
|
||||||
class VariablePool:
|
class VariablePool:
|
||||||
variables_mapping = {}
|
|
||||||
user_inputs: dict
|
|
||||||
system_variables: dict[SystemVariable, Any]
|
|
||||||
|
|
||||||
def __init__(self, system_variables: dict[SystemVariable, Any],
|
def __init__(self, system_variables: dict[SystemVariable, Any],
|
||||||
user_inputs: dict) -> None:
|
user_inputs: dict) -> None:
|
||||||
|
@ -34,6 +31,7 @@ class VariablePool:
|
||||||
# 'query': 'abc',
|
# 'query': 'abc',
|
||||||
# 'files': []
|
# 'files': []
|
||||||
# }
|
# }
|
||||||
|
self.variables_mapping = {}
|
||||||
self.user_inputs = user_inputs
|
self.user_inputs = user_inputs
|
||||||
self.system_variables = system_variables
|
self.system_variables = system_variables
|
||||||
for system_variable, value in system_variables.items():
|
for system_variable, value in system_variables.items():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user