Skip to content

fix(kimi): map auto-discovered short model IDs to API-accepted names (Closes #13758)#13802

Open
ms-alan wants to merge 1 commit into
NousResearch:mainfrom
ms-alan:fix/13758-kimi-model-mapping
Open

fix(kimi): map auto-discovered short model IDs to API-accepted names (Closes #13758)#13802
ms-alan wants to merge 1 commit into
NousResearch:mainfrom
ms-alan:fix/13758-kimi-model-mapping

Conversation

@ms-alan

@ms-alan ms-alan commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Summary

The Kimi/Moonshot /models endpoint returns internal short-form IDs (e.g. k2p6) in its auto-discovery list, but the actual API only accepts canonical model names (e.g. kimi-k2.6). Selecting k2p6 from the dropdown therefore fails with a model-not-found error.

Fix: In normalize_model_for_provider(), add a Kimi-specific short-ID → canonical-ID mapping for kimi-coding, kimi-coding-cn, and moonshot providers.

Changes

  • hermes_cli/model_normalize.py: Add short-ID mapping (k2p6kimi-k2.6, k2p5kimi-k2.5, k2p8kimi-k2.8) for Kimi/Moonshot providers

Testing

  • normalize_model_for_provider("k2p6", "kimi-coding")"kimi-k2.6"
  • normalize_model_for_provider("moonshotai/k2p5", "kimi-coding-cn")"kimi-k2.5"

Closes #13758

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard provider/kimi Kimi / Moonshot labels Apr 22, 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 P2 Medium — degraded but workaround exists provider/kimi Kimi / Moonshot type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kimi provider model ID mapping: auto-discovered 'k2p6' fails, manual 'kimi-k2.6' works

3 participants