Skip to content

chore(ai-gateway): map all OpenRouter -latest aliases to Vercel#3008

Open
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
charnoldus/update-vercel-openrouter-latest-mapping
Open

chore(ai-gateway): map all OpenRouter -latest aliases to Vercel#3008
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
charnoldus/update-vercel-openrouter-latest-mapping

Conversation

@kilo-code-bot
Copy link
Copy Markdown
Contributor

@kilo-code-bot kilo-code-bot Bot commented May 2, 2026

Summary

  • Add Vercel mappings for the two remaining OpenRouter ~*-latest aliases: ~google/gemini-flash-latestgoogle/gemini-3-flash and ~openai/gpt-mini-latestopenai/gpt-5.4-mini.
  • Introduce GEMINI_FLASH_CURRENT_* and GPT_MINI_CURRENT_* constants alongside the existing pro/gpt constants so the targets can be bumped in one place.
  • Remove the arcee-ai/trinity-large-preview:free mapping since that :free variant no longer exists on OpenRouter (the forbidden-free-models entry already covers stale clients).

Verification

Visual Changes

N/A

Reviewer Notes

  • GEMINI_FLASH_CURRENT_VERCEL_MODEL_ID is set to google/gemini-3-flash. If you'd prefer google/gemini-3.1-flash-lite-preview or similar, it's a one-line swap.
  • Full pnpm typecheck across the monorepo was skipped in favor of the targeted pnpm --filter web typecheck for turnaround time.

Add mappings for ~google/gemini-flash-latest and ~openai/gpt-mini-latest,
and remove the arcee-ai/trinity-large-preview:free mapping since that
variant no longer exists on OpenRouter.
@kilo-code-bot
Copy link
Copy Markdown
Contributor Author

kilo-code-bot Bot commented May 2, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (4 files)
  • apps/web/src/lib/ai-gateway/providers/google.ts
  • apps/web/src/lib/ai-gateway/providers/openai.ts
  • apps/web/src/lib/ai-gateway/providers/vercel/mapModelIdToVercel.ts
  • apps/web/src/lib/ai-gateway/providers/vercel/mapModelIdToVercel.test.ts

Reviewed by gpt-5.5-2026-04-23 · 135,810 tokens

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