Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions hermes_cli/model_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,11 +1628,18 @@ def _has_aws_sdk_creds_for_listing(slug: str) -> bool:
# source of truth. models.dev can have wrong mappings (e.g.
# minimax-cn → MINIMAX_API_KEY instead of MINIMAX_CN_API_KEY).
pconfig = PROVIDER_REGISTRY.get(hermes_id)
# Providers not in PROVIDER_REGISTRY cannot be resolved by
# resolve_provider_full() — they appear in the picker via
# models.dev but selecting them fails with "Unknown provider".
# Skip them; the user's custom_providers entry (if any) covers
# the same vendor under a routable slug. See #57503.
if pconfig is None:
continue
# Skip non-API-key auth providers here — they are handled in
# section 2 (HERMES_OVERLAYS) with proper auth store checking.
if pconfig and pconfig.auth_type != "api_key":
if pconfig.auth_type != "api_key":
continue
if pconfig and pconfig.api_key_env_vars:
if pconfig.api_key_env_vars:
env_vars = list(pconfig.api_key_env_vars)
else:
env_vars = pdata.get("env", [])
Expand Down