← 返回列表

解決dify連接授權comfyui報錯can not connect to ws://127.0.0.1:8188/ws?clientld=test123

itadol5j

在使用dify配置comfyui的時候報錯:can not connect to ws://127.0.0.1:8188/ws?clientld=test123的解決方案。

ff133c0147f7dee14c5f608459e8aa56

點擊“如何獲取”,然後跳轉到

43b9873abe7ee3f64ac94d7ae09341b2

我本地的地址是http://127.0.0.1:8188
但是這裏的地址不應該填寫這個地址,直接填寫:http://host.docker.internal:8188

這樣就可以解決問題了。

8409e548456768d22b63001b7c83a390

另外貼一個json工作流的api。

{ “4”: { “inputs”: { “unet_name”: “flux1-dev.safetensors”, “weight_dtype”: “fp8_e4m3fn” }, “class_type”: “UNETLoader”, “_meta”: { “title”: “UNet加載器” } }, “5”: { “inputs”: { “clip_name1”: “clip_l.safetensors”, “clip_name2”: “t5xxl_fp16.safetensors”, “type”: “flux”, “device”: “default” }, “class_type”: “DualCLIPLoader”, “_meta”: { “title”: “雙CLIP加載器” } }, “6”: { “inputs”: { “clip_l”: “A cute cat, finger sized, mini”, “t5xxl”: “A cute cat, finger sized, mini”, “guidance”: 3.5, “clip”: [ “5”, 0 ] }, “class_type”: “CLIPTextEncodeFlux”, “_meta”: { “title”: “CLIP文本編碼Flux” } }, “7”: { “inputs”: { “seed”: 1074678242030625, “steps”: 7, “cfg”: 1, “sampler_name”: “euler”, “scheduler”: “simple”, “denoise”: 1, “model”: [ “13”, 0 ], “positive”: [ “6”, 0 ], “negative”: [ “8”, 0 ], “latent_image”: [ “9”, 0 ] }, “class_type”: “KSampler”, “_meta”: { “title”: “K採樣器” } }, “8”: { “inputs”: { “conditioning”: [ “6”, 0 ] }, “class_type”: “ConditioningZeroOut”, “_meta”: { “title”: “條件零化” } }, “9”: { “inputs”: { “width”: 1000, “height”: 1000, “batch_size”: 2 }, “class_type”: “EmptyLatentImage”, “_meta”: { “title”: “空Latent圖像” } }, “10”: { “inputs”: { “samples”: [ “7”, 0 ], “vae”: [ “11”, 0 ] }, “class_type”: “VAEDecode”, “_meta”: { “title”: “VAE解碼” } }, “11”: { “inputs”: { “vae_name”: “ae.safetensors” }, “class_type”: “VAELoader”, “_meta”: { “title”: “加載VAE” } }, “12”: { “inputs”: { “images”: [ “10”, 0 ] }, “class_type”: “PreviewImage”, “_meta”: { “title”: “預覽圖像” } }, “13”: { “inputs”: { “lora_name”: “F1 2301 FLUX.1-Turbo-lora-Alpha 阿里.safetensors”, “strength_model”: 1, “model”: [ “4”, 0 ] }, “class_type”: “LoraLoaderModelOnly”, “_meta”: { “title”: “LoRA加載器(僅模型)” } } }