Add Vercel AI Gateway as a first-class provider - #447
Open
mundabra wants to merge 1 commit into
Open
Conversation
mundabra
force-pushed
the
add-vercel-ai-gateway-provider
branch
from
August 5, 2026 05:15
c7d1685 to
977b5f6
Compare
One key, 300+ models across every major creator, through the gateway's OpenAI-compatible endpoint (https://ai-gateway.vercel.sh/v1). Filed as a reseller alongside Together/Fireworks/OpenRouter: a compat descriptor with the vercel: routing prefix, six curated matrix entries (agent-capable, cost-efficient tiers — ids, context windows and vision from the live /v1/models catalog, 2026-08-05), provider-gallery logo + key link, a README mention, and coverage in the reseller lockstep, routing, and capability tests. Vision entries use a new shared _AGENTIC_VISION_COMPAT (no pdf=): the gateway's catalog advertises pdf input, but its compat file-part shape is unverified here, so PDFs stay on the pdf_support fallback like every other compat route. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
mundabra
force-pushed
the
add-vercel-ai-gateway-provider
branch
from
August 5, 2026 05:37
977b5f6 to
69cba76
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds the Vercel AI Gateway as a first-class provider: one key, 300+ models across every major creator, through the gateway's OpenAI-compatible endpoint. Filed as a reseller — same category as Together / Fireworks / OpenRouter (many labs' models behind one key, their model namespaces verbatim).
_compat()descriptor at the end of the reseller block:vercel:routing prefix, prefilledhttps://ai-gateway.vercel.sh/v1,AI_GATEWAY_API_KEY(Vercel's documented env var), recommendedanthropic/claude-haiku-4.5/v1/modelsvalues (315 models, checked 2026-08-05). Introduces_AGENTIC_VISION_COMPAT(vision withoutpdf=) and folds the two existing inline copies of that literal (Muse Spark, Kimi K3 via Together) into itvercel:zai/glm-5.2), and matrix capability answers forcreator/model-shaped idsDesign notes
pdf=on purpose: the gateway's catalog advertises pdf input, but its compat file-part schema (file.data+media_type) differs from the OpenAI shape this client emits (file_datadata-URL), and it is unverified here — so PDFs keep the graceful localpdf_supportfallback, the same posture as every existing vision-capable compat entry.vercel:creator/model) route correctly and fall back to conservative capabilities, like every provider's custom ids.OpenAIProviderevery compat vendor already uses.Verification
GET /v1/modelscatalog pulled 2026-08-05; every curated id, context window, and vision flag checked against ittsc --noEmitclean_provider_name/_baresplit once on:; the GUIprefixed(), unconfigured-provider preview, andset_providerauto-add all attach the prefix)./v1/providersboot-checked in-process: vercel serializes with its own key slot and prefilled endpoint, ordered with the resellersbuild()path: non-stream and streaming completions plus a tool call onanthropic/claude-haiku-4.5(finishtool_calls), and a second creator (zai/glm-5.2) — all returned correct results with usage counts. Key-verify can't false-positive —/v1/modelsis public but any wrong bearer returns 401🤖 Generated with Claude Code