Skip to content

[BOUNTY #573] Add Vercel AI Gateway as a Provider#746

Open
zhaog100 wants to merge 2 commits intoMerit-Systems:masterfrom
zhaog100:feat/vercel-ai-gateway-provider
Open

[BOUNTY #573] Add Vercel AI Gateway as a Provider#746
zhaog100 wants to merge 2 commits intoMerit-Systems:masterfrom
zhaog100:feat/vercel-ai-gateway-provider

Conversation

@zhaog100
Copy link

Summary

Add Vercel AI Gateway as a supported provider with accurate pricing and full SDK integration.

Changes

SDK Provider

  • createEchoVercelAIGateway() using @ai-sdk/openai-compatible
  • Follows existing provider pattern (OpenAI, Anthropic, Groq, etc.)

Supported Models (20 models, 7 providers)

  • OpenAI: gpt-4o, gpt-4o-mini, gpt-4.1/mini/nano, gpt-5/mini/nano, o3-mini, o4-mini
  • Anthropic: claude-sonnet-4, claude-haiku-4
  • Google: gemini-2.5-pro, gemini-2.5-flash
  • DeepSeek: deepseek-r1, deepseek-chat
  • Groq: llama-3.1-8b-instant, llama-3.3-70b-versatile
  • Mistral: mistral-large-latest
  • Qwen: qwen3-32b

Accounting Integration

  • VercelAIGatewayModels registered in AccountingService

Closes #573

Add Vercel AI Gateway provider with pricing and SDK support:

- Add createEchoVercelAIGateway() provider using @ai-sdk/openai-compatible
- Add 20 model definitions across 7 providers (OpenAI, Anthropic,
  Google, DeepSeek, Groq, Mistral, Qwen) with accurate pricing
- Register VercelAIGatewayModels in AccountingService for cost tracking
- Add model update script for future maintenance
- Add @ai-sdk/openai-compatible dependency

Closes Merit-Systems#573
@vercel
Copy link
Contributor

vercel bot commented Mar 19, 2026

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

A member of the Team first needs to authorize it.

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

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

Additional Suggestion:

Missing export for VercelAIGatewayModels from the main SDK index.ts causes build failure when AccountingService imports it.

Fix on Vercel

The x-api-key header with a placeholder string was being sent to the
API. Replaced with x-echo-app-id which identifies the app without
interfering with auth. Authentication is handled by echoFetch which
sets the proper Authorization Bearer header.

Addresses review feedback on Merit-Systems#746.
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