mirror of https://github.com/langgenius/dify.git
Co-authored-by: renzeyu1 <renzeyu1@lixiang.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
d0dd81cf84
commit
78f09801b5
|
|
@ -252,7 +252,10 @@ class AgentNode(Node):
|
|||
if all(isinstance(v, dict) for _, v in parameters.items()):
|
||||
params = {}
|
||||
for key, param in parameters.items():
|
||||
if param.get("auto", ParamsAutoGenerated.OPEN.value) == ParamsAutoGenerated.CLOSE.value:
|
||||
if param.get("auto", ParamsAutoGenerated.OPEN.value) in (
|
||||
ParamsAutoGenerated.CLOSE.value,
|
||||
0,
|
||||
):
|
||||
value_param = param.get("value", {})
|
||||
params[key] = value_param.get("value", "") if value_param is not None else None
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue