ai
Vercel AI SDK Core by Vercel
AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.
npm install ai@7.0.152Vercel AI SDK Core (ai) is currently at v7.0.152 on NPM (published 2026-10-23), with a 90-day stability score of 70/100 (C+) and HIGH schema drift risk across 244 releases in the past 90 days. AI SDK v7 unifies LanguageModelV3 provider specifications, replaces maxSteps with stopWhen(stepCountIs(n)), and restructures UIMessage stream parts. Production teams should pin npm install ai@7.0.152 rather than using unpinned @latest tags.
Breaking Changes & Tool Schema Drift Analysis
AI SDK v7 unifies LanguageModelV3 provider specifications, replaces maxSteps with stopWhen(stepCountIs(n)), and restructures UIMessage stream parts.
generateTextstreamTexttoolstopWhenUIMessageconst result = await generateText({
model: openai("gpt-4o"),
maxSteps: 5,
tools: { weather: tool({ parameters: z.object({ city: z.string() }), execute }) }
});const result = await generateText({
model: openai("gpt-5"),
stopWhen: stepCountIs(5),
tools: { weather: tool({ inputSchema: z.object({ city: z.string() }), execute }) }
});Frequently Asked Questions: ai
What is the latest version of ai on NPM?
As of 2026-10-24, the latest stable version of ai (Vercel AI SDK Core by Vercel) on NPM is v7.0.152, published on 2026-10-23. It has shipped 244 releases in the last 90 days.
Does ai v7.0.152 have breaking changes or MCP schema drift risk?
ai currently carries a HIGH schema drift risk rating with a Stability Score of 70/100 (Grade C+). AI SDK v7 unifies LanguageModelV3 provider specifications, replaces maxSteps with stopWhen(stepCountIs(n)), and restructures UIMessage stream parts.
How do I safely pin ai in production?
Avoid unpinned @latest tags in production agent configs. Pin the exact verified version using `npm install ai@7.0.152` and monitor generateText, streamText, tool, stopWhen, UIMessage for parameter or schema changes.
Get Instant Breaking-Change Alerts for ai
We poll NPM and vercel/ai every 30 minutes. Get an email with the exact diff when ai ships a breaking release beyond v7.0.152.
Recent NPM Releases
Verified release timestamps from live registry metadata.
Related in Agent SDKs
View Hub ->OpenAI Node SDK • Stability B (78)
Anthropic TypeScript SDK • Stability C+ (70)
Model Context Protocol TypeScript SDK • Stability B (78)
Vercel AI SDK OpenAI Provider • Stability B (78)
Vercel AI SDK Anthropic Provider • Stability B (78)
LangChain Core JS • Stability B+ (82)