fix(doctor): accept bare custom provider

This commit is contained in:
helix4u
2026-04-25 14:46:15 -06:00
committed by Teknium
parent 25ba6a4a74
commit b2d3308f98
2 changed files with 42 additions and 1 deletions

View File

@@ -320,7 +320,11 @@ def run_doctor(args):
known_providers.add("custom:" + name.lower().replace(" ", "-"))
canonical_provider = provider
if provider and _resolve_provider_full is not None and provider != "auto":
if (
provider
and _resolve_provider_full is not None
and provider not in ("auto", "custom")
):
provider_def = _resolve_provider_full(provider, user_providers, custom_providers)
canonical_provider = provider_def.id if provider_def is not None else None