AIFeed

Vercel MCP 现已可运行 AI Gateway 模型

AI summary

现在可以通过 Vercel MCP 直接从你的 agent 运行 AI Gateway 模型。Vercel MCP 新增了四个工具:generate_ai_gateway_text 可将对话发送给任意 AI Gateway 文本模型并返回回复;generate_ai_gateway_image 可根据文本提示生成最多 4 张图片,支持尺寸、质量和输出格式选项;generate_ai_gateway_decision 可向决策模型提出关于单个输入的类型化问题,并返回选项、分数和布尔概率,用于分类、路由、验证和评分;generate_ai_gateway_extraction 使用提取模型从文本、PDF 和图片中提取类型化字段值。你的 agent 可以在一个会话中串联这些工具,例如先生成图片,再用决策调用对其评分。这些工具使用你现有的 Vercel MCP 登录进行身份验证,因此无需单独的 API 密钥,用量从你团队的 AI Gateway 额度中扣除。

Translation(model translation, not the source's own text)
题图
题图

现在,你可以使用 Vercel MCP 直接从你的 agent 中运行 AI Gateway 模型。

Vercel MCP 新增了四个工具:

  • generate_ai_gateway_text 将一段对话发送给任意 AI Gateway 文本模型,并返回其回复。
  • generate_ai_gateway_image 根据文本提示最多创建 4 张图像,支持尺寸、质量和输出格式选项。
  • generate_ai_gateway_decision 针对一个输入向决策模型提出带类型的提问,并返回选择、分数和布尔概率,用于分类、路由、验证和评分。
  • generate_ai_gateway_extraction 使用提取模型从文本、PDF 和图像中提取带类型的字段值。

你的 agent 可以在一个会话中串联使用这些工具,例如先生成图像,再用一次决策调用为它们评分。试试这样的提示词:

使用 AI Gateway 生成四张产品缩略图,内容为纯白背景上的一只哑光黑色陶瓷咖啡杯。然后用决策模型为每张图像与该描述的匹配程度评分,并保留得分最高的那张。

这些工具使用你现有的 Vercel MCP 登录进行身份验证,因此你不需要单独的 API key。用量从你团队的 AI Gateway 额度中扣除。

要开始使用,请在所有项目中向你的 AI 客户端(例如 Claude Code)添加 Vercel MCP:


        npx -y add-mcp https://mcp.vercel.com -g
      

阅读 Vercel MCP AI Gateway tools 参考文档以了解更多。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗