You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a Vercel AI Gateway server provider backed by the OpenAI-compatible https://ai-gateway.vercel.sh/v1 API.
Adds Echo SDK support via createEchoVercelAIGateway, plus exported VercelModels and model listing integration.
Generates Vercel Gateway language model pricing from the unauthenticated /v1/models endpoint. Echo exposes these as vercel-ai-gateway/<provider>/<model> and strips the prefix before forwarding upstream so existing OpenRouter model IDs are not overwritten.
Supports AI_GATEWAY_API_KEY and VERCEL_AI_GATEWAY_API_KEY for Gateway credentials.
Validation
pnpm -C packages/sdk/ts run update-models:vercel
pnpm -C packages/sdk/ts run type-check
pnpm -C packages/sdk/ts run build
pnpm -C packages/app/server run build
pnpm -C packages/app/server exec vitest run src/__tests__/vercel-ai-gateway-provider.test.ts
git diff --check
Known existing issue
pnpm -C packages/app/server run type-check still fails on pre-existing src/utils.ts export issue: ExactEvmPayloadAuthorization is declared locally in types but not exported. After SDK build and Prisma generation, this was the only remaining server type-check error.
Disclosure
Implemented with AI assistance and manually reviewed/validated before submission.
Follow-up on the red Vercel statuses: these appear to be authorization-gated deployment checks for the Merit Systems Vercel team, not code/test failures in this PR. The Vercel bot message says a team member needs to authorize the deployments first.\n\nThe local validation I ran before submission remains listed in the PR body:\n\n- pnpm -C packages/sdk/ts run update-models:vercel\n- pnpm -C packages/sdk/ts run type-check\n- pnpm -C packages/sdk/ts run build\n- pnpm -C packages/app/server run build\n- pnpm -C packages/app/server exec vitest run src/__tests__/vercel-ai-gateway-provider.test.ts\n- git diff --check\n\nThis follow-up was AI-assisted and manually reviewed.
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
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.
/claim #573
Summary
https://ai-gateway.vercel.sh/v1API.createEchoVercelAIGateway, plus exportedVercelModelsand model listing integration./v1/modelsendpoint. Echo exposes these asvercel-ai-gateway/<provider>/<model>and strips the prefix before forwarding upstream so existing OpenRouter model IDs are not overwritten.AI_GATEWAY_API_KEYandVERCEL_AI_GATEWAY_API_KEYfor Gateway credentials.Validation
pnpm -C packages/sdk/ts run update-models:vercelpnpm -C packages/sdk/ts run type-checkpnpm -C packages/sdk/ts run buildpnpm -C packages/app/server run buildpnpm -C packages/app/server exec vitest run src/__tests__/vercel-ai-gateway-provider.test.tsgit diff --checkKnown existing issue
pnpm -C packages/app/server run type-checkstill fails on pre-existingsrc/utils.tsexport issue:ExactEvmPayloadAuthorizationis declared locally intypesbut not exported. After SDK build and Prisma generation, this was the only remaining server type-check error.Disclosure
Implemented with AI assistance and manually reviewed/validated before submission.