NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2684 most downloaded on npm
AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.
Latest stable
7.0.169
Last release 7 days ago
10 Nov 2026
Ships on a steady schedule
a new release about every 8 days
Some releases are documented
notes for 27 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
1654 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
4529831: ai/react: Do not store initialMessages in useState
2c8d4bd: Support openai@4.16.0 and later
424d5ee: experimental_StreamData: fix trailing newline parsing bug in decoder
Your coding agent can read these notes before it upgrades. Set up the MCP server →
699552d: add experimental_StreamingReactResponse
0bd27f6: react/use-chat: allow client-side handling of function call without following response
5ed581d: Use interface instead of type for Message to allow declaration merging
function_call and name fields in subsequent requestse569688: Fix for #637, resync interfaces
c5d1857: fix: return complete response in onFinish when onCompletion isn't passed
6229d6b: openai: fix OpenAIStream types with openai@4.11+
a4a997f: all providers: reset error message on (re)submission
cb181b4: ai/vue: wrap body with unref to support reactivity
2470658: ai/react: fix: handle partial chunks in react getStreamedResponse when using experimental_StreamData
8a2cbaf: vue/use-completion: fix: don't send network request for loading state"
writer from LangChainStream3fc2b32: ai/vue: fix: make body parameter reactive
26bf998: ai/react: make reload/complete/append functions stable via useCallback
2f97630: react/use-chat: fix aborting clientside function calls too early
e5bf68d: react/use-chat: fix experimental functions returning proper function messages
e5bf68d: react/use-chat: fix experimental functions returning proper function messages
Closes #478
7b389a7: fix: improve safety for type check in openai-stream
867a3f9: Fix client-side function calling (#467, #469)
867a3f9: Fix client-side function calling (#467, #469)
add Completion type from the openai SDK to openai-stream (#472)
84e0cc8: Add experimental_StreamData and new opt-in wire protocol to enable streaming additional data. See https://github.com/vercel/ai/pull/425.
84e0cc8: Add experimental_StreamData and new opt-in wire protocol to enable streaming additional data. See https://github.com/vercel/ai/pull/425.
Changes onCompletion back to run every completion, including recursive function calls. Adds an onFinish callback that runs once everything has streamed.
If you're using experimental function handlers on the server and caching via onCompletion,
you may want to adjust your caching code to account for recursive calls so the same key isn't used.
let depth = 0
const stream = OpenAIStream(response, {
async onCompletion(completion) {
depth++
await kv.set(key + '_' + depth, completion)
await kv.expire(key + '_' + depth, 60 * 60)
}
})
04084a8: openai-stream: fix experimental_onFunctionCall types for OpenAI SDK v4
dca1ed9: Update packages and examples to use OpenAI SDK v4
c2917d3: Add support for the Anthropic SDK, newer Anthropic API versions, and improve Anthropic error handling
4ef8015: Prevent isLoading in vue integration from triggering extraneous network requests
isLoading in vue integration from triggering extraneous network requests5f91427: ai/svelte: fix isLoading return value
### Patch Changes - ab2b973: fix pnpm-lock.yaml
4df2a49: Fix termination of ReplicateStream by removing the terminating {}from output
{}from output3929a41: Add ReplicateStream helper
9012e17: react/svelte/vue: fix making unnecessary SWR request to API endpoint
3d29799: React/Svelte/Vue: keep isLoading in sync between hooks with the same ID.
3d29799: React/Svelte/Vue: keep isLoading in sync between hooks with the same ID.
React: don't throw error when submitting
f50d9ef: Add experimental_buildLlama2Prompt helper for Hugging Face
877c16f: ai/react: don't throw error if onError is passed
f3f5866: Adds SolidJS support and SolidStart example
0ebc2f0: streams/openai-stream: don't call onStart/onCompletion when recursing
9320e95: Add (experimental) prompt construction helpers for StarChat and OpenAssistant
561a49a: Providing a function to function_call request parameter of the OpenAI Chat Completions API no longer breaks OpenAI function stream parsing.
function_call request parameter of the OpenAI Chat Completions API no longer breaks OpenAI function stream parsing.e361114: OpenAI functions: allow returning string in callback
e4281ca: Add experimental server-side OpenAI function handling
6648b21: Add experimental client side OpenAI function calling to Svelte bindings
3ed65bf: Remove dependency on node crypto API
8bfb43d: Fix svelte peer dependency version
4a2b978: Update cohere stream and add docs
3164adb: Fix regression with generated ids
fd82961: Use rfc4122 IDs when generating chat/completion IDs
### Patch Changes - b7b93e5: Add RSC to ai/react
8bf637a: Fix langchain handlers so that they now are correctly invoked and update examples and docs to show correct usage (passing the handlers to llm
llm.call and not the model itself).a7b3d0e: Experimental support for OpenAI function calling
9cdf968: core/react: add Tokens react server component
44d9879: Support extra request options in chat and completion hooks
bde3898: Allow an async onResponse callback in useChat/useCompletion
23f0899: Set stream: true when decoding streamed chunks
a9591fe: Add createdAt on user input message in useChat (it was already present in assistant messages)
createdAt on user input message in useChat (it was already present in assistant messages)### Patch Changes - f37d4ec: fix bundling
71f9c51: This adds Vue support for ai via the ai/vue subpath export. Vue composables useChat and useCompletion are provided.
ai via the ai/vue subpath export. Vue composables useChat and useCompletion are provided.Updated dependencies [ 9a521b9 ]
LangChainStream helper callback handler to return use handleChainEnd instead of handleLLMEnd so as to work with sequential chains5604dde : feat(zai): add the Z.AI provider with GLM chat completions, streaming, reasoning, tools, and multimodal inputs
Nothing published for this version
Nothing published for this version
b869104: Added LangChainStream, useCompletion, and useChat
LangChainStream, useCompletion, and useChat### Patch Changes - 677d222: add useCompletion
One column per quarter.