惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
GbyAI
GbyAI
M
MIT News - Artificial intelligence
美团技术团队
罗磊的独立博客
雷峰网
雷峰网
量子位
博客园 - 【当耐特】
Last Week in AI
Last Week in AI
D
Docker
小众软件
小众软件
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
WordPress大学
WordPress大学
V
V2EX
博客园_首页
腾讯CDC
The Cloudflare Blog
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

Vercel News

Vercel Open Source Program: Winter 2026 cohort How Notion Workers run untrusted code at scale with Vercel Sandbox How we run Vercel's CDN in front of Discourse From idea to secure checkout in minutes with Stripe Building Slack agents can be easy Scaling redirects to infinity on Vercel Advancing Python typing Gamma builds design-first agents with Vercel How Avalara turns pipe dreams into patent-pending with v0 Keeping community human while scaling with agents How OpenEvidence built a healthcare AI that physicians actually trust Security boundaries in agentic architectures Skills Night: 69,000+ ways agents are getting smarter Video Generation with AI Gateway We Ralph Wiggumed WebStreams to make them 10x faster How Stably ships AI testing agents in hours, not weeks How we built AEO tracking for coding agents Anyone can build agents, but it takes a platform to run them Introducing Geist Pixel The Vercel AI Accelerator is back with $6m in credits Making agent-friendly pages with content negotiation The Vercel OSS Bug Bounty program is now available Introducing the new v0 Run untrusted code with Vercel Sandbox, now generally available How Stripe built a game-changing app in a single flight with v0 How Sensay went from zero to product in six weeks AGENTS.md outperforms skills in our agent evals Agent skills explained: An FAQ Testing if "bash is all you need" AWS databases are now live on the Vercel Marketplace and v0
Access Perplexity Web Search on Vercel AI Gateway with an...
Walter KormanSoftware EngineerJerilyn ZhengProduct, AI Gateway · 2026-01-14 · via Vercel News

You can now give any model the ability to search the web using Perplexity through Vercel's AI Gateway.

AI Gateway supports Perplexity Search as a universal web search tool that works with all models, regardless of provider. Unlike native search tools that are exclusive to specific providers, Perplexity Search can be added to all models.

To use Perplexity Search with the AI SDK, import gateway.tools.perplexitySearch() from @ai-sdk/gateway and pass it in the tools parameter as perplexity_search to any model.

import { generateText } from "ai"

import { gateway } from "@ai-sdk/gateway"

const result = await generateText({

model: "openai/gpt-5.2",

tools: {

perplexity_search: gateway.tools.perplexitySearch(),

},

prompt: "What changed in Next.js this week?",

})

console.log(result.text)

Some example use cases include:

Models without native search: Enable web search on models like zai/glm-4.7 or any from any other providers that don't expose a built-in search tool.

import { streamText } from "ai"

import { gateway } from "@ai-sdk/gateway"

const result = await streamText({

model: "zai/glm-4.7",

prompt:

"What are the latest AI safety guidelines " +

"published by major tech companies?",

tools: {

perplexity_search: gateway.tools.perplexitySearch({

maxResults: 5,

searchRecencyFilter: "month",

searchLanguageFilter: ["en"],

}),

},

})

Developer tooling and CI assistants: Get current package versions, recently merged PRs, release notes, or docs updates.

import { generateText } from "ai"

import { gateway } from "@ai-sdk/gateway"

const { text } = await generateText({

model: "minimax/minimax-m2.1",

prompt:

"What breaking changes were introduced in " +

"Next.js 16.1? Check the latest release notes " +

"and migration guide.",

tools: {

perplexity_search: gateway.tools.perplexitySearch({

maxResults: 5,

searchDomainFilter: [

"github.com",

"nextjs.org",

"vercel.com",

],

searchRecencyFilter: "month",

}),

},

})

Consistency with fallbacks: Maintain search behavior across multiple providers without rewriting search logic.

import { streamText } from "ai"

import { gateway } from "@ai-sdk/gateway"

const result = await streamText({

model: "meta/llama-3.3-70b",

prompt:

"What are the latest critical CVEs disclosed " +

"for Node.js in the past week?",

tools: {

perplexity_search: gateway.tools.perplexitySearch({

maxResults: 5,

searchDomainFilter: [

"nodejs.org",

"cve.mitre.org",

"github.com",

],

}),

},

providerOptions: {

order: ["cerebras", "togetherai"],

},

})

For more information, see the AI Gateway Perplexity Web Search docs.