feat(ai-gateway): prepare Vercel model provider options#4582
Open
chrarnoldus wants to merge 6 commits into
Open
feat(ai-gateway): prepare Vercel model provider options#4582chrarnoldus wants to merge 6 commits into
chrarnoldus wants to merge 6 commits into
Conversation
chrarnoldus
marked this pull request as ready for review
July 17, 2026 19:06
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryReviewed the Vercel provider-option prep for Anthropic/OpenAI model variants; the refactor is logically sound, the mapModelIdToVercel edits net to a clean no-op across commits, and behavior is covered by the added tests, so no high-confidence issues were found in the changed code. Files Reviewed (5 files)
Reviewed by claude-sonnet-5 · Input: 36 · Output: 11.2K · Cached: 883.4K Review guidance: REVIEW.md from base branch |
lambertjosh
approved these changes
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
speed: fastand OpenAIreasoningMode: prooptions for future model routing supportThis PR intentionally does not map Opus fast or GPT Pro model IDs to base Vercel model IDs yet. That routing can be enabled separately once the model-name behavior is ready to ship.
Verification
pnpm --filter web test -- --runInBand src/lib/ai-gateway/providers/vercel/index.test.ts src/lib/ai-gateway/providers/vercel/mapModelIdToVercel.test.tspnpm --filter web typecheckpnpm exec oxfmt --check apps/web/src/lib/ai-gateway/providers/vercel/mapModelIdToVercel.ts apps/web/src/lib/ai-gateway/providers/vercel/mapModelIdToVercel.test.tsgit diff --check