Skip to content

feat: add Vercel AI Gateway as a provider#745

Open
zhaog100 wants to merge 1 commit intoMerit-Systems:masterfrom
zhaog100:feat/vercel-ai-gateway
Open

feat: add Vercel AI Gateway as a provider#745
zhaog100 wants to merge 1 commit intoMerit-Systems:masterfrom
zhaog100:feat/vercel-ai-gateway

Conversation

@zhaog100
Copy link

Closes #573

Add Vercel AI Gateway provider support.

Wallet: TGu4W5T6q4KvLAbmXmZSRpUBNRCxr2aFTP (USDT TRC20)

Closes Merit-Systems#573

Add support for Vercel AI Gateway as a new provider in the Echo platform:

- SDK (TypeScript): Add createEchoVercelGateway using @ai-sdk/gateway
- SDK (Next.js): Add createEchoVercelGateway wrapper
- Server: Add VercelGatewayProvider with OpenAI-compatible response parsing
- Server: Add VERCEL_GATEWAY to ProviderType enum and ProviderFactory
- Server: Add VERCEL_GATEWAY_API_KEY and VERCEL_GATEWAY_BASE_URL env vars
- Models: Add 30+ Vercel Gateway models with pricing (OpenAI, Anthropic, Google, DeepSeek, xAI, Meta, Mistral)
- Tests: Add unit tests for provider creation and model definitions

Vercel AI Gateway acts as a unified proxy for multiple upstream providers,
supporting model IDs in the format 'provider/model-name' (e.g., 'openai/gpt-4o').

Wallet: TGu4W5T6q4KvLAbmXmZSRpUBNRCxr2aFTP (USDT TRC20)
@vercel
Copy link
Contributor

vercel bot commented Mar 19, 2026

Someone is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

@@ -0,0 +1,66 @@
import { describe, it, expect, vi } from 'vitest';
import { createEchoVercelGateway } from '../src/providers/vercel';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test files have incorrect import paths with extra src prefix that would cause module resolution failures.

Fix on Vercel

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.

Add the Vercel AI Gateway as a Provider

1 participant