Repository navigation
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Review statusThanks for contributing. This comment tracks the review sequence and the next action. Current step: Resolve the merge conflicts. The review sequence resumes after the branch is mergeable. Review-state labels are managed by this workflow; do not edit them manually. |
|
This PR has been awaiting author changes for 14 days and will be automatically closed in 7 days. Please address the review comments or leave a comment if you need more time. |
Related GitHub Issue
Related: #1316
Follow-up to: #1325
Description
Kimi Code now applies protocol-specific request behavior for subscription and API-key models. K3 keeps the direct API's 131K output default, uses
low/high/maxreasoning effort withhighas the default, and omits temperature. K2.7 Code sends preserved thinking instead ofreasoning_effortand carries reasoning context through tool-result continuations.The generic OpenAI-compatible handler exposes narrow request and message-conversion hooks so Kimi Code can customize these fields without duplicating the full request pipeline. Discovered server capacity still overrides local fallback metadata without guessing a protocol for unknown future model IDs.
Test Procedure
Run
pnpm testandpnpm check-typesfrom the repository root. The provider and fetcher suites include wire-level coverage for all four model IDs, temperature omission, custom effort, OAuth retry, server metadata overrides, and preserved thinking across a tool-result plus trailing-text continuation.Pre-Submission Checklist
Visual Snapshots
Not applicable.
Videos (interaction / animation only)
Not applicable.
Documentation Updates
See Zoo-Code-Org/Zoo-Code-Docs#43.
Additional Notes
PR #1325 correctly fixes Kimi K3 through OpenRouter, whose 32,768-token upstream cap differs from the direct Kimi Code API. This PR intentionally keeps the direct provider's 131,072-token output default.
Related PRs
Get in Touch
@taltas