Skip to content

fix(ai-gateway): retire inclusionai/ling-3.0-flash:free - #5108

Merged
emilieschario merged 1 commit into
mainfrom
fix/remove-ling-3.0-flash-free
Aug 6, 2026
Merged

emilieschario merged 1 commit into
mainfrom
fix/remove-ling-3.0-flash-free

Conversation

@eshurakov

Copy link
Copy Markdown
Contributor

Summary

  • Upstream removed free tier for inclusionai/ling-3.0-flash:free (OpenRouter 404 “unavailable for free”; Novita/Vercel “model not found”), which zeroed successful traffic and kept BetterStack /api/models/up unhealthy.
  • Remove the model from autoFreeModels so kilo-auto/free and preferred/monitor lists no longer include it.
  • Add it to unavailableModelIds so direct requests get a clean unavailable-model error.
  • Update unit test expectations.

Test plan

  • CI: models.test.ts, unavailable-models.test.ts, variants.test.ts
  • After deploy: curl -s 'https://api.kilo.ai/api/models/up?key=kilo-models-health-check' | jq '.healthy, .models["inclusionai/ling-3.0-flash:free"]' — overall healthy; free Ling absent or not monitored
  • Confirm BetterStack models/up monitor recovers
  • Spot-check kilo-auto/free still resolves to remaining candidates (stepfun / laguna)

Upstream removed the free tier (OpenRouter 404 / Novita model-not-found),
which zeroed successful traffic and kept /api/models/up unhealthy. Drop it
from auto-free routing and mark it unavailable so stale clients get a clean
error and the health monitor stops paging on a dead SKU.
@kilo-code-bot

kilo-code-bot Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (4 files)
  • apps/web/src/lib/ai-gateway/models.ts
  • apps/web/src/lib/ai-gateway/models.test.ts
  • apps/web/src/lib/ai-gateway/providers/variants.test.ts
  • apps/web/src/lib/ai-gateway/unavailable-models.ts

Reviewed the retirement of inclusionai/ling-3.0-flash:free with high confidence. The removal from autoFreeModels propagates correctly to all dynamic consumers (preferredModels, getMonitoredModels for /api/models/up, Slack-bot allow list, models router, model combobox), and the addition to unavailableModelIds follows the scoped AGENTS.md convention so stale clients receive the generic unavailable-model error. Test expectation updates are consistent with the source changes; no remaining hardcoded references to the model exist outside unchanged, harmless fallback entries (Vercel ID mapping, ling- variant rule).


Reviewed by kimi-k3 · Input: 59.7K · Output: 9.2K · Cached: 515.4K

Review guidance: REVIEW.md from base branch main

@eshurakov
eshurakov enabled auto-merge (squash) August 6, 2026 17:10
@emilieschario
emilieschario disabled auto-merge August 6, 2026 17:47
@emilieschario
emilieschario merged commit 5c9d3c8 into main Aug 6, 2026
11 checks passed
@emilieschario
emilieschario deleted the fix/remove-ling-3.0-flash-free branch August 6, 2026 17:47
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.

3 participants