fix(doctor): allow vendor slugs for named custom providers

This commit is contained in:
helix4u
2026-06-08 15:53:09 -07:00
committed by Teknium
parent 421226e404
commit 732ababa1a
4 changed files with 65 additions and 3 deletions
+4 -1
View File
@@ -492,7 +492,10 @@ def get_label(provider_id: str) -> str:
def is_aggregator(provider: str) -> bool:
"""Return True when the provider is a multi-model aggregator."""
pdef = get_provider(provider)
provider_norm = normalize_provider(provider or "")
if provider_norm.startswith("custom:"):
return True
pdef = get_provider(provider_norm)
return pdef.is_aggregator if pdef else False