Learn how to build a web search agent in our latest recipe.
Learn how to build a web search agent in our latest recipe.
Hey! I'm sorry to hear about that - would love to hear a bit more about what went wrong and how we can improve it.
The granular useChat status messages make it easy to show a loading spinner (when status=submitted):
useChat now provides more granular status information for each request:
Sorry that should say SvelteKit! Thanks for the flag - will fix.
// AI SDK Cerebras Provider import { generateText } from 'ai'; import { cerebras } from '@ai-sdk/cerebras'; const { text } = await generateText({ model: cerebras('llama-3.3-70b'), prompt: 'Write a vegetarian lasagna recipe for 4 people.', });
AI SDK Provider: @CerebrasSystems
Use Cerebras with the AI SDK:
My first AI course is complete... And it's free!
It's a 16-lesson tutorial on Vercel's AI SDK. It's the missing piece for working with AI in TypeScript.
No bullshit, no hype. Just solid, practical advice.
https://www.aihero.dev/vercel-ai-sdk-tutorial
AI SDK 4.1
โข Image generation
โข Non-blocking data streaming
โข Simplified persistence with useChat
โข Stream transformation and smoothing
โข Improvements to tool calling and structured outputs
AI SDK 4.0.37
We've added chat ID forwarding and a helper function to simplify implementing persistence with useChat and streamText.
To learn more, check out our latest guide and minimal example.
New AI SDK Provider: @replicate.com
Replicate hosts a large number of image models - you can use all of them in the AI SDK now!
Check out how to generate images with Flux:
AI SDK 4.0.14
๐งช generateImage (experimental)
You can now generate images with the AI SDK. We currently support OpenAI - stay tuned for additional image providers.
this was a lot of fun to pull together!
Structured outputs with Ollama & AI SDK:
The AI SDK Vertex provider got a huge update ๐
Thanks @shaper42.bsky.social !
npm i ai
Now on mobile, with Expo.
this is awesome
Introducing the Cookbook ๐
An open-source collection of recipes and guides for building with the AI SDK.
sdk.vercel.ai/cookbook
Shipping soon: Advent of Prompt
PDF to multiple-choice quiz in seconds
Wish I had this in school!
Built with the @sdk.vercel.ai and fully open-source
๐งฉAI SDK provider: TogetherAI
Using TogetherAI models has become even easier with the new provider for the AI SDK:
Quickstart guide for @expo.dev and @sdk.vercel.ai coming soon!