Skip to content

chore(ai-gateway): remove disabled free KAT-Coder and Seed 2.0 Code models - #4871

Merged
chrarnoldus merged 2 commits into
mainfrom
confirmed-plate
Jul 30, 2026
Merged

chore(ai-gateway): remove disabled free KAT-Coder and Seed 2.0 Code models#4871
chrarnoldus merged 2 commits into
mainfrom
confirmed-plate

Conversation

@chrarnoldus

@chrarnoldus chrarnoldus commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Removes the two disabled free Kilo-exclusive models from the codebase:

kwaipilot/kat-coder-pro-v2.5:free

  • Deletes providers/streamlake.ts (single-model file holding the disabled model definition)

bytedance-seed/dola-seed-2.0-code:free

  • Deletes providers/seed.ts (single-model file holding the disabled model definition)
  • Removes the now-unused REASONING_VARIANTS_SEED and the seed branches in getModelVariants/getAiSdkProvider in model-settings.ts

Shared

  • Drops both models from kiloExclusiveModels in models.ts
  • Adds both public IDs to forbiddenFreeModelIds per the ai-gateway AGENTS.md invariant, so stale clients get the appropriate forbidden-model error from the openrouter route
  • Tests: model-api-kinds.test.ts now stubs a disabled catalog model instead of depending on a real provider file; openrouter/index.test.ts uses a synthetic disabled free model mirroring the existing disabledPaidModel pattern

Note: isDeadFreeModel stays as defensive machinery in the openrouter route even though the catalog currently has no disabled models. The BytePlus direct-BYOK dola-seed-2.0-code coding-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, and direct-byok model settings pass (66 tests).

@chrarnoldus chrarnoldus self-assigned this Jul 29, 2026
@kilo-code-bot

kilo-code-bot Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Clean, minimal removal of the disabled bytedance-seed/dola-seed-2.0-code:free model, following the same pattern as the earlier kwaipilot/kat-coder-pro-v2.5:free removal, with no dangling references and correct adherence to the ai-gateway forbidden-free-models invariant.

Files Reviewed (6 files)
  • apps/web/src/lib/ai-gateway/forbidden-free-models.ts
  • apps/web/src/lib/ai-gateway/model-api-kinds.test.ts
  • apps/web/src/lib/ai-gateway/models.ts
  • apps/web/src/lib/ai-gateway/providers/model-settings.ts
  • apps/web/src/lib/ai-gateway/providers/openrouter/index.test.ts
  • apps/web/src/lib/ai-gateway/providers/seed.ts (deleted)
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 Summary

Clean, minimal removal of the disabled kwaipilot/kat-coder-pro-v2.5:free model with no dangling references and correct adherence to the ai-gateway forbidden-free-models invariant.

Files Reviewed (4 files)
  • apps/web/src/lib/ai-gateway/forbidden-free-models.ts
  • apps/web/src/lib/ai-gateway/models.ts
  • apps/web/src/lib/ai-gateway/providers/model-settings.ts
  • apps/web/src/lib/ai-gateway/providers/streamlake.ts (deleted)

Reviewed by claude-sonnet-5 · Input: 28 · Output: 7.7K · Cached: 743.1K

Review guidance: REVIEW.md from base branch main

@chrarnoldus chrarnoldus changed the title chore(ai-gateway): remove disabled kwaipilot/kat-coder-pro-v2.5:free model chore(ai-gateway): remove disabled free KAT-Coder and Seed 2.0 Code models Jul 29, 2026
@chrarnoldus
chrarnoldus merged commit 4438e2b into main Jul 30, 2026
16 checks passed
@chrarnoldus
chrarnoldus deleted the confirmed-plate branch July 30, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants