Skip to content

fix(models): fallback to static catalog when live /models returns incomplete list#13552

Open
beber666 wants to merge 1 commit into
NousResearch:mainfrom
beber666:fix-kimi-incomplete-models-list
Open

fix(models): fallback to static catalog when live /models returns incomplete list#13552
beber666 wants to merge 1 commit into
NousResearch:mainfrom
beber666:fix-kimi-incomplete-models-list

Conversation

@beber666

Copy link
Copy Markdown

The Kimi Coding Plan endpoint exposes /v1/models but returns an incomplete list (only 'kimi-for-coding'). validate_requested_model() trusted this live list and rejected valid models like kimi-k2.5 and kimi-k2.6 because they were missing from the API response.

This patch:

  1. Adds 'kimi-for-coding' to _PROVIDER_MODELS (the canonical alias used by normalize_provider for all Kimi providers).
  2. Falls back to the static catalog via provider_model_ids() when the live /models endpoint responds but does not contain the requested model. This fixes switching for Kimi and any other provider with a partial /models listing.

Closes #12919, #12532, #7922

…omplete list

The Kimi Coding Plan endpoint exposes /v1/models but returns an
incomplete list (only 'kimi-for-coding'). validate_requested_model()
trusted this live list and rejected valid models like kimi-k2.5 and
kimi-k2.6 because they were missing from the API response.

This patch:
1. Adds 'kimi-for-coding' to _PROVIDER_MODELS (the canonical alias
   used by normalize_provider for all Kimi providers).
2. Falls back to the static catalog via provider_model_ids() when
   the live /models endpoint responds but does not contain the
   requested model. This fixes switching for Kimi and any other
   provider with a partial /models listing.

Closes upstream issues NousResearch#12919, NousResearch#12532, NousResearch#7922
@alt-glitch alt-glitch added type/bug Something isn't working provider/kimi Kimi / Moonshot comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 21, 2026
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 provider/kimi Kimi / Moonshot type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/model regressions: minimax-cn validation blocks valid switches; user-defined providers from config.providers can fail direct --provider switching

2 participants