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.

ComfyUI tool use the new internal enumeration class "VariableKey" (#8533)

Qun158328363561
diff --git a/api/core/tools/provider/builtin/comfyui/tools/comfyui_stable_diffusion.py b/api/core/tools/provider/builtin/comfyui/tools/comfyui_stable_diffusion.py
index 81fc8cc9851..eaa4b0d0275 100644
--- a/api/core/tools/provider/builtin/comfyui/tools/comfyui_stable_diffusion.py
+++ b/api/core/tools/provider/builtin/comfyui/tools/comfyui_stable_diffusion.py
@@ -333,7 +333,7 @@ class ComfyuiStableDiffusionTool(BuiltinTool):
break
return self.create_blob_message(
- blob=image, meta={"mime_type": "image/png"}, save_as=self.VARIABLE_KEY.IMAGE.value
+ blob=image, meta={"mime_type": "image/png"}, save_as=self.VariableKey.IMAGE.value
)
except Exception as e: