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: replace dict() merge with dict unpacking to resolve overload error (#32653)

edvatarb48f36a4e50a
diff --git a/api/controllers/console/app/workflow_draft_variable.py b/api/controllers/console/app/workflow_draft_variable.py
index e08758bd3b0..619b80ff281 100644
--- a/api/controllers/console/app/workflow_draft_variable.py
+++ b/api/controllers/console/app/workflow_draft_variable.py
@@ -112,11 +112,11 @@ _WORKFLOW_DRAFT_VARIABLE_WITHOUT_VALUE_FIELDS = {
"is_truncated": fields.Boolean(attribute=lambda model: model.file_id is not None),
}
-_WORKFLOW_DRAFT_VARIABLE_FIELDS = dict(
- _WORKFLOW_DRAFT_VARIABLE_WITHOUT_VALUE_FIELDS,
- value=fields.Raw(attribute=_serialize_var_value),
- full_content=fields.Raw(attribute=_serialize_full_content),
-)
+_WORKFLOW_DRAFT_VARIABLE_FIELDS = {
+ **_WORKFLOW_DRAFT_VARIABLE_WITHOUT_VALUE_FIELDS,
+ "value": fields.Raw(attribute=_serialize_var_value),
+ "full_content": fields.Raw(attribute=_serialize_full_content),
+}
_WORKFLOW_DRAFT_ENV_VARIABLE_FIELDS = {
"id": fields.String,