diff --git a/typescripts/controlnet/entry.ts b/typescripts/controlnet/entry.ts index 53e62a79..f5ce6ca3 100644 --- a/typescripts/controlnet/entry.ts +++ b/typescripts/controlnet/entry.ts @@ -33,7 +33,7 @@ async function requestControlNetApiVersion() { async function requestControlNetMaxUnits() { const json = await api.requestGet(`${g_sd_url}/controlnet/settings`) - const control_net_max_models_num = json?.control_net_max_models_num ?? 0 + const control_net_max_models_num = (json?.control_net_unit_count || json?.control_net_max_models_num) ?? 0 return control_net_max_models_num }