Update dependency ai to v4 - autoclosed #519
Closed
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:
2.2.16->4.3.19Release Notes
vercel/ai (ai)
v4.3.19Compare Source
Patch Changes
849af1c: feat(ai): Record tool call errors on tool call spans recorded ingenerateTextandstreamText.v4.3.18Compare Source
Patch Changes
37d93f4: fix (ai): throw error for v2 models or string model idsv4.3.17Compare Source
Patch Changes
a288694: Expose provider metadata as an attribute on exported OTEL spansv4.3.16Compare Source
Patch Changes
ed0ebeb: Avoid JSON.strinfigy on UInt8Arrays for telemetryv4.3.15Compare Source
Patch Changes
d87b9d1]v4.3.14Compare Source
Patch Changes
a295521: feat(message-validator): include more details in error messagesv4.3.13Compare Source
Patch Changes
6c59ae7]v4.3.12Compare Source
Patch Changes
1ed3755: fix (ai): don't publish mcp-stdio TypeScript files46cb332: chore (ai/mcp): addassertCapabilitymethod to experimental MCP clientv4.3.11Compare Source
Patch Changes
77b2097]62181ef]v4.3.10Compare Source
Patch Changes
0432959: feat (ai): add experimental prepareStep callback to generateTextv4.3.9Compare Source
Patch Changes
b69a253: fix(utils/detect-mimetype): add support for detecting id3 tagsv4.3.8Compare Source
Patch Changes
6e8a73b: feat(providers/fal): add transcribev4.3.7Compare Source
Patch Changes
f4f3945: fix (ai/core): refactortoResponseMessagesto filter out empty string/contentv4.3.6Compare Source
Patch Changes
beef951: feat: add speech with experimental_generateSpeechbd41167: fix(ai/core): properly handle custom separator in provider registrybeef951]v4.3.5Compare Source
Patch Changes
452bf12: fix (ai/mcp): better support for zero-argument MCP toolsv4.3.4Compare Source
Patch Changes
013faa8: core (ai): change transcription model mimeType to mediaType013faa8]v4.3.3Compare Source
Patch Changes
3e88f4d: fix (ai/mcp): prevent mutation of customEnvc21fa6d: feat: add transcription with experimental_transcribec21fa6d]v4.3.2Compare Source
Patch Changes
665a567: fix (core): improve error handling in streamText's consumeStream methodv4.3.1Compare Source
Patch Changes
3d1bd38: feat(smooth-stream): chunking callbacksv4.3.0Compare Source
Minor Changes
772a2d7: feat (core): Add finishReason field to NoObjectGeneratedErrorPatch Changes
2c19b9a]v4.2.11Compare Source
Patch Changes
c45d100: fix (core): send buffered text in smooth stream when stream parts changev4.2.10Compare Source
Patch Changes
a043b14]28be004]v4.2.9Compare Source
Patch Changes
b01120e]v4.2.8Compare Source
Patch Changes
65243ce: fix (ui): introduce step start parts65243ce]v4.2.7Compare Source
Patch Changes
e14c066: fix (ai/core): convert user ui messages with only parts (no content) to core messagesv4.2.6Compare Source
Patch Changes
625591b: feat (ai/core): auto-complete for provider registry6a1506f: feat (ai/core): custom separator support for provider registryea3d998: chore (ai/core): move provider registry to stablev4.2.5Compare Source
Patch Changes
d92fa29]v4.2.4Compare Source
Patch Changes
3d6d96d: fix (ai/core): validate that messages are not emptyv4.2.3Compare Source
Patch Changes
0b3bf29: fix (ai/core): custom env support for stdio MCP transportv4.2.2Compare Source
Patch Changes
f10f0fa: fix (provider-utils): improve event source stream parsing performancef10f0fa]v4.2.1Compare Source
Patch Changes
b796152: feat (ai/core): add headers to MCP SSE transport06361d6: feat (ai/core): expose JSON RPC types (MCP)v4.2.0Compare Source
Minor Changes
5bc638d: AI SDK 4.2Patch Changes
5bc638d]v4.1.66Compare Source
Patch Changes
5d0fc29: chore (ai): improve cosine similarity calculationv4.1.65Compare Source
Patch Changes
16c444f: fix (ai): expose ai/mcp-stdiov4.1.64Compare Source
Patch Changes
d0c4659]v4.1.63Compare Source
Patch Changes
0bd5bc6: feat (ai): support model-generated files0bd5bc6]v4.1.62Compare Source
Patch Changes
c9ed3c4: feat: enable custom mcp transportsbreaking change: remove internal stdio transport creation
v4.1.61Compare Source
Patch Changes
2e1101a: feat (provider/openai): pdf input support2e1101a]v4.1.60Compare Source
Patch Changes
0b8797f: feat (ai/core): expose response body for each generateText stepv4.1.59Compare Source
Patch Changes
dd18049: fix (ai/core): suppress next.js warnings for node.js specific code pathv4.1.58Compare Source
Patch Changes
e9897eb: fix (ai/core): move process access into functions and use globalThisv4.1.57Compare Source
Patch Changes
092fdaa: feat (ai/core): add defaultSettingsMiddlewarev4.1.56Compare Source
Patch Changes
80be82b: feat (ai/core): add simulateStreamingMiddleware8109a24: fix (ai/core): limit node imports to types where possiblev4.1.55Compare Source
Patch Changes
1531959: feat (ai/core): add MCP client for using MCP tools1531959]v4.1.54Compare Source
Patch Changes
ee1c787: fix (ai/core): correct spread apply order to fix extract reasoning middleware with generateTextv4.1.53Compare Source
Patch Changes
e1d3d42: feat (ai): expose raw response body in generateText and generateObjecte1d3d42]v4.1.52Compare Source
Patch Changes
5329a69: fix (ai/core): fix duplicated reasoning in streamText onFinish and messagesv4.1.51Compare Source
Patch Changes
0cb2647: feat (ai/core): add streamText sendStart & sendFinish data stream optionsv4.1.50Compare Source
Patch Changes
ae98f0d: fix (ai/core): forward providerOptions for text, image, and file partsv4.1.49Compare Source
Patch Changes
dc027d3: fix (ai/core): add reasoning support to appendResponseMessagesv4.1.48Compare Source
Patch Changes
6255fbc]v4.1.47Compare Source
Patch Changes
da5c734]v4.1.46Compare Source
Patch Changes
ddf9740: feat (ai): add anthropic reasoningddf9740]v4.1.45Compare Source
Patch Changes
93bd5a0: feat (ai/ui): add writeSource to createDataStreamv4.1.44Compare Source
Patch Changes
f8e7df2: fix (ai/core): addstartWithReasoningoption toextractReasoningMiddlewarev4.1.43Compare Source
Patch Changes
ef2e23b: feat (ai/core): add experimental repairText function to generateObjectv4.1.42Compare Source
Patch Changes
2761f06]v4.1.41Compare Source
Patch Changes
60c3220]v4.1.40Compare Source
Patch Changes
c43df41]v4.1.39Compare Source
Patch Changes
075a9a9: fix (ai): improve tsdoc on custom providerv4.1.38Compare Source
Patch Changes
4c9c194: chore (ai): add description to provider-defined tools for better accessibility2e898b4: chore (ai): move mockId test helper into provider utils2e898b4]v4.1.37Compare Source
Patch Changes
c1e10d1: chore: export UIMessage typev4.1.36Compare Source
Patch Changes
3ff4ef8]v4.1.35Compare Source
Patch Changes
166e09e: feat (ai/ui): forward source parts to useChat166e09e]v4.1.34Compare Source
Patch Changes
dc49119: chore: deprecate ai/reactv4.1.33Compare Source
Patch Changes
74f0f0e: chore (ai/core): move providerMetadata to stablev4.1.32Compare Source
Patch Changes
c128ca5: fix (ai/core): fix streamText onFinish messages with structured outputv4.1.31Compare Source
Patch Changes
b30b1cc: feat (ai/core): add onError callback to streamObjectv4.1.30Compare Source
Patch Changes
4ee5b6f: fix (core): remove invalid providerOptions from streamObject onFinish callbackv4.1.29Compare Source
Patch Changes
605de49: feat (ai/core): export callback typesv4.1.28Compare Source
Patch Changes
6eb7fc4: feat (ai/core): url source supportv4.1.27Compare Source
Patch Changes
318b351]v4.1.26Compare Source
Patch Changes
34983d4: fix (ai/core): bind supportsUrl when creating wrapperv4.1.25Compare Source
Patch Changes
5a21310: fix (ai/core): use ai types on custom provider to prevent ts errorv4.1.24Compare Source
Patch Changes
38142b8: feat (ai/core): introduce streamText consumeStreamv4.1.23Compare Source
Patch Changes
b08f7c1: fix (ai/core): suppress errors in textStreamv4.1.22Compare Source
Patch Changes
2bec72a: feat (ai/core): add onError callback to streamTextv4.1.21Compare Source
Patch Changes
d387989: feat (ai/core): re-export zodSchemav4.1.20Compare Source
Patch Changes
bcc61d4: feat (ui): introduce message parts for useChatbcc61d4]v4.1.19Compare Source
Patch Changes
6b8cc14]v4.1.18Compare Source
Patch Changes
6a1acfe: fix (ai/core): revert '@internal' tag on function definitions due to build impactsv4.1.17Compare Source
Patch Changes
5af8cdb: fix (ai/core): support this reference in model.supportsUrl implementationsv4.1.16Compare Source
Patch Changes
7e299a4: feat (ai/core): wrapLanguageModel can apply multiple middlewaresv4.1.15Compare Source
Patch Changes
d89c3b9: feat (provider): add image model support to provider specificationd89c3b9: feat (core): type ahead for model ids with custom provider08f54fc: chore (ai/core): move custom provider to stabled89c3b9]v4.1.14Compare Source
Patch Changes
ca89615: fix (ai/core): only append assistant response at the end when there is a final user messagev4.1.13Compare Source
Patch Changes
999085e: feat (ai/core): add write function to DataStreamWriterv4.1.12Compare Source
Patch Changes
0d2d9bf: fix (ui): single assistant message with multiple tool steps0d2d9bf]0d2d9bf]v4.1.11Compare Source
Patch Changes
4c58da5: chore (core): move providerOptions to stablev4.1.10Compare Source
Patch Changes
bf2c9c6: feat (core): move middleware to stablev4.1.9Compare Source
Patch Changes
3a602ca: chore (core): rename CoreTool to Tool3a602ca]v4.1.8Compare Source
Patch Changes
92f5f36: feat (core): add extractReasoningMiddlewarev4.1.7Compare Source
Patch Changes
066206e: feat (provider-utils): move delay to provider-utils from ai066206e]v4.1.6Compare Source
Patch Changes
39e5c1f]v4.1.5Compare Source
Patch Changes
9ce598c: feat (ai/ui): add reasoning support to useChat9ce598c]v4.1.4Compare Source
Patch Changes
caaad11: feat (ai/core): re-export languagemodelv1 types for middleware implementationscaaad11: feat (ai/core): expose TelemetrySettings typev4.1.3Compare Source
Patch Changes
7f30a77: feat (core): export core message schemas4298996: feat (core): add helper for merging single client messagev4.1.2Compare Source
Patch Changes
3c5fafa: chore (ai/core): move streamText toolCallStreaming option to stable3a58a2e: feat (ai/core): throw NoImageGeneratedError from generateImage when no predictions are returned.ed012d2]6f4d063]3a58a2e]v4.1.1Compare Source
Patch Changes
0a699f1: feat: add reasoning token supporte7a9ec9]0a699f1]v4.1.0Compare Source
Minor Changes
62ba5ad: release: AI SDK 4.1Patch Changes
62ba5ad]v4.0.41Compare Source
Patch Changes
44f04d5]v4.0.40Compare Source
Patch Changes
33592d2: fix (ai/core): switch to json schema 7 target for zod to json schema conversion33592d2]v4.0.39Compare Source
Patch Changes
00114c5: feat: expose IDGenerator and createIdGenerator00114c5: feat (ui): generate and forward message ids for response messages00114c5]00114c5]v4.0.38Compare Source
Patch Changes
0118fa7: fix (ai/core): handle empty tool invocation array in convertToCoreMessagesv4.0.37Compare Source
Patch Changes
8304ed8: feat (ai/core): Add optionthrowErrorForEmptyVectorsto cosineSimilarityed28182: feat (ai/ui): add appendResponseMessages helperv4.0.36Compare Source
Patch Changes
37f4510]v4.0.35Compare Source
Patch Changes
3491f78: feat (ai/core): support multiple stream text transformsv4.0.34Compare Source
Patch Changes
2495973: feat (ai/core): use openai compatible mode for json schema conversion2495973: fix (ai/core): duplicate instead of using reference in json schema2495973]2495973]v4.0.33Compare Source
Patch Changes
5510ee7: feat (ai/core): add stopStream option to streamText transformsv4.0.32Compare Source
Patch Changes
de66619: feat (ai/core): add tool call id to ToolExecution errorv4.0.31Compare Source
Patch Changes
90fb95a]e6dfef4]6636db6]v4.0.30Compare Source
Patch Changes
e4ce80c: fix (ai/core): prevent onFinish from masking stream errorsv4.0.29Compare Source
Patch Changes
a92f5f6: feat (ai/core): generate many images with parallel model callsv4.0.28Compare Source
Patch Changes
19a2ce7: feat (ai/core): add aspectRatio and seed options to generateImage6337688: feat: change image generation errors to warnings8b422ea: feat (ai/core): add caching to generated images19a2ce7]19a2ce7]6337688]v4.0.27Compare Source
Patch Changes
a56734f: feat (ai/core): export simulateReadableStream in ai package9589601: feat (ai/core): support null delay in smoothStreame3cc23a: feat (ai/core): support regexp chunking pattern in smoothStreame463e73: feat (ai/core): support skipping delays in simulateReadableStreamv4.0.26Compare Source
Patch Changes
a8f3242: feat (ai/core): add line chunking mode to smoothStreamv4.0.25Compare Source
Patch Changes
0823899: fix (ai/core): throw error when accessing output when no output is defined in generateText (breaking/experimental)v4.0.24Compare Source
Patch Changes
ae0485b: feat (ai/core): add experimental output setting to streamTextv4.0.23Compare Source
Patch Changes
bc4cd19: feat (ai/core): consolidate whitespace in smooth streamv4.0.22Compare Source
Patch Changes
5ed5e45]v4.0.21Compare Source
Patch Changes
a8669a2: fix (ai/core): prefer auto-detected image mimetype6fb3e91: fix (ai/core): include type in generateText toolResults result property.v4.0.20Compare Source
Patch Changes
da9d240: fix (ai/core): suppress errors caused by writing to closed stream6f1bfde: fix (ai/core): invoke streamText tool call repair when tool cannot be foundv4.0.19Compare Source
Patch Changes
c3a6065: fix (ai/core): apply transform before callbacks and resolvablesv4.0.18Compare Source
Patch Changes
304e6d3: feat (ai/core): standardize generateObject, streamObject, and output errors to NoObjectGeneratedError304e6d3: feat (ai/core): add additional information to NoObjectGeneratedErrorv4.0.17Compare Source
Patch Changes
54bbf21: fix (ai/core): change streamText.experimental_transform signature to support tool type inferencev4.0.16Compare Source
Patch Changes
e3fac3f: fix (ai/core): change smoothStream default delay to 10msv4.0.15Compare Source
Patch Changes
cc16a83: feat (ai/core): add smoothStream helpercc16a83: feat (ai/core): add experimental transform option to streamTextv4.0.14Compare Source
Patch Changes
09a9cab: feat (ai/core): add experimental generateImage function09a9cab]Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.