Repository navigation
[AISAGE-707] refactor(gateway): drop Kilo-exclusive model status in favor of the unavailable list - #7785
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryVerified the removal of the Overview
Files Reviewed (26 files)
Verification Notes
Reviewed by deepseek-v4.1-flash · Input: 92.6K · Output: 21.4K · Cached: 2.6M Review guidance: REVIEW.md from base branch |
…clusive-status # Conflicts: # packages/web-shared/src/lib/ai-gateway/kilo-exclusive-models.test.ts # packages/web-shared/src/lib/ai-gateway/kilo-exclusive-models.ts # packages/web-shared/src/lib/ai-gateway/models.test.ts
Follow-up to #7773, which makes the unavailable list hide Kilo-exclusive models from the catalog.
Summary
Removes
status: 'public' | 'hidden' | 'disabled'fromKiloExclusiveModel. Every registered exclusive is now listed and usable unless its ID is on the unavailable list (the hard-coded list inunavailable-models.tsor the adminunavailable_modelscolumn). Unavailable models stay reachable throughkilo-auto, because the gateway's unavailable check already skips auto-resolved requests.hidden→ unavailable. Gemma 4 26B free, the only hidden model, was already on the hard-coded unavailable list, so its behaviour is unchanged: not in the catalog, direct requests rejected,kilo-auto/smallandkilo-auto/freestill route to it.disabledremoved.isDisabledKiloExclusiveModel,shouldSuppressOpenRouterModeland the disabled rejection inllm-proxy.tsare gone. The only disabled entry, StepFun Step 5 Preview (free), is deleted from the registry.openrouter/index.ts), provider sync (sync-providers.ts) and free-endpoint data policy now check the unavailable list.mapModelIdToVercel,is-free-modeland ChatGPT routing no longer filter by status.hidden_modelreason is removed. Pools validate against the catalog, so unavailable models already fail asunknown_model.Verification
jestacrosspackages/web-shared/src/lib/ai-gateway,model-allow,organizations, the auto-routing libs and routes, andmodel-api-kinds: 121 suites, 2237 passed, 2 skipped.jeston every changed test file plus theget-provider,auto-model,unavailable-models, provider sync and BYOK router suites: 26 suites, 697 passed. Changed test files rerun after rebasing onto currentmain: 15 suites, 529 passed.pnpm --filter @kilocode/web-shared typecheckandtsgo --noEmitinapps/web: passed.oxlinton changed files: 0 warnings, 0 errors.