Browse Source

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

Qun 7 tháng trước cách đây
mục cha
commit
1583283635

+ 1 - 1
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: