chore(deps): update dependency ai to v5 #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.3.19
->^5.0.8
Release Notes
vercel/ai (ai)
v5.0.8
Compare Source
Patch Changes
35f93ce
]v5.0.7
Compare Source
Patch Changes
8e72304
: fix (ai): handle invalid tool callsv5.0.6
Compare Source
Patch Changes
d983eee
: feat(ai): allow passing model string for embeddingsv5.0.5
Compare Source
Patch Changes
893aed6
]v5.0.4
Compare Source
Patch Changes
444df49
]v5.0.3
Compare Source
Patch Changes
90d212f
: feat (ai): add experimental tool call context028fb9c
]90d212f
]6331826
]v5.0.2
Compare Source
Patch Changes
401d73e
: fix (ai): support dynamic tool calls in lastAssistantMessageIsCompleteWithToolCalls69fde99
: Set status to ready when reconnect stream is nullv5.0.1
Compare Source
Patch Changes
4d0c108
: fix(ai/ui): convert provider metadata for system messages to model messagesv5.0.0
Compare Source
Major Changes
e1cbf8a
: chore(@ai-sdk/rsc): extract to separate packagea847c3e
: chore: rename reasoning to reasoningText etc13fef90
: chore (ai): remove automatic conversion of UI messages to model messagesd964901
: - remove setting temperature to0
by defaultnull
option fromDefaultSettingsMiddleware
temperature
andstopSequences
inai
to enable middleware changes0a710d8
: feat (ui): typed tool parts in ui messages9ad0484
: feat (ai): automatic tool execution error handling63f9e9b
: chore (provider,ai): tools have input/output instead of args,resultab7ccef
: chore (ai): change source ui message parts to source-urld5f588f
: AI SDK 5ec78cdc
: chore (ai): remove "data" UIMessage role6a83f7d
: refactoring (ai): restructure message metadata transferdb345da
: chore (ai): remove exports of internal ui functions496bbc1
: chore (ui): inline/remove ChatRequest type72d7d72
: chore (ai): stable activeTools40acf9b
: feat (ui): introduce ChatStore and ChatTransport98f25e5
: chore (ui): remove managed chat inputs2d03e19
: chore (ai): remove StreamCallbacks.onCompletionda70d79
: chore (ai): remove getUIText helperc60f895
: chore (ai): remove useChat keepLastMessageOnError0560977
: chore (ai): improve consistency of generate text result, stream text result, and step result9477ebb
: chore (ui): remove useAssistant hook (breaking change)1f55c21
: chore (ai): send reasoning to the client by defaulte7dc6c7
: chore (ai): remove onResponse callback8b86e99
: chore (ai): replaceMessage
withUIMessage
04d5063
: chore (ai): rename default provider global to AI_SDK_DEFAULT_PROVIDER319b989
: chore (ai): remove content from ui messages14c9410
: chore: refactor file towards source pattern (spec)a34eb39
: chore (ai): removedata
andallowEmptySubmit
fromChatRequestOptions
f04fb4a
: chore (ai): replace useChat attachments with file ui partsf7e8bf4
: chore (ai): flatten ui message stream parts257224b
: chore (ai): separate TextStreamChatTransportfd1924b
: chore (ai): remove redundantmimeType
property2524fc7
: chore (ai): remove ui message toolInvocations property6fba4c7
: chore (ai): remove deprecated experimental_providerMetadatab4b4bb2
: chore (ui): rename experimental_resume to resumeStream441d042
: chore (ui): data stream protocol v2 with SSEsef256ed
: chore (ai): refactor and use chatstore in svelte516be5b
: ### Move Image Model Settings into generate optionsImage Models no longer have settings. Instead,
maxImagesPerCall
can be passed directly togenerateImage()
. All other image settings can be passed toproviderOptions[provider]
.Before
After
Pull Request: #6180
a662dea
: chore (ai): remove sendExtraMessageFieldsd884051
: feat (ai): simplify default provider setupe8324c5
: feat (ai): add args callbacks to toolsfafc3f2
: chore (ai): change file to parts to use urls instead of data1ed0287
: chore (ai): stable sendStart/sendFinish optionsc7710a9
: chore (ai): rename DataStreamToSSETransformStream to JsonToSseTransformStreambfbfc4c
: feat (ai): streamText/generateText: totalUsage contains usage for all steps. usage is for a single step.9ae327d
: chore (ui): replace chat store concept with chat instances9315076
: chore (ai): rename continueUntil to stopWhen. Rename maxSteps stop condition to stepCountIs.247ee0c
: chore (ai): remove steps from tool invocation ui parts109c0ac
: chore (ai): rename id to chatId (in post request, resume request, and useChat)954aa73
: feat (ui): extended regenerate support33eb499
: feat (ai): inject message id in createUIMessageStream901df02
: feat (ui): use UI_MESSAGE generic4892798
: chore (ai): always stream tool callsc25cbce
: feat (ai): use console.error as default error handler for streamText and streamObjectb33ed7a
: chore (ai): rename DataStream_ to UIMessage_ed675de
: feat (ai): add ui data parts7bb58d4
: chore (ai): restructure prepareRequestea7a7c9
: feat (ui): UI message metadata0463011
: fix (ai): update source url stream partdcc549b
: remove StreamTextResult.mergeIntoDataStream methodrename DataStreamOptions.getErrorMessage to onError
add pipeTextStreamToResponse function
add createTextStreamResponse function
change createDataStreamResponse function to accept a DataStream and not a DataStreamWriter
change pipeDataStreamToResponse function to accept a DataStream and not a DataStreamWriter
change pipeDataStreamToResponse function to have a single parameter
35fc02c
: chore (ui): rename RequestOptions to CompletionRequestOptions64f6d64
: feat (ai): replace maxSteps with continueUntil (generateText)175b868
: chore (ai): rename reasoning UI parts 'reasoning' property to 'text'60e2c56
: feat (ai): restructure chat transports765f1cd
: chore (ai): remove deprecated useChat isLoading helpercb2b53a
: chore (ai): refactor header preparatione244a78
: chore (ai): remove StreamData and mergeStreamsd306260
: feat (ai): replace maxSteps with continueUntil (streamText)4bfe9ec
: chore (ai): remove ui message reasoning property1766ede
: chore: rename maxTokens to maxOutputTokens2877a74
: chore (ai): remove ui message data property1409e13
: chore (ai): remove experimental continueStepsb32e192
: chore (ai): rename reasoning to reasoningText, rename reasoningDetails to reasoning (streamText, generateText)92cb0a2
: chore (ai): rename CoreMessage to ModelMessage2b637d6
: chore (ai): rename UIMessageStreamPart to UIMessageChunkMinor Changes
b7eae2d
: feat (core): Add finishReason field to NoObjectGeneratedErrorbcea599
: feat (ai): add content to generateText result48d675a
: feat (ai): add content to streamText resultc9ad635
: feat (ai): add filename to file ui partsPatch Changes
a571d6e
: chore(provider-utils): move ToolResultContent to provider-utilsde2d2ab
: feat(ai): add provider and provider registry middleware functionalityc22ad54
: feat(smooth-stream): chunking callbacksd88455d
: feat (ai): expose http chat transport typee7fcc86
: feat (ai): introduce dynamic toolsda1e6f0
: feat (ui): add generics to ui message stream parts48378b9
: fix (ai): send null as tool output when tools return undefined5d1e3ba
: chore (ai): remove provider re-exports93d53a1
: chore (ai): remove clie90d45d
: chore (rsc): move HANGING_STREAM_WARNING_TIME constant into @ai-sdk/rsc packageb32c141
: feat (ai): add array support to stopWhenbc3109f
: chore (ai): push stream-callbacks into langchain/llamaindex adapters0d9583c
: fix (ai): use user-provided media type when available38ae5cc
: feat (ai): export InferUIMessageChunk type10b21eb
: feat(cli): add ai command line interface9e40cbe
: Allow destructuring output and errorText onToolUIPart
type6909543
: feat (ai): support system parameter in Agent constructor86cfc72
: feat (ai): add ignoreIncompleteToolCalls option to convertToModelMessages377bbcf
: fix (ui): tool input can be undefined during input-streamingd8aeaef
: feat(providers/fal): add transcribeae77a99
: chore (ai): rename text and reasoning chunks in streamText fullstream4fef487
: feat: support for zod v4 for schema validationAll these methods now accept both a zod v4 and zod v3 schemas for validation:
generateObject()
streamObject()
generateText()
experimental_useObject()
from@ai-sdk/react
streamUI()
from@ai-sdk/rsc
b1e3abd
: feat (ai): expose ui message stream headers4f3e637
: fix (ui): avoid caching globalThis.fetch in case it is patched by other libraries14cb3be
: chore(providers/llamaindex): extract to separate package1f6ce57
: feat (ai): infer tool call types in theonToolCall
callback16ccfb2
: feat (ai): add readUIMessageStream helper225f087
: fix (ai/mcp): prevent mutation of customEnvce1d1f3
: feat (ai): export mock image, speech, and transcription modelsfc0380b
: feat (ui): resolvable header, body, credentials in http chat transport6622441
: feat (ai): add static/dynamic toolCalls/toolResults helpers4048ce3
: fix (ai): add tests and examples for openai responses6c42e56
: feat (ai): validate ui stream data chunksbedb239
: chore (ai): make ui stream parts value optional when it's not required9b4d074
: feat(streamObject): add enum supportc8fce91
: feat (ai): add experimental Agent abstraction655cf3c
: feat (ui): add onFinish to createUIMessageStream3e10408
: fix(utils/detect-mimetype): add support for detecting id3 tagsd5ae088
: feat (ui): add sendAutomaticallyWhen to Chatced8eee
: feat(ai): re-export zodSchema from main packagec040e2f
: fix (ui): inject generated response message idd3960e3
: selectTelemetryAttributes more robustnessfaea29f
: fix (provider/openai): multi-step reasoning with text66af894
: fix (ai): respect content order in toResponseMessages332167b
: chore (ai): move maxSteps into UseChatOptions6b1c55c
: feat (ai): introduce GLOBAL_DEFAULT_PROVIDER5a975a4
: feat (ui): update Chat tool result submission507ac1d
: fix (ui/react): update messages immediately with the submitted user messagea166433
: feat: add transcription with experimental_transcribe26735b5
: chore(embedding-model): add v2 interfacec93a8bc
: chore(ai): export AsyncIterableStream type from async-iterable-stream module0d2c085
: feat (ai): support string model ids through gateway2b9bbcd
: feat (ai): improve prompt validation error messagea8c8bd5
: feat(embed-many): respect supportsParallelCalls & concurrency75c3396
: fix (ai): handle errors in 2nd streamText doStream callcb9c9e4
: remove deprecatedexperimental_wrapLanguageModel
9bf7291
: chore(providers/openai): enable structuredOutputs by default & switch to provider option9b0da33
: fix (ai): do not send id with start unless specified28ad69e
: fix(react-native): support experimental_attachments without FileList global0b78e17
: chore(ai/generateObject): simplify function signature20398f2
: feat: ai sdk cli documentation + adjusted default model66962ed
: fix(packages): export node10 compatible typesb71fe8d
: fix(ai): remove jsondiffpatch dependency7827a49
: fix (ai/core): refactortoResponseMessages
to filter out empty string/contentbd8a36c
: feat(embedding-model-v2/embedMany): add response body fieldd9209ca
: fix (image-model):specificationVersion: v1
->v2
b346545
: feat (ai): add data ui part schemas05d2819
: feat: allow zod 4.x as peer dependencyf2b041e
: Fix customfetch
in HttpChatTransport2a62513
: Fix error thrown when emptying messages in onError or onFinish143c55b
: feat (ai): export Chat callback types9301f86
: refactor (image-model): renameImageModelV1
toImageModelV2
904fa5e
: feat (ai/core): add terminateOnError option to readUIMessageStream0a87932
: core (ai): change transcription model mimeType to mediaType1675396
: fix: avoid job executor deadlock when adding tool result51f497d
: feat (ai): step input message modification in prepareStepcee64b2
: fix(otel): change back toolCall attributes of input/output back to args/result for compatibilityf04ffe4
: feat (ui): add onData callback to Chatbc24722
: feat (ai): Add finishReason as a promise on StreamObjectResult to match StreamTextResultb6f9f3c
: remove deprecatedCoreTool*
types8aa9e20
: feat: add speech with experimental_generateSpeech4617fab
: chore(embedding-models): remove remaining settings8255639
: ### Fix use with Google APIs + zod v4's.literal()
schemaBefore [email protected], requests to Google's APIs failed due to a missing
type
in the provided schema. The problem has been resolved for theai
SDK by bumping ourzod
peer dependencies to^3.25.49
.pull request: #6609
f81c720
: chore(ai): bundle dependencies in CLI binarycf9af6e
: feat (ai): allow sync prepareStepee38081
: Add support for audio/webm to detect-media-type2e4f9e4
: feat (ai): improved error messages when using gateway3e3b9df
: fix (ai/mcp): better support for zero-argument MCP toolscda32ba
: fix (ai): sendstart
part in correct position in stream (streamText)48a7606
: feat (ai): support changing the system prompt in prepareStepscb68df0
: feat: add transcription and speech model support to provider registrydb64cbe
: fix (provider/openai): multi-step reasoning with tool calls97c35c0
: feat (ui): transient data parts26695a3
: feat (ui): add state for text and reasoning ui message parts90ac328
: fix (ui): tool part metadata support in ui messages60132dd
: fixed date formatting for updated mcp protocol version4a1e0c8
: fix(ai-cli): fix bundling and improve authentication error handlingc6b64a7
: feat (ai): allow async prepareRequest on HttpChatTransportfccf75c
: update mcp protocol version9121250
: Expose provider metadata as an attribute on exported OTEL spansea27cc6
: chore (ai): use JSONValue definition from provider90ca2b9
: feat(ai): Record tool call errors on tool call spans recorded ingenerateText
andstreamText
.50f0362
: fix (ai): fix experimental sendStart/sendFinish options in streamText825e8d7
: release alpha.57d97ab6
: release alpha.40ff02bb
: chore(provider-utils): move over jsonSchema4f3776c
: feat (ai): add InferUITools helper9338f3e
: fix (ai): throw error for v1 models92c8e66
: fix(ai/core): properly handle custom separator in provider registry53569b8
: feat (ai): add experimental repairText function to streamObject82aa95d
: fix (ai): merge data ui stream parts correctlye7d2ce3
: feat: provider-executed toolsadd5ac1
: feat (ai): make streamText toUIMessageStream async iterable37a916d
: feat (ai): add prepareSteps to streamText30ac566
: fix (ui): text message metadata support in ui messages8026705
: fix (core): send buffered text in smooth stream when stream parts change9bd5ab5
: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)The
experimental_generateImage
method from theai
package now returnes revised prompts for OpenAI's image models.ec5933d
: chore (ai/mcp): addassertCapability
method to experimental MCP client09f41ac
: fix (ui): add message metadata in Chat.sendMessageff1c81a
: feat (ai): add streamText onAbort callbackaf1d5a5
: fix(ai): Unexpected reasoning-start event in extract reasoning middlewarecb3b9c9
: fix (ai): catch errors in ui message stream86293e5
: fix (ai): use correct generateMessageId in streamText toUIMessageStreamd1a034f
: feature: using Zod 4 for internal stufffd65bc6
: chore(embedding-model-v2): rename rawResponse to responsed92b9a8
: fix(ai): add support for MCP protocol version 2025-06-18102b066
: fix (ai): fix invalid fetch call142576e
: feat (ui): support message replacement in chat via messageId param on sendMessage84343eb
: fix (ui): call sendAutomaticallyWhen with updated messagesa76a62b
: feat (ai): add experimental prepareStep callback to generateText89ba235
: fix (ui): support tool names with dash8e31d46
: feat (ai): export SourceDocumentUIPartbd398e4
: fix (core): improve error handling in streamText's consumeStream method88a8ee5
: fix (ai): support abort during retry waits205077b
: fix: improve Zod compatibilityd91b50d
: chore(ui-utils): merge into ai packagee4c8647
: feat (ui): allow asynchronous onFinish in createUIMessageStreamc808e4d
: fix (ui): do not send changing assistant message ids when onFinish is providede862b5b
: feat (ai): allow sync tool.execute395c85e
: feat (ai): add consumeSseStream option to UI message stream responses5bdff05
: Removed deprecatedoptions.throwErrorForEmptyVectors
fromcosineSimilarity()
. SincethrowErrorForEmptyVectors
was the only option the entireoptions
argument was removed.13b4f46
: feat (ai): export experimental MCPClient and MCPClientConfig interfacesa4f3007
: chore: remove ai/react8e64e9c
: feat (ai): allow using provider default temperature by specifying nullb983b51
: feat (ai): support model message array in prompt56c232b
: fix (ai): remove outdated sendStart jsdoc7324c21
: fix (ai/telemetry): Avoid JSON.stringify on Uint8Arrays for telemetryf10304b
: feat(tool-calling): don't require the user to have to pass parametersdd5fd43
: feat (ai): support dynamic tools in Chat onToolCalla753b3a
: feat (provider/anthropic): cache control for tools383cbfa
: feat (ai): add isAborted to onFinish callback for ui message streams27deb4d
: feat (provider/gateway): Add providerMetadata to embeddings response5f2b3d4
: chore (ai): stable prepareStep4c8f834
: feat: automatically respect rate limit headers in retry logicAdded automatic support for respecting rate limit headers (
retry-after-ms
andretry-after
) in the SDK's retry logic. When these headers are present and contain reasonable values (0-60 seconds), the retry mechanism will use the server-specified delay instead of exponential backoff. This matches the behavior of Anthropic and OpenAI client SDKs and improves rate limit handling without requiring any API changes.f2c7f19
: feat (ui): add Chat.clearError()7bd025b
: fix (ai): fix sync tool execute with streamTextUpdated dependencies [
a571d6e
]Updated dependencies [
742b7be
]Updated dependencies [
9e16bfd
]Updated dependencies [
e7fcc86
]Updated dependencies [
0477a13
]Updated dependencies [
7cddb72
]Updated dependencies [
ccce59b
]Updated dependencies [
e2b9e4b
]Updated dependencies [
95857aa
]Updated dependencies [
45c1ea2
]Updated dependencies [
6f6bb89
]Updated dependencies [
26b6dd0
]Updated dependencies [
060370c
]Updated dependencies [
dc714f3
]Updated dependencies [
b5da06a
]Updated dependencies [
d1a1aa1
]Updated dependencies [
63f9e9b
]Updated dependencies [
5d142ab
]Updated dependencies [
d5f588f
]Updated dependencies [
30ab1de
]Updated dependencies [
e025824
]Updated dependencies [
0571b98
]Updated dependencies [
b6b43c7
]Updated dependencies [
4fef487
]Updated dependencies [
48d257a
]Updated dependencies [
0c0c0b3
]Updated dependencies [
0d2c085
]Updated dependencies [
40acf9b
]Updated dependencies [
9222aeb
]Updated dependencies [
e2aceaf
]Updated dependencies [
411e483
]Updated dependencies [
97fedf9
]Updated dependencies [
8ba77a7
]Updated dependencies [
c91586a
]Updated dependencies [
7b3ae3f
]Updated dependencies [
a166433
]Updated dependencies [
3cbcbb7
]Updated dependencies [
26735b5
]Updated dependencies [
443d8ec
]Updated dependencies [
a8c8bd5
]Updated dependencies [
abf9a79
]Updated dependencies [
14c9410
]Updated dependencies [
e86be6f
]Updated dependencies [
9bf7291
]Updated dependencies [
2e13791
]Updated dependencies [
9f95b35
]Updated dependencies [
66962ed
]Updated dependencies [
fedb55e
]Updated dependencies [
0d06df6
]Updated dependencies [
472524a
]Updated dependencies [
dd3ff01
]Updated dependencies [
6c2c708
]Updated dependencies [
d9c98f4
]Updated dependencies [
05d2819
]Updated dependencies [
9301f86
]Updated dependencies [
0a87932
]Updated dependencies [
c4a2fec
]Updated dependencies [
957b739
]Updated dependencies [
721775e
]Updated dependencies [
70ebead
]Updated dependencies [
79457bd
]Updated dependencies [
a3f768e
]Updated dependencies [
f3639fa
]Updated dependencies [
7435eb5
]Updated dependencies [
8aa9e20
]Updated dependencies [
4617fab
]Updated dependencies [
ac34802
]Updated dependencies [
0054544
]Updated dependencies [
cb68df0
]Updated dependencies [
ad80501
]Updated dependencies [
8bd3624
]Updated dependencies [
68ecf2f
]Updated dependencies [
9e9c809
]Updated dependencies [
32831c6
]Updated dependencies [
6dc848c
]Updated dependencies [
6b98118
]Updated dependencies [
d0f9495
]Updated dependencies [
c145d62
]Updated dependencies [
63d791d
]Updated dependencies [
87b828f
]Updated dependencies [
3f2f00c
]Updated dependencies [
bfdca8d
]Updated dependencies [
0ff02bb
]Updated dependencies [
7979f7f
]Updated dependencies [
f77bc38
]Updated dependencies [
989ac75
]Updated dependencies [
39a4fab
]Updated dependencies [
44f4aba
]Updated dependencies [
7742ba3
]Updated dependencies [
9bd5ab5
]Updated dependencies [
57edfcb
]Updated dependencies [
faf8446
]Updated dependencies [
c190907
]Updated dependencies [
7ea4132
]Updated dependencies [
d1a034f
]Updated dependencies [
d454e4b
]Updated dependencies [
5c56081
]Updated dependencies [
fd65bc6
]Updated dependencies [
cf1e00e
]Updated dependencies [
023ba40
]Updated dependencies [
cc21603
]Updated dependencies [
ea7a7c9
]Updated dependencies [
26535e0
]Updated dependencies [
e030615
]Updated dependencies [
5e57fae
]Updated dependencies [
393138b
]Updated dependencies [
c57e248
]Updated dependencies [
88a8ee5
]Updated dependencies [
41fa418
]Updated dependencies [
205077b
]Updated dependencies [
71f938d
]Updated dependencies [
e001ea1
]Updated dependencies [
3795467
]Updated dependencies [
28a5ed5
]Updated dependencies [
7182d14
]Updated dependencies [
c1e6647
]Updated dependencies [
1766ede
]Updated dependencies [
811dff3
]Updated dependencies [
f10304b
]Updated dependencies [
dd5fd43
]Updated dependencies [
33f4a6a
]Updated dependencies [
383cbfa
]Updated dependencies [
27deb4d
]Updated dependencies [
c4df419
]Configuration
📅 Schedule: Branch creation - "on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.