@@ -396,49 +396,35 @@ export function GET(request) {
### Streaming
Streaming is commonly used in combination with Large Language Models (LLMs), such as OpenAI, for AI-generated content. Learn more about the [AI SDK](https://sdk.vercel.ai/docs).
Streaming is commonly used in combination with Large Language Models (LLMs), such as OpenAI, for AI-generated content. Learn more about the [AI SDK](https://sdk.vercel.ai/docs/introduction).
```ts filename="app/api/chat/route.ts" switcher
import OpenAI from 'openai'
import { OpenAIStream, StreamingTextResponse } from 'ai'
import { openai } from '@ai-sdk/openai'
import { StreamingTextResponse, streamText } from 'ai'