feat(routing): add is_openai_deactivated flag to route balanced to Kimi K2.5#2569
Draft
kilo-code-bot[bot] wants to merge 2 commits intomainfrom
Draft
feat(routing): add is_openai_deactivated flag to route balanced to Kimi K2.5#2569kilo-code-bot[bot] wants to merge 2 commits intomainfrom
kilo-code-bot[bot] wants to merge 2 commits intomainfrom
Conversation
…imi K2.5 When is_openai_deactivated is set on a user, kilo-auto/balanced routes to moonshotai/kimi-k2.5 instead of openai/gpt-5.3-codex. Admins can toggle this flag from the user detail page.
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (9 files)
Reviewed by gpt-5.4-20260305 · 1,193,174 tokens |
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
is_openai_deactivatedboolean column (defaultfalse, not null) tokilocode_userstablekilo-auto/balancedroutes tomoonshotai/kimi-k2.5instead ofopenai/gpt-5.3-codexVerification
tsgo(exit 0)pnpm formatpnpm drizzle generate(committed separately as0097_pink_patriot.sql)Visual Changes
N/A
Reviewer Notes
resolution.tsawaits the user promise (already fetched for the KiloClaw setup promo check in the same branch), so there's no extra DB round-trip in the non-KiloClaw path.BALANCED_KIMI_MODELconstant has noreasoningconfig — Kimi K2.5 does not require it. TheapplyMoonshotModelSettingsmiddleware will strip unsupported params (temperature/top_p) via the existing provider handler.