Lars Grammel
@lgrammel
No renders while typing with @aisdk 5 Another optimization to improve user experience (faster typing) AI SDK 5 moved the input outside of useChat. You get to decide if it's a state of a ref. 1. Connect your text area with a ref 2. On sendMessage, read the text from that ref
when you create a library, you create a mapping from the users mental model to the technical implementation. for good dx it is crucial to understand in which terms and concepts users think and to then structure the library accordingly. this in itself is valuable.
AI Gateway might be the most underrated feature in @aisdk 5 - 70+ models with a single API key - Automatic fallbacks - Almost 0 effort to add new models Integrating it with Sparka has been great. It's the perfect fit for a multi-provider chat app. I'm finally able to use the…
Updated our human-in-the-loop recipe and example to v5! v5.ai-sdk.dev/cookbook/next/…
You can now easily use both Chrome and Edge built-in AI models (Gemini Nano & Phi4-mini) as well as popular open-source models from WebLLM with the @vercel ai sdk! #vercel #ai #sdk @buildinpublic
🚀 Tool calling is now available for Apple’s on-device LLM in React Native! Define custom functions, run them directly on-device, and power fully local AI workflows. First-class Vercel AI SDK support.
Early rough cut of something very, very special I am hovering over AI SDK v5 like Batman perching on a girder
ai sdk helps you get started quickly and provides convenience for common use cases, but also allows you to move to patterns that allow for more customization when needed:
Want to build agents with the @aisdk but prefer full control over tool execution? Check out our latest recipe v5.ai-sdk.dev/cookbook/node/…
Learn how to use message metadata with useChat to track timestamps, token usage, and more.
Updated our @aisdk persistence template It's now built with all the v5 goodies (data parts, custom UIMessages etc.) and has moved to a new prefix-based persistence pattern
Lots of docs updates this week for v5 If you've already migrated, or are trying to do so now, what's missing in the migration guide? what could be better?
useChat stop + UI message persistence should be easier now
Save partial results and handle cleanup properly when a UIMessageStream is aborted.
Added a bonus video to my course today migrating the entire project to @aisdk v5 Definitely not painless, but worth it - custom data parts are a game changer.
@lgrammel I created a library for guardrails to use with AI SDK, would appreciate any pointers for improvements github.com/jagreehal/ai-s…
and of course this one integrates with @aisdk 😍
🎉 Apple’s on-device LLM is now in React Native Preview support for Foundation Models just dropped: - Text generation - Streaming - Structured output - Vercel AI SDK support Try it: `npm install @react-native-ai/apple` (requires iOS 26 beta 3)
Build a coding agent like Claude Code in 40 minutes with @aisdk, AI Gateway, Sandbox, and Vercel Functions. See how in @nicoalbanese10's Vercel Ship workshop.
Automatically migrate to AI SDK 5 with our initial set of codemods.