fix(models): keep curated Anthropic aliases (claude-fable-5) in /model picker#43103
Merged
Conversation
The Anthropic picker returned the live /v1/models dump verbatim whenever credentials were configured. Anthropic's API lags newly-routed curated aliases (e.g. claude-fable-5, reachable on Anthropic before the models endpoint enumerates it), so the curated entry vanished from the picker. Merge curated _PROVIDER_MODELS["anthropic"] with the live catalog — curated first, live-only appended, deduped — mirroring the OpenAI curated-merge path. Live failure / no creds falls back to curated verbatim.
Contributor
🔎 Lint report:
|
wachoo
pushed a commit
to wachoo/hermes-agent
that referenced
this pull request
Jun 10, 2026
…earch#43103) The Anthropic picker returned the live /v1/models dump verbatim whenever credentials were configured. Anthropic's API lags newly-routed curated aliases (e.g. claude-fable-5, reachable on Anthropic before the models endpoint enumerates it), so the curated entry vanished from the picker. Merge curated _PROVIDER_MODELS["anthropic"] with the live catalog — curated first, live-only appended, deduped — mirroring the OpenAI curated-merge path. Live failure / no creds falls back to curated verbatim.
ziliangpeng
pushed a commit
to ziliangpeng/hermes-agent
that referenced
this pull request
Jun 10, 2026
…earch#43103) The Anthropic picker returned the live /v1/models dump verbatim whenever credentials were configured. Anthropic's API lags newly-routed curated aliases (e.g. claude-fable-5, reachable on Anthropic before the models endpoint enumerates it), so the curated entry vanished from the picker. Merge curated _PROVIDER_MODELS["anthropic"] with the live catalog — curated first, live-only appended, deduped — mirroring the OpenAI curated-merge path. Live failure / no creds falls back to curated verbatim.
changman
pushed a commit
to changman/hermes-agent
that referenced
this pull request
Jun 10, 2026
…earch#43103) The Anthropic picker returned the live /v1/models dump verbatim whenever credentials were configured. Anthropic's API lags newly-routed curated aliases (e.g. claude-fable-5, reachable on Anthropic before the models endpoint enumerates it), so the curated entry vanished from the picker. Merge curated _PROVIDER_MODELS["anthropic"] with the live catalog — curated first, live-only appended, deduped — mirroring the OpenAI curated-merge path. Live failure / no creds falls back to curated verbatim.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
claude-fable-5(and any newly-routed curated Anthropic alias) now stays in the/modelpicker even on a native Anthropic setup.Root cause:
provider_model_ids("anthropic")returned the live/v1/modelsdump verbatim when credentials were configured. Anthropic's API lags freshly-routed aliases —claude-fable-5is reachable on Anthropic before the models endpoint enumerates it — so the curated entry dropped out of the picker.Changes
hermes_cli/models.py: merge curated_PROVIDER_MODELS["anthropic"]with the live catalog — curated first, live-only models appended, deduped (case-insensitive). Live failure / no creds falls back to the curated list verbatim. Mirrors the existing OpenAI curated-merge philosophy.tests/hermes_cli/test_anthropic_picker_curated.py: regression coverage — curated alias survives when live omits it, merge dedupes overlap and appends live-only, fallback when live unavailable.Validation
claude-fable-5tests/hermes_cli/test_anthropic_picker_curated.py— 3 passed. Sibling picker tests (-k "anthropic or provider_model") — 120 passed, no regressions.Infographic