feat(kimi): register k3-256k in the picker and the price catalog - #5447
yuanyuanlove wants to merge 2 commits into
Conversation
Live verification 260921: k3-256k is the same K3 served under the explicit ceiling id - the same 988-token scaffold and identity answer as bare k3 on the same input. The subscription endpoint lists it alongside kimi-for-coding[-highspeed] and k3, but the opencodex picker and the expected-prices overlay only knew k3 and k3[1m], so usage logged under k3-256k showed as unestimable. - KIMI_CODING_K3_MODELS gains k3-256k, so the picker, context windows (262_144, the advertised ceiling), reasoning ladder and locked-parameter lists all derive it automatically. - expected-prices gains kimi/kimi-code entries at the same KIMI_K3 rate (input 3 / output 15 / cacheRead 0.3), sourced as verified-derived with the live probe note. - Parity and overlay-membership tests updated for the new id. Verified: provider-registry-parity + codex-catalog + usage-cost + model-rename-migration 539 pass, tsc clean.
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe Kimi Coding registry now includes ChangesK3 256K Alias Support
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
리뷰 · 우선순위 18 / 80이 PR은 Kimi 구독 서버가 쓰는 모델 이름 지금까지 그 목록과 비용표에는 씨앗 목록 라인 메인테이너의 판단이 필요한 지점 고르는 목록에 같은 실측 메모에는 너의 추천 그대로 병합해도 됩니다. 베이스는 이 댓글은 grok-bot이 작성했습니다 |
086a0f5 to
5910394
Compare
Per maintainer review on lidge-jun#5447: the overlay test only bumped the row count 126->128, so dropping the new k3-256k rows and adding any other two rows would still pass. Name kimi/k3-256k and kimi-code/k3-256k in the mandatory list so the test fails if either row disappears.
问题
Kimi 订阅端
/coding/v1/models现在返回k3-256k(与kimi-for-coding[-highspeed]、k3并列),但 opencodex 的 picker 和成本追踪目录都只有k3和k3[1m]——用户选k3-256k后 usage 显示"无法估算"。证据(2026-09-21 实测,非文档转述)
k3-256k是服务端真实存在的 ID:POST /coding/v1/chat/completions200。k3是同一模型:同样长输入两边 prompt 都计 988 token(服务端脚手架一致),自我认知回答一致;K3 官方文档的计费表按k3一档计价。k3[1m]是 opencodex 本地别名(wire 上 strip 成k3),而k3-256k是服务端原生 ID,不能靠 bracket-strip 合并。改动
model-seeds.ts:KIMI_CODING_K3_MODELS加k3-256k,picker / 上下文窗口(262_144)/ 推理档位 / 锁定参数列表自动派生。expected-prices.ts:kimi / kimi-code 各加k3-256k价格记录,同 KIMI_K3 档(input 3 / output 15 / cacheRead 0.3),source 注明 verified-derived 及实测依据。验证
bun x tsc --noEmit干净。bun test tests/providers/provider-registry-parity.test.ts tests/codex-integration/codex-catalog.test.ts tests/usage/usage-cost.test.ts tests/providers/model-rename-migration.test.ts:539 pass / 0 fail。Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit
New Features
k3-256k.Tests