fix: gateway /model also needs normalize_provider for 'auto' resolution

This commit is contained in:
teknium1 2026-03-08 05:56:37 -07:00
parent f824c10429
commit 7ad6fc8a40

View file

@ -1321,6 +1321,7 @@ class GatewayRunner:
parse_model_input,
validate_requested_model,
curated_models_for_provider,
normalize_provider,
_PROVIDER_LABELS,
)
@ -1343,6 +1344,8 @@ class GatewayRunner:
except Exception:
pass
current_provider = normalize_provider(current_provider)
if not args:
provider_label = _PROVIDER_LABELS.get(current_provider, current_provider)
lines = [