Vercel AI SDK Development Skill
[PLACEHOLDER: Full SKILL.md content should be pasted here from the chat]
This skill provides comprehensive guidance for building AI applications with the Vercel AI SDK.
Core Concepts
- •Provider Layer (OpenAI, Anthropic, Google, etc.)
- •Core Layer (streamText, generateText, generateObject)
- •Framework Layer (React hooks, Next.js integration)
Installation
bash
pnpm add ai @ai-sdk/openai
Basic Usage
typescript
import { streamText } from 'ai'
import { openai } from '@ai-sdk/openai'
const result = await streamText({
model: openai('gpt-4o'),
messages: [{ role: 'user', content: 'Hello' }],
})
for await (const chunk of result.textStream) {
process.stdout.write(chunk)
}
See full documentation in this file and in references/ directory.