跳到正文
Vercel Blog(vercel.com)· Josh Lipman·· 2026-10-01品質評分67

AI Gateway 新增 Browserbase 搜尋與抓取工具

AI Gateway adds Browserbase Search and Fetch tools

重點導讀

AI Gateway 現已支援 Browserbase 的搜尋與抓取工具,開發者可通過單一 API key 在任何支援工具呼叫的模型上新增網頁搜尋和內容檢索功能。

  • 工具已在 AI SDK 7.0.116 及以後版本提供,示例程式碼展示如何在 moonshotai/kimi-k3 模型中呼叫。
  • 相關定價與配置請參閱 Browserbase 文件,亦可在 AI Gateway 模型演練區體驗。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文 · 原文

Browserbase Search and Fetch are now available through AI Gateway. Give your models access to current information, find relevant pages, and retrieve their contents, alongside Browserbase's existing AI SDK and Vercel Marketplace integrations.

AI Gateway lets you use Browserbase's tools across model providers with one API key. Add web search and page retrieval to any model that supports tool calling, and keep the same tools when you switch models.

These helpers are available in AI SDK 7.0.116 and later. Update with pnpm add ai@latest and set your AI_GATEWAY_API_KEY. To add search and fetch, pass the helpers in tools .

import { gateway, streamText } from 'ai';

const result = streamText({

model: 'moonshotai/kimi-k3',

prompt: 'Find Browserbase\'s latest announcement, fetch the page, and summarize it.',

tools: {

browserbase_search: gateway.tools.browserbaseSearch({ numResults: 3 }),

browserbase_fetch: gateway.tools.browserbaseFetch({

allowRedirects: true,

}),

},

});

For pricing and configuration options, see the Browserbase Search and Fetch documentation.

Try the Browserbase tools in the AI Gateway model playground, or explore the model catalog.

AI Gateway provides one API for calling models, tracking usage and cost, and configuring routing, retries, and failover. You can use an AI Gateway API key or bring your own provider key.

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

讀者討論

理性交流 · 即時討論