Uh oh!
There was an error while loading. Please reload this page.
[Feat] Add Kimi K3 model to Moonshot and OpenCode Go providers - #996
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
edelauna
left a comment
There was a problem hiding this comment.
@zoomote can you address the feedback
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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. |
Both review items are addressed in e782967:
Both review threads are resolved. Validation: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.