feat(kimi): add k2.6-code-preview support across kimi-coding, kimi-coding-cn, and moonshot#10751
Closed
nicoechaniz wants to merge 2 commits into
Closed
feat(kimi): add k2.6-code-preview support across kimi-coding, kimi-coding-cn, and moonshot#10751nicoechaniz wants to merge 2 commits into
nicoechaniz wants to merge 2 commits into
Conversation
bcf70a3 to
133bb3d
Compare
This was referenced Apr 16, 2026
c20e064 to
904492b
Compare
…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.
Kimi's k2.6-code-preview on api.kimi.com/coding/v1 rejects any temperature other than exactly 0.6 with: 'invalid temperature: only 0.6 is allowed for this model' - Add hermes_cli.models.kimi_coding_required_temperature() helper - Pin temperature in Agent._build_api_kwargs() for Kimi Coding routes - Pin temperature in auxiliary_client._build_call_kwargs() - Add tests covering positive, negative, and cross-endpoint cases Also includes unstaged Kimi CLI OAuth header support for coding endpoints.
904492b to
8a093d3
Compare
Contributor
Author
|
Hi @teknium1 — this PR adds first-class support for Kimi k2.6-code-preview across all Kimi providers, plus fixes for spurious validation warnings. It's rebased on latest main and ready for review. Thanks! |
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.
Closes #11168
Summary
Adds first-class support for Moonshot Kimi k2.6-code-preview, including fixes for spurious validation warnings and autocomplete behavior.
What changed:
/model kimiresolves to k2.6-code-preview. Prioritize curated lists over models.dev catalog in resolve_alias().Test plan:
/model kimi), and via the interactive model picker without spurious warnings.Fixes spurious "not found" warnings when selecting k2.6-code-preview.