Skip to content

Commit b6d9f56

Browse files
authored
fix(ai-gateway): exclude Laguna from Vercel routing (#4918)
* fix(ai-gateway): exclude Laguna from Vercel routing * fix(ai-gateway): broaden Laguna routing exclusion
1 parent 9a95361 commit b6d9f56

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • apps/web/src/lib/ai-gateway/providers/vercel

apps/web/src/lib/ai-gateway/providers/vercel/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ export async function shouldRouteToVercel(
9595
request: GatewayRequest,
9696
randomSeed: string
9797
) {
98+
// BYOK in the Vercel AI Gateway was not working for Laguna models.
99+
if (requestedModel.includes('laguna')) {
100+
return false;
101+
}
102+
98103
if (isOpenRouterGpt56PromoModel(requestedModel)) {
99104
console.debug(
100105
`[shouldRouteToVercel] routing ${requestedModel} to OpenRouter for the GPT-5.6 promotion`

0 commit comments

Comments
 (0)