Update dependency ai to v4 (main) #204825
Closed
+85
−61
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.33
->^4.0.16
4.0.20
(+3)Release Notes
vercel/ai (ai)
v4.0.16
Compare Source
Patch Changes
e3fac3f
: fix (ai/core): change smoothStream default delay to 10msv4.0.15
Compare Source
Patch Changes
cc16a83
: feat (ai/core): add smoothStream helpercc16a83
: feat (ai/core): add experimental transform option to streamTextv4.0.14
Compare Source
Patch Changes
09a9cab
: feat (ai/core): add experimental generateImage function09a9cab
]v4.0.13
Compare Source
Patch Changes
9f32213
: feat (ai/core): add experimental tool call repairv4.0.12
Compare Source
Patch Changes
5167bec
: fix (ai/core): forward streamText errors as error parts0984f0b
: feat (ai/core): add ToolExecutionError type0984f0b
]v4.0.11
Compare Source
Patch Changes
953469c
]a3dd2ed
]v4.0.10
Compare Source
Patch Changes
913872d
: fix (ai/core): track promise from async createDataStream.executev4.0.9
Compare Source
Patch Changes
fda9695
: feat (ai/core): reworked data stream managementv4.0.8
Compare Source
Patch Changes
a803d76
: feat (ai/core): pass toolCallId option into tool execute functionv4.0.7
Compare Source
Patch Changes
5b4f07b
: fix (ai/core): change default error message for data streams to "An error occurred."v4.0.6
Compare Source
Patch Changes
fc18132
: feat (ai/core): experimental output for generateText2779f6d
: fix (ai/core): do not send maxRetries into providersv4.0.5
Compare Source
Patch Changes
630ac31
]v4.0.4
Compare Source
Patch Changes
6ff6689
: fix (ai): trigger onFinal when stream adapter finishes6ff6689
: chore (ai): deprecate onCompletion (stream callbacks)v4.0.3
Compare Source
Patch Changes
88b364b
]b446ae5
]v4.0.2
Compare Source
Patch Changes
c3ab5de
]v4.0.1
Compare Source
Patch Changes
b117255
: feat (ai/core): add messages to tool call optionsv4.0.0
Compare Source
Major Changes
4e38b38
: chore (ai): remove LanguageModelResponseMetadataWithHeaders type8bf5756
: chore: remove legacy function/tool callingf0cb69d
: chore (ai/core): remove experimental function exportsda8c609
: chore (ai): remove Tokens RSC helpercbab571
: chore (ai): remove ExperimentalXXXMessage typesb469a7e
: chore: remove isXXXError methods54cb888
: chore (ai): remove experimental_StreamData export4d61295
: chore (ai): remove streamToResponse and streamingTextResponse9a3d741
: chore (ai): remove ExperimentalTool export064257d
: chore (ai/core): rename simulateReadableStream values parameter to chunks60e69ed
: chore (ai/core): remove ai-stream related methods from streamTexta4f8ce9
: chore (ai): AssistantResponse cleanupsd3ae4f6
: chore (ui/react): remove useObject setInput helper7264b0a
: chore (ai): remove responseMessages property from streamText/generateText resultb801982
: chore (ai/core): remove init option from streamText result methodsf68d7b1
: chore (ai/core): streamObject returns result immediately (no Promise)6090cea
: chore (ai): remove rawResponse from generate/stream result objects073f282
: chore (ai): remove AIStream and related exports1c58337
: chore (ai): remove 2.x prompt helpersa40a93d
: chore (ai/ui): remove vue, svelte, solid re-export and dependencya7ad35a
: chore: remove legacy providers & rsc renderc0ddc24
: chore (ai): remove toJSON method from AI SDK errors007cb81
: chore (ai): changestreamText
warnings result to Promiseeffbce3
: chore (ai): remove responseMessage from streamText onFinish callback545d133
: chore (ai): remove deprecated roundtrip settings from streamText / generateText7e89ccb
: chore: remove nanoid exportf967199
: chore (ai/core): streamText returns result immediately (no Promise)62d08fd
: chore (ai): remove TokenUsage, CompletionTokenUsage, and EmbeddingTokenUsage typese5d2ce8
: chore (ai): remove deprecated provider registry exports70ce742
: chore (ai): remove experimental_continuationSteps option2f09717
: chore (ai): remove deprecated telemetry data0827bf9
: chore (ai): remove LangChain adaptertoAIStream
methodPatch Changes
dce4158
: chore (dependencies): update eventsource-parser to 3.0.0f0ec721
: chore (ai): remove openai peer dependencyf9bb30c
: chore (ai): remove unnecessary dev dependenciesb053413
: chore (ui): refactorings & README updatee117b54
]8bf5756
]b469a7e
]79c6dd9
]9f81e66
]70f28f6
]dce4158
]d3ae4f6
]68d30e9
]7814c4b
]ca3e586
]c0ddc24
]fe4f109
]84edae5
]b1da952
]04d3747
]dce4158
]7e89ccb
]8426f55
]db46ce5
]b053413
]v3.4.33
Compare Source
Patch Changes
ac380e3
: fix (provider/anthropic): continuation mode with 3+ stepsv3.4.32
Compare Source
Patch Changes
6bb9e51
: fix (ai/core): expose response.messages in streamTextv3.4.31
Compare Source
Patch Changes
2dfb93e
]v3.4.30
Compare Source
Patch Changes
a85c965
]v3.4.29
Compare Source
Patch Changes
54b56f7
: feat (ai/core): send tool and tool choice telemetry datav3.4.28
Compare Source
Patch Changes
29f1390
: feat (ai/test): add simulateReadableStream helperv3.4.27
Compare Source
Patch Changes
fa772ae
: feat (ai/core): automatically convert ui messages to core messagesv3.4.26
Compare Source
Patch Changes
57f39ea
: feat (ai/core): support multi-modal tool results in convertToCoreMessagesv3.4.25
Compare Source
Patch Changes
6e0fa1c
: fix (ai/core): wait for tool results to arrive before sending finish eventv3.4.24
Compare Source
Patch Changes
d92fd9f
: feat (ui/svelte): support Svelte 5 peer dependencyd92fd9f
]v3.4.23
Compare Source
Patch Changes
8301e41
: fix (ai/react): update React peer dependency version to allow rc releases.8301e41
]v3.4.22
Compare Source
Patch Changes
3bf8da0
]v3.4.21
Compare Source
Patch Changes
3954471
: (experimental) fix passing "experimental_toToolResultContent" into PoolResultPartv3.4.20
Compare Source
Patch Changes
aa98cdb
: chore: more flexible dependency versioning1486128
: feat: add supportsUrl to language model specification3b1b69a
: feat: provider-defined tools85b98da
: revert fix (ai/core): handle tool calls without results in message conversion7ceed77
: feat (ai/core): expose response message for each step811a317
: feat (ai/core): multi-part tool results (incl. images)aa98cdb
]1486128
]7b937c5
]3b1b69a
]811a317
]v3.4.18
Compare Source
Patch Changes
95c67b4
: fix (ai/core): handle tool calls without results in message conversionv3.4.17
Compare Source
Patch Changes
e4ff512
: fix (core): prevent unnecessary input/output serialization when telemetry is not enabledv3.4.16
Compare Source
Patch Changes
01dcc44
: feat (ai/core): add experimental activeTools option to generateText and streamTextv3.4.15
Compare Source
Patch Changes
98a3b08
]v3.4.14
Compare Source
Patch Changes
e930f40
: feat (ai/core): expose core tool result and tool call typesv3.4.13
Compare Source
Patch Changes
fc39158
: fix (ai/core): add abortSignal to tool helper functionv3.4.12
Compare Source
Patch Changes
a23da5b
: feat (ai/core): forward abort signal to toolsv3.4.11
Compare Source
Patch Changes
caedcda
: feat (ai/ui): add setData helper to useChatcaedcda
]v3.4.10
Compare Source
Patch Changes
0b557d7
: feat (ai/core): add tracer option to telemetry settings44f6bc5
: feat (ai/core): expose StepResult typev3.4.9
Compare Source
Patch Changes
d347538
: fix (ai/core): export FilePart interfacev3.4.8
Compare Source
Patch Changes
b5f577e
]v3.4.7
Compare Source
Patch Changes
db04700
: feat (core): support converting attachments to file parts988707c
: feat (ai/core): automatically download files from urlsv3.4.6
Compare Source
Patch Changes
d595d0d
: feat (ai/core): file content partsd595d0d
]v3.4.5
Compare Source
Patch Changes
cd77c5d
: feat (ai/core): add isContinued to stepscd77c5d
]v3.4.4
Compare Source
Patch Changes
4db074b
: fix (ai/core): correct whitespace in generateText continueSteps1297e1b
: fix (ai/core): correct whitespace in streamText continueStepsv3.4.3
Compare Source
Patch Changes
b270ae3
: feat (ai/core): streamText continueSteps (experimental)b270ae3
: chore (ai/core): rename generateText continuationSteps to continueStepsv3.4.2
Compare Source
Patch Changes
e6c7e98
: feat (ai/core): add continuationSteps to generateTextv3.4.1
Compare Source
Patch Changes
7e7104f
]v3.4.0
Compare Source
Minor Changes
c0cea03
: release (ai): 3.4v3.3.44
Compare Source
Patch Changes
d3933e0
]v3.3.43
Compare Source
Patch Changes
fea6bec
: fix (ai/core): support tool calls without argumentsv3.3.42
Compare Source
Patch Changes
de37aee
: feat (ai): Add support for LlamaIndexv3.3.41
Compare Source
Patch Changes
692e265
]v3.3.40
Compare Source
Patch Changes
a91c308
: feat (ai/core): add responseMessages to streamTextv3.3.39
Compare Source
Patch Changes
33cf3e1
: feat (ai/core): add providerMetadata to StepResult17ee757
: feat (ai/core): add onStepFinish callback to generateTextv3.3.38
Compare Source
Patch Changes
83da52c
: feat (ai/core): add onStepFinish callback to streamTextv3.3.37
Compare Source
Patch Changes
273f696
]v3.3.36
Compare Source
Patch Changes
a3882f5
: feat (ai/core): add steps property to streamText result and onFinish callback1f590ef
: chore (ai): rename roundtrips to steps7e82d36
: fix (ai/core): pass topK to providers54862e4
]1f590ef
]v3.3.35
Compare Source
Patch Changes
14210d5
: feat (ai/core): add sendUsage information to streamText data stream methods14210d5
]v3.3.34
Compare Source
Patch Changes
a0403d6
: feat (react): support sending attachments using append678449a
: feat (ai/core): export test helpersff22fac
: fix (ai/rsc): streamUI onFinish is called when tool calls have finisheda0403d6
]v3.3.33
Compare Source
Patch Changes
cbddc83
: fix (ai/core): filter out empty text partsv3.3.32
Compare Source
Patch Changes
ce7a4af
: feat (ai/core): support providerMetadata in functionsv3.3.31
Compare Source
Patch Changes
561fd7e
: feat (ai/core): add output: enum to generateObjectv3.3.30
Compare Source
Patch Changes
6ee1f8e
: feat (ai/core): add toDataStream to streamText resultv3.3.29
Compare Source
Patch Changes
1e3dfd2
: feat (ai/core): enhance pipeToData/TextStreamResponse methodsv3.3.28
Compare Source
Patch Changes
db61c53
: feat (ai/core): middleware supportv3.3.27
Compare Source
Patch Changes
03313cd
: feat (ai): expose response id, response model, response timestamp in telemetry and api3be7c1c
: fix (provider/anthropic): support prompt caching on assistant messages03313cd
]3be7c1c
]v3.3.26
Compare Source
Patch Changes
4ab883f
]v3.3.25
Compare Source
Patch Changes
4f1530f
: feat (ai/core): add OpenTelemetry Semantic Conventions for GenAI operations to v1.27.0 of standarddad775f
: feat (ai/core): add finish event and avg output tokens per second (telemetry)v3.3.24
Compare Source
Patch Changes
d87a655
: fix (ai/core): provide fallback when globalThis.performance is not availablev3.3.23
Compare Source
Patch Changes
b55e6f7
: fix (ai/core): streamObject text stream in array mode must not include elements: prefix.v3.3.22
Compare Source
Patch Changes
a5a56fd
: fix (ai/core): only send roundtrip-finish event after async tool calls are donev3.3.21
Compare Source
Patch Changes
aa2dc58
: feat (ai/core): add maxToolRoundtrips to streamTextaa2dc58
]v3.3.20
Compare Source
Patch Changes
7807677
: fix (rsc): Deep clone currentState in getMutableState()v3.3.19
Compare Source
Patch Changes
7235de0
: fix (ai/core): convertToCoreMessages accepts Message[]v3.3.18
Compare Source
Patch Changes
9e3b5a5
: feat (ai/core): add experimental_customProvider26515cb
: feat (ai/provider): introduce ProviderV1 specification26515cb
]v3.3.17
Compare Source
Patch Changes
d151349
: feat (ai/core): array output for generateObject / streamObjectd151349
]v3.3.16
Compare Source
Patch Changes
09f895f
: feat (ai/core): no-schema output for generateObject / streamObject09f895f
]v3.3.15
Compare Source
Patch Changes
b5a82b7
: chore (ai): update zod-to-json-schema to 3.23.2b5a82b7
]v3.3.14
Compare Source
Patch Changes
d67fa9c
]v3.3.13
Compare Source
Patch Changes
412f943
: fix (ai/core): make Buffer validation optional for environments without bufferv3.3.12
Compare Source
Patch Changes
f2c025e
: feat (ai/core): prompt validationf2c025e
]v3.3.11
Compare Source
Patch Changes
03eb0f4
: feat (ai/core): add "ai.operationId" telemetry attribute099db96
: feat (ai/core): add msToFirstChunk telemetry datab6c1dee
]v3.3.10
Compare Source
Patch Changes
04084a3
]v3.3.9
Compare Source
Patch Changes
6ac355e
: feat (provider/anthropic): add cache control supportb56dee1
: chore (ai): deprecate prompt helpers6ac355e
]v3.3.8
Compare Source
Patch Changes
dd712ac
]v3.3.7
Compare Source
Patch Changes
eccbd8e
: feat (ai/core): add onChunk callback to streamTextdd4a0f5
]v3.3.6
Compare Source
Patch Changes
e9c891d
: feat (ai/react): useObject supports non-Zod schemas3719e8a
: chore (ai/core): provider registry code improvementse9c891d
]4bd27a9
]845754b
]v3.3.5
Compare Source
Patch Changes
9ada023
: feat (ai/core): mask data stream error messages with streamTexte5b58f3
]v3.3.4
Compare Source
Patch Changes
029af4c
: feat (ai/core): support schema name & description in generateObject & streamObject3806c0c
: chore (ai/ui): increase stream data warning timeout to 15 secondsdb0118a
: feat (ai/core): export Schema type029af4c
]v3.3.3
Compare Source
Patch Changes
d58517b
: feat (ai/openai): structured outputsd58517b
]v3.3.2
Compare Source
Patch Changes
96aed25
]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 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 has been generated by Renovate Bot.