From d936e3e400518f3a041efaa52389475f0d294a73 Mon Sep 17 00:00:00 2001 From: bluelovers Date: Mon, 22 Apr 2024 19:20:49 +0800 Subject: [PATCH] feat: try support forge https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin/issues/466 --- typescripts/controlnet/entry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescripts/controlnet/entry.ts b/typescripts/controlnet/entry.ts index 41ae098c..0cdaa4fe 100644 --- a/typescripts/controlnet/entry.ts +++ b/typescripts/controlnet/entry.ts @@ -72,7 +72,7 @@ async function requestControlNetApiVersion() { return version } async function requestControlNetMaxUnits() { - const json = await api.requestGet(`${g_sd_url}/controlnet/settings`) + const json = await api.requestGet(`${g_sd_url}/controlnet/settings`) || await api.requestGet(`${g_sd_url}/file=config.json`) const control_net_max_models_num = (json?.control_net_unit_count || json?.control_net_max_models_num) ?? 0