Skip to content

feat(kimi): add k2.6-code-preview support across kimi-coding, kimi-coding-cn, and moonshot - #10675

Closed
nicoechaniz wants to merge 1 commit into
NousResearch:mainfrom
nicoechaniz:feat/kimi-k2.6-code-preview
Closed

feat(kimi): add k2.6-code-preview support across kimi-coding, kimi-coding-cn, and moonshot#10675
nicoechaniz wants to merge 1 commit into
NousResearch:mainfrom
nicoechaniz:feat/kimi-k2.6-code-preview

Conversation

@nicoechaniz

Copy link
Copy Markdown
Contributor

Summary

Adds first-class support for Moonshot Kimi k2.6-code-preview, including fixes for spurious validation warnings when the live API omits the model.

What changed:

  • agent/model_metadata.py — Added explicit 256K context length fallback for k2.6-code-preview.
  • hermes_cli/models.py — Added k2.6-code-preview to _PROVIDER_MODELS for kimi-coding, kimi-coding-cn, and moonshot. Fixed validate_requested_model() to trust static curated lists when the live API is incomplete (e.g. Kimi Coding Plan only exposes kimi-for-coding) or unreachable.
  • hermes_cli/model_switch.py — Fixed explicit --provider resolution to use the Hermes internal provider ID (kimi-coding) instead of the models.dev ID (kimi-for-coding), preventing validation mismatches in the interactive model picker.
  • hermes_cli/setup.py — Updated setup-wizard default model lists to prioritize k2.6-code-preview for kimi-coding and kimi-coding-cn.
  • tests/hermes_cli/test_model_validation.py — Added coverage for the static-list fallback behavior and updated a stale provider label assertion for Kimi.

Test plan:

  • All 64 model validation tests pass.
  • k2.6-code-preview resolves correctly via /model direct input and via the interactive model picker without spurious warnings.
  • Context length matches (256K).

Fixes spurious 'not found' warnings when selecting k2.6-code-preview.

…ding-cn, and moonshot

- Add k2.6-code-preview to _PROVIDER_MODELS for kimi-coding, kimi-coding-cn,
  and moonshot so it appears in /model, hermes model, and gateway pickers.
- Add 256K context length fallback entry for k2.6-code-preview.
- Update setup-wizard default model lists to prioritize k2.6-code-preview.
- Fix validate_requested_model() to trust static curated lists when the live
  API responds but omits the model (e.g. Kimi Coding Plan only exposes
  kimi-for-coding), and extend the same trust when the API is unreachable.
- Fix switch_model() to use the Hermes internal provider ID (kimi-coding)
  instead of the models.dev ID (kimi-for-coding) when resolving explicit
  providers, preventing validation mismatches in the model picker.
- Add test coverage for the static-list fallback behavior.

Fixes spurious 'not found' warnings when selecting k2.6-code-preview via
/model or the interactive model picker.
@nicoechaniz

Copy link
Copy Markdown
Contributor Author

Closing temporarily — will reopen once fully ready.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant