chore(ai-gateway): remove disabled free KAT-Coder and Seed 2.0 Code models - #4871
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryClean, minimal removal of the disabled Files Reviewed (6 files)
Previous Review Summary (commit 94c1454)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 94c1454)Status: No Issues Found | Recommendation: Merge Executive SummaryClean, minimal removal of the disabled Files Reviewed (4 files)
Reviewed by claude-sonnet-5 · Input: 28 · Output: 7.7K · Cached: 743.1K Review guidance: REVIEW.md from base branch |
johnnyeric
approved these changes
Jul 30, 2026
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.
Removes the two disabled free Kilo-exclusive models from the codebase:
kwaipilot/kat-coder-pro-v2.5:free
providers/streamlake.ts(single-model file holding the disabled model definition)bytedance-seed/dola-seed-2.0-code:free
providers/seed.ts(single-model file holding the disabled model definition)REASONING_VARIANTS_SEEDand the seed branches ingetModelVariants/getAiSdkProviderinmodel-settings.tsShared
kiloExclusiveModelsinmodels.tsforbiddenFreeModelIdsper the ai-gateway AGENTS.md invariant, so stale clients get the appropriate forbidden-model error from the openrouter routemodel-api-kinds.test.tsnow stubs a disabled catalog model instead of depending on a real provider file;openrouter/index.test.tsuses a synthetic disabled free model mirroring the existingdisabledPaidModelpatternNote:
isDeadFreeModelstays as defensive machinery in the openrouter route even though the catalog currently has no disabled models. The BytePlus direct-BYOKdola-seed-2.0-codecoding-plan model is a separate paid path and is untouched.Verification: web package typecheck passes; targeted jest suites for
models,model-api-kinds,forbidden-free-models,openrouter, anddirect-byokmodel settings pass (66 tests).