Skip to content

fix(ai-gateway): stop treating OpenRouter alpha/beta as free#4622

Open
chrarnoldus wants to merge 1 commit into
mainfrom
session/agent_89369f2c-a769-4c9c-88ec-e0209b1039d1
Open

fix(ai-gateway): stop treating OpenRouter alpha/beta as free#4622
chrarnoldus wants to merge 1 commit into
mainfrom
session/agent_89369f2c-a769-4c9c-88ec-e0209b1039d1

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

  • OpenRouter models with IDs starting with openrouter/ and ending in -alpha or -beta are no longer treated as free.
  • Removes isOpenRouterStealthModel from the free-model check (covers cases like openrouter/auto-beta).
  • Updates unit tests to expect these models to be paid.

Test plan

  • CI unit tests for isFreeModel / models.test.ts
  • Confirm openrouter/auto-beta and other openrouter/*-alpha|*-beta IDs require balance / are not free
  • Confirm openrouter/free and *:free models remain free

OpenRouter models ending in -alpha or -beta (e.g. openrouter/auto-beta)
are no longer considered free.

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@chrarnoldus chrarnoldus self-assigned this Jul 18, 2026
@kilo-code-bot

kilo-code-bot Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Reviewed the removal of the OpenRouter alpha/beta free-model carve-out; the change and its updated tests are internally consistent and no other references to the removed helper remain.

Files Reviewed (3 files)
  • apps/web/src/lib/ai-gateway/is-free-model.ts
  • apps/web/src/lib/ai-gateway/models.test.ts
  • apps/web/src/lib/ai-gateway/models.ts

Reviewed by claude-sonnet-5 · Input: 18 · Output: 3K · Cached: 324.5K

Review guidance: REVIEW.md from base branch main

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.

1 participant