Vibeleaderboard
← All Intel
Intel / repo

ai ai@7.0.168

Source
github.com
Author
github-actions[bot]
Date

Context

Version 7.0.168 of `ai`, the core package of Vercel's AI SDK, adds an answer to a common chat-interface question: what happens when a user sends another message while the assistant is still answering. `useChat` is the SDK's for building chat interfaces; it keeps the message list and streams responses into it. Per the release notes, its new `experimental_queue` option queues messages sent while a response is in progress. The `experimental_` prefix marks an API that may still change, and the next release, ai@7.0.169, already fixed how the queue behaves around tool approvals.

The other change fixes `toUIMessageStream`, which converts a model's output into the message stream a chat interface reads. Its `onError` callback is now called once for each invalid tool call. The fix's wording indicates that it could previously fire more than once for the same call, so applications that log or count errors in that callback may see fewer duplicate reports after upgrading. The remaining entries update `@ai-sdk/gateway` to 4.0.141 and `@ai-sdk/provider-utils` to 5.0.78.

Terms in this piece · Glossary
  • agent hook — A script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.
More from github-actions[bot]
Recommended reads
Comments

Checking sign-in…

Loading comments…