Skip to content

feat(ai-gateway): route fast Opus and GPT Pro through Vercel#4582

Draft
chrarnoldus wants to merge 3 commits into
mainfrom
feat/vercel-model-provider-options
Draft

feat(ai-gateway): route fast Opus and GPT Pro through Vercel#4582
chrarnoldus wants to merge 3 commits into
mainfrom
feat/vercel-model-provider-options

Conversation

@chrarnoldus

@chrarnoldus chrarnoldus commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • map the fast Claude Opus variant to its base Vercel model and set Anthropic speed: fast
  • map GPT Pro variants to their base Vercel models and set OpenAI reasoningMode: pro
  • centralize Anthropic and OpenAI variant detection in shared provider helpers
  • extend Vercel provider-option types and cover option generation and model-ID mappings

Verification

  • pnpm --filter web test -- --runInBand apps/web/src/lib/ai-gateway/providers/vercel/index.test.ts apps/web/src/lib/ai-gateway/providers/vercel/mapModelIdToVercel.test.ts
  • pnpm --filter web test -- --runInBand apps/web/src/lib/ai-gateway/providers/vercel/index.test.ts apps/web/src/lib/ai-gateway/providers/openrouter/index.test.ts apps/web/src/lib/ai-gateway/providers/model-prefix.test.ts
  • pnpm --filter web typecheck
  • pnpm exec oxfmt --list-different apps/web/src/lib/ai-gateway/providers/vercel/mapModelIdToVercel.ts apps/web/src/lib/ai-gateway/providers/vercel/mapModelIdToVercel.test.ts
  • git diff --check

@chrarnoldus chrarnoldus self-assigned this Jul 16, 2026
@chrarnoldus chrarnoldus changed the title feat(ai-gateway): support Vercel model options feat(ai-gateway): route fast Opus and GPT Pro through Vercel Jul 16, 2026
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