Skip to content

feat: add Vercel AI Gateway support - #923

Merged
Astro-Han merged 5 commits into
mainfrom
feat/vercel-ai-gateway-support
Jul 13, 2026
Merged

Astro-Han merged 5 commits into
mainfrom
feat/vercel-ai-gateway-support

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • Adds Vercel AI Gateway as one complete registry-driven provider slice under the stable persisted ID vercel.
  • Uses the public language-model discovery endpoint without credentials, preserves exact creator/model IDs, and exercises reasoning plus deterministic two-stage tool-result replay through the shared OpenAI-compatible adapter.
  • Wires the official AI Gateway credential namespace across Desktop, CLI, storage, and headless, and vendors the byte-identical Vercel mark through the shared provider asset and notice paths.

Why

Issue #860 requires each hosted provider to ship as an independently usable vertical slice rather than another hand-maintained parallel path. Vercel AI Gateway needs a stable identity, honest discovery/authentication boundaries, exact model IDs, end-to-end host persistence, and governed brand provenance.

Refs #860.

Scope

This PR adds only Vercel AI Gateway. It does not add a vercel-ai-gateway alias or migration path, Vercel AI SDK integration, OpenRouter, provider-specific upstream accounts, another provider, or Phase 7 work.

Verification

  • npm run test — passed across scripts, Core, Storage, Runtime, Computer Use, Headless, CLI, UI, and Desktop.
  • npm run typecheck — passed for every workspace.
  • npm --workspace @maka/desktop run build:renderer — passed; the packaged third-party notice checker confirmed the byte-identical notice.
  • npm run check:stale and git diff --check — passed.
  • Explicit registry audit confirmed unique orders: StepFun China Plan 28, DeepInfra 29, Cohere 30, Vercel 31; Cohere native discovery remains intact beside Vercel public discovery.
  • Deterministic Runtime coverage proves public model discovery omits Authorization, inference uses Bearer authentication, exact xai/grok-4.3 survives both turns, reasoning_effort and reasoning_content are preserved, and the tool result is replayed before the final response.
  • The vendored vercel.svg byte-compares with Lobe Icons commit 32f4083f7a20b67ecdc7b29c0af031ada5a29c52; both SHA-256 values are 4874d52d8b2ce7c309cbd10c424fee123b2c9483e76d76ad0dca41794483eb24.
  • A sanitized unauthenticated live discovery smoke returned 200 with the complete public language-model list; real inference was skipped because no safe user credential was available.
  • Local Desktop E2E is deferred to CI. This change reuses the existing catalog/detail layout rather than introducing a new visual layout; deterministic Desktop contracts and the CI Playwright journey cover the shared logo mask, exact identity, endpoint, model, and credential field instead of a new screenshot.

Impact

Users can configure and run Vercel AI Gateway through Desktop, CLI, storage-backed sessions, and headless environments using AI_GATEWAY_API_KEY and exact gateway model IDs. Existing persisted provider identities and connections require no migration. Release notes should mention the new provider.

Reviewer notes

The provider-specific behavior is limited to existing registry adapter/override seams. The monochrome upstream SVG remains unmodified and renders through ProviderAssetMask; provenance, immutable path, license, and full hash are recorded in the shared third-party notice inventory.

Ready for review

  • Verification is complete and the results above are current
  • Impact, compatibility, migration, documentation, and release-note needs are addressed
  • User-visible UI/UX changes include visual evidence, or Verification explains why it is not applicable

@Astro-Han
Astro-Han force-pushed the feat/vercel-ai-gateway-support branch from b6a6508 to 0ed8ad3 Compare July 13, 2026 20:22
@Astro-Han
Astro-Han merged commit e1b608e into main Jul 13, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/vercel-ai-gateway-support branch July 13, 2026 20:34
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.

1 participant