Skip to content

Dato Agent: add Vercel AI Gateway as a provider - #169

Open
rodrigobarona wants to merge 1 commit into
datocms:masterfrom
rodrigobarona:feat/dato-agent-vercel-ai-gateway
Open

rodrigobarona wants to merge 1 commit into
datocms:masterfrom
rodrigobarona:feat/dato-agent-vercel-ai-gateway

Conversation

@rodrigobarona

Copy link
Copy Markdown
Contributor

Summary

Fixes #168.

  • Adds an optional Vercel AI Gateway provider to Dato Agent, alongside OpenAI and Anthropic.
  • Reuses the client-side MCP Messages runtime against https://ai-gateway.vercel.sh, with a short recommended model list and the rest of the tool-capable catalog behind a toggle.
  • Strips browser SDK headers the gateway CORS policy rejects, inlines attachments (the gateway has no Anthropic Files API), and keeps gateway API keys out of runtime error text.

Non-Claude models run through the gateway's Messages translation. Zero data retention depends on the model's zdr flag. The recommended IDs were checked against the public catalog; they have not been smoke-tested with a live gateway key.

Test plan

  • npm run typecheck in dato-agent
  • npm test for config, provider models, gateway fetch, change summaries, ConfigScreen, and both agent runtimes
  • In plugin settings, choose Vercel AI Gateway, paste a vck_ key, and confirm the recommended models load
  • Run a read-only turn on Claude Sonnet 5.5 and one non-Claude recommended model
  • Approve one write and confirm the existing approval journal still applies
  • Confirm an existing OpenAI or Anthropic configuration is unchanged

Made with Cursor

Let a project use models on its Vercel plan, with a short recommended list and the rest of the tool-capable catalog available on request.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Dato Agent: add Vercel AI Gateway as a provider

1 participant