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