Skip to content

feat(ai-gateway): add Laguna S to auto free - #4899

Merged
chrarnoldus merged 1 commit into
mainfrom
spiky-joggers
Jul 30, 2026
Merged

feat(ai-gateway): add Laguna S to auto free#4899
chrarnoldus merged 1 commit into
mainfrom
spiky-joggers

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

  • add poolside/laguna-s-2.1:free to the auto-free model pool
  • retain live OpenRouter catalog gating for candidate availability

Testing

  • pnpm exec oxfmt --check apps/web/src/lib/ai-gateway/models.ts
  • pnpm --filter web test -- --runInBand src/lib/ai-gateway/models.test.ts
  • git diff --check

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

kilo-code-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Single-line addition of poolside/laguna-s-2.1:free to autoFreeModels; verified against the free-model predicate, AI SDK provider grouping, Vercel mapping, and the OpenRouter catalog gating in getAutoFreeCandidates, with high confidence.

Notes

  • isFreeModel returns true via the :free suffix, so models.test.ts "all autoFreeModels should pass isFreeModel" holds without extra registration (unlike the earlier Ling addition, which needed an is-free-model.ts change).
  • getAiSdkProvider('poolside/laguna-s-2.1:free', null) returns undefined, matching the other entries, so the "same AI SDK provider" test still passes.
  • Availability stays gated: getAutoFreeCandidates only adds non-Kilo-exclusive entries present in the Redis OpenRouter catalog (resolution.ts:90), so an absent model is skipped rather than routed.
  • The exact model ID already appears in mapModelIdToVercel.test.ts on main, and poolside is a valid OpenRouter inference provider; it is intentionally left unmapped for Vercel, consistent with the existing OpenRouter-only test.
Files Reviewed (1 file)
  • apps/web/src/lib/ai-gateway/models.ts

Reviewed by claude-opus-5 · Input: 42 · Output: 6.6K · Cached: 992.1K

Review guidance: REVIEW.md from base branch main

@chrarnoldus
chrarnoldus merged commit 141f16d into main Jul 30, 2026
16 checks passed
@chrarnoldus
chrarnoldus deleted the spiky-joggers branch July 30, 2026 18:21
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