Skip to content

fix(model-switch): skip providers not in PROVIDER_REGISTRY from /model picker - #57711

Closed
AlexFucuson9 wants to merge 1 commit into
NousResearch:mainfrom
AlexFucuson9:fix/mistral-phantom-picker
Closed

fix(model-switch): skip providers not in PROVIDER_REGISTRY from /model picker#57711
AlexFucuson9 wants to merge 1 commit into
NousResearch:mainfrom
AlexFucuson9:fix/mistral-phantom-picker

Conversation

@AlexFucuson9

Copy link
Copy Markdown
Contributor

Fixes #57503

Providers in PROVIDER_TO_MODELS_DEV (models.dev) that have no entry in PROVIDER_REGISTRY (auth.py) cannot be resolved by resolve_provider_full(). Selecting them in the /model picker fails with Unknown provider '<name>'.

This affected mistral (72 models from models.dev, 0 routable). When a user also had a custom_providers entry for Mistral, two entries appeared — one broken (built-in) and one working (custom).

Fix

Skip any PROVIDER_TO_MODELS_DEV entry whose hermes_id is not in PROVIDER_REGISTRY. The user's custom_providers entry (if any) covers the same vendor under a routable slug.

Files Changed

  • hermes_cli/model_switch.py — added PROVIDER_REGISTRY presence check before listing provider in picker

…l picker

Providers that appear in PROVIDER_TO_MODELS_DEV (models.dev) but have
no entry in PROVIDER_REGISTRY (auth.py) cannot be resolved by
resolve_provider_full(). Selecting them in the /model picker fails with
"Unknown provider '<name>'".

This affected mistral (72 models from models.dev, 0 routable). When a
user also had a custom_providers entry for Mistral, two entries appeared
— one broken (built-in) and one working (custom).

Fix: skip any PROVIDER_TO_MODELS_DEV entry whose hermes_id is not in
PROVIDER_REGISTRY. The user's custom_providers entry (if any) covers
the same vendor under a routable slug.

Fixes NousResearch#57503
@alt-glitch alt-glitch added type/bug Something isn't working comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists labels Jul 3, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #57568 — that earlier open PR (created ~5.5h before this one) adds the identical PROVIDER_REGISTRY-None skip gate at the same site in list_authenticated_providers() (hermes_cli/model_switch.py) for the same issue (#57503, mistral). #57568 also ships a regression test. Related: #57503 (the issue both fix).

@teknium1

Copy link
Copy Markdown
Contributor

Closed as the canonical duplicate winner is #57568's earlier issue-linked implementation history; this duplicate-cluster cleanup mistakenly closed #57568 first. The underlying #57503 bug remains open and still needs one focused salvage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: mistral listed in /model picker but fails with "Unknown provider 'mistral'"

3 participants