[Feat] Add Kimi K3 model to Moonshot and OpenCode Go providers#996
Merged
Conversation
Contributor
Author
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
8 tasks
navedmerchant
marked this pull request as ready for review
July 24, 2026 06:36
navedmerchant
requested review from
JamesRobert20,
edelauna,
hannesrudolph,
navedmerchant and
taltas
as code owners
July 24, 2026 06:36
edelauna
requested changes
Jul 24, 2026
edelauna
left a comment
Contributor
There was a problem hiding this comment.
@zoomote can you address the feedback
Contributor
Author
|
I saw the mention, but I need your GitHub account linked to Roomote before issue and PR comments can start work here. Link it from Settings -> Linked Accounts and then mention me again. |
Contributor
Author
|
Both review items are addressed in e782967:
Both review threads are resolved. Validation: |
This was referenced Jul 24, 2026
edelauna
approved these changes
Jul 24, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 24, 2026
This was referenced Jul 24, 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.
Related GitHub Issue
Closes: #932
Description
Adds Moonshot AI's new flagship Kimi K3 model (
kimi-k3) to the Moonshot provider and the OpenCode Go provider, with parameters researched from Moonshot's platform docs (https://platform.moonshot.ai/docs) and the OpenCode Go model table (https://opencode.ai/docs/go):max_completion_tokens, configurable up to 1,048,576)supportsImages: trueinmoonshot.ts;falseinopencode-go.ts, matching the existing Go-plan Kimi entries), automatic prompt caching, always-on reasoning with configurablereasoning_effort(low/high/max, defaultmax), fixed temperature 1.0kimi-k3is intentionally not added toOPENCODE_GO_ANTHROPIC_FORMAT_MODELSkimi-k3toLITELLM_PRESERVE_REASONING_MODEL_IDSsince both registries setpreserveReasoning: true, keeping that list in sync per its documented contract.Test Procedure
pnpm testfrom the repo root: all tasks successful, 6851 tests passed (0 failed)pnpm lint,pnpm check-types) all passkimi-k3to the OpenAI-format classification list inpackages/types/src/__tests__/opencode-go.test.tsand an explicit assertion inpackages/types/src/__tests__/lite-llm.test.ts; existing registry invariant tests (positive maxTokens/contextWindow, supportsImages declared, reasoning-effort allow-list non-empty) cover the new entries automaticallygetOpencodeGoModelInfo("kimi-k3")assertion block inopencode-go.test.tscovering the reasoning fields (supportsReasoningEffort,reasoningEffort: "max",preserveReasoning: true) plus context/pricing flags, and a newpackages/types/src/__tests__/moonshot.test.tssuite validating themoonshotModelsregistry invariants, the fullkimi-k3Moonshot entry, and the provider defaultsPre-Submission Checklist
Screenshots / Videos
N/A — non-visual model-registry metadata change; the model appears automatically in the existing provider model dropdowns.
Documentation Updates
The Moonshot docs page (
docs/providers/moonshot.md) does not enumerate individual models ("Zoo Code supports all models available through the Moonshot API"), and there is no OpenCode Go provider docs page, so no docs-repo change is needed.Additional Notes
Kimi K3 is Moonshot's 2.8-trillion-parameter flagship (Kimi Delta Attention hybrid linear attention, 16-of-896 active experts), positioned for long-horizon coding and knowledge work. Note that K3 always reasons — thinking cannot be disabled, only tuned via
reasoning_effort.