跳到正文
Vercel Blog(vercel.com)· Rohan Taneja·· 1 天前精選AI 評分73

AI Gateway 現已支援虛擬模型

Virtual models now available on AI Gateway

AI 導讀

Vercel 在 AI Gateway 上推出虛擬模型,讓開發者能以自訂模型 ID 管理模型與設定,無須重新部署即可更新。

  • 虛擬模型:以 slug 方式儲存模型配置,支援所有 AI Gateway 模型型別。
推薦理由

Vercel 透過 AI Gateway 讓開發者能集中管理模型設定,提升部署效率與成本可追蹤。

正文 · 原文

Virtual models are now available on AI Gateway.

A virtual model is a saved configuration that tells AI Gateway which model and settings to use. Your apps and agents call it with a custom model ID, such as vmc/coding-agent. You can change the model or settings centrally in AI Gateway without redeploying your apps or reconfiguring your agents.

Use virtual models to:

  • Configure coding agents: Set reasoning effort, fast mode, prompt caching, and other options even when your agent doesn’t expose them.

  • Control routing and compliance: Choose providers, configure fallback models, and enforce requirements such as Zero Data Retention.

  • Attribute spend: Attach custom reporting tags to every request that uses the virtual model.

To create a virtual model, open the Virtual Models page and click Create Virtual Model. Enter a slug, choose the underlying model, configure the settings you want requests to use, and save.

Or create one with the Vercel CLI:

To use a virtual model, replace the provider model ID in your AI SDK or compatible API requests with vmc/<slug>, such as vmc/coding-agent.

For coding agents, connect to AI Gateway with vercel ai-gateway setup if needed, then select your virtual model in the agent’s model picker or configuration.

Virtual models work with every model type on AI Gateway. Read the launch post for examples or learn more in the virtual models documentation.

Read more

來源: Vercel Blog (vercel.com)
開啟原文