fix: gateway /model also needs normalize_provider for 'auto' resolution
This commit is contained in:
parent
f824c10429
commit
7ad6fc8a40
1 changed files with 3 additions and 0 deletions
|
|
@ -1321,6 +1321,7 @@ class GatewayRunner:
|
||||||
parse_model_input,
|
parse_model_input,
|
||||||
validate_requested_model,
|
validate_requested_model,
|
||||||
curated_models_for_provider,
|
curated_models_for_provider,
|
||||||
|
normalize_provider,
|
||||||
_PROVIDER_LABELS,
|
_PROVIDER_LABELS,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -1343,6 +1344,8 @@ class GatewayRunner:
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
current_provider = normalize_provider(current_provider)
|
||||||
|
|
||||||
if not args:
|
if not args:
|
||||||
provider_label = _PROVIDER_LABELS.get(current_provider, current_provider)
|
provider_label = _PROVIDER_LABELS.get(current_provider, current_provider)
|
||||||
lines = [
|
lines = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue