Vercel News

AI Gateway adds Browserbase Search and Fetch tools

6.4内容质量

TL;DR · AI 摘要

AI Gateway adds Browserbase Search and Fetch tools - Vercel Browserbase Search and Fetch are now available through AI Ga...

核心要点

  • 主题聚焦:AI Gateway adds Browserbase Search and Fetch too
  • 来源:Vercel News,建议结合原文判断细节。
  • AI 分析暂不可用,本条为保底评分与摘要。
#AI#后端
打开原文

AI Gateway adds Browserbase Search and Fetch tools - Vercel

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 .

code
1
import
{
gateway
,
streamText
}
from
'ai'
;
2
3
const
result
=
streamText
(
{
4
model
:
'moonshotai/kimi-k3'
,
5
prompt
:
'Find Browserbase\'s latest announcement, fetch the page, and summarize it.'
,
6
tools
:
{
7
browserbase_search
:
gateway
.
tools
.
browserbaseSearch
(
{
numResults
:
3
}
)
,
8
browserbase_fetch
:
gateway
.
tools
.
browserbaseFetch
(
{
9
allowRedirects
:
true
,
10
}
)
,
11
}
,
12
}
)
;

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 .