Add Kimi K3 via OpenRouter#588
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the built-in model catalog to support the opt-in OpenRouter route moonshotai/kimi-k3, mirroring Kimi K3’s limits, feature flags (tools/vision/reasoning/prompt cache), reasoning controls, and pricing, and adds automated coverage to ensure the catalog entry is present and usable in live OpenRouter tool-round trips.
Changes:
- Added
moonshotai/kimi-k3to the OpenRouter built-in catalog with K3’s limits, features, controls, and costs. - Added a catalog snapshot test to validate the built-in entry appears when OpenRouter is enabled and exposes the expected reasoning-effort controls.
- Added a live-only integration test that builds an OpenRouter client from the catalog and runs a deep tool round-trip against Kimi K3.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| lib/crates/fabro-model/src/catalog/providers/openrouter.toml | Adds the OpenRouter catalog row for moonshotai/kimi-k3 with limits/features/controls/costs. |
| lib/crates/fabro-model/src/catalog.rs | Adds a unit test + insta snapshot asserting Kimi K3 is present when OpenRouter is enabled and exposes expected controls. |
| lib/crates/fabro-llm/tests/integration.rs | Adds a live-only deep tool round-trip integration test using a catalog-built OpenRouter client for Kimi K3. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
moonshotai/kimi-k3No Kimi-specific production Rust is added; the route uses the existing OpenAI-compatible adapter.
Verification
cargo nextest run --locked -p fabro-model -p fabro-llm(753 passed, 16 skipped)cargo +nightly-2026-04-14 clippy -p fabro-model -p fabro-llm --all-targets -- -D warningscargo +nightly-2026-04-14 fmt --check --all