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
Closed
feat(kimi): add k2.6-code-preview support across kimi-coding, kimi-coding-cn, and moonshot#10675nicoechaniz wants to merge 1 commit into
nicoechaniz wants to merge 1 commit into
Conversation
…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.
Contributor
Author
|
Closing temporarily — will reopen once fully ready. |
This was referenced Aug 3, 2026
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
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:
Test plan:
Fixes spurious 'not found' warnings when selecting k2.6-code-preview.