What problem does it solve?
Provides authoritative, up-to-date guidance for implementing and migrating AI features using the Vercel AI SDK so developers avoid deprecated APIs, incorrect patterns, and insecure provider usage.
Core Features & Use Cases
- Migration guidance: Convert v5 patterns (generateObject, toDataStreamResponse, parameters) to v6 equivalents (generateText + Output.object, toUIMessageStreamResponse, inputSchema).
- Integration patterns: Authoritative examples for building chat interfaces, streaming responses, structured output, tool calling, ToolLoopAgent agents, embeddings, reranking, and image generation with the Vercel AI Gateway.
- Diagnostics & safety: Validation rules, upgrade recommendations, and guidance to route provider calls through the AI Gateway for auth, failover, and observability.
- Use Case: Migrate a legacy chat API that imports openai directly to a production-ready v6 implementation using DefaultChatTransport, Output schemas, and the gateway provider.
Quick Start
Use the ai-sdk skill to migrate your project's useChat implementation to the v6 transport pattern and route models through the Vercel AI Gateway.