ai
ai copied to clipboard
Add throttling to onUpdate
This fixes https://github.com/vercel/ai/issues/1610 for the useChat() hook by introducing a 50ms throttle to the onUpdate callback.