build: update dependency ai to v6 #214
Open
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:
^5.0.95->^6.0.0Release Notes
vercel/ai (ai)
v6.0.2Compare Source
Patch Changes
129ff26: fix(ai): skip tool input validation insafeValidateUIMessageswhenoutput-errorstate has undefined inputFixes #11392
Updated dependencies [
c0c8a0e]v6.0.1Compare Source
Patch Changes
387980f]v6.0.0Compare Source
Major Changes
dee8b05: ai SDK 6 betaMinor Changes
78928cb: release: start 5.1 betaPatch Changes
0c3b58b: fix(provider): add specificationVersion to ProviderV358920e0: fix(ai): do not drop custom headers in HttpChatTransporta7da2b6: feat(agent): change output generics0adc679: feat(provider): shared spec v350b70d6: feat(anthropic): add programmatic tool calling2d28066: chore(agent): limit agent call parametersfca786b: feat(agent): configurable call options046aa3b: feat(provider): speech model v3 spece1f6e8e: feat(ai): add Output.json()8d9e8ad: chore(provider): remove generics from EmbeddingModelV3Before
After
b67d224: Fixes an issue whereproviderMetadataandproviderExecutedwere lost when tool input validation failedab6f01a: Improve ai gateway error message when api key is not present9388ff1: feat(ui): add isDataUIPart helperdce03c4: feat: tool input examples2625a04: feat(openai); update spec for mcp approval37c58a0: This release introduceswrapEmbeddingModel, a new helper that brings embedding model customization capabilities similar towrapLanguageModel.4e2b04d: fix(gateway): throw error with user-friendly message in non-production environments ifAI_GATEWAY_API_KEYis not configuredab1087b: feat(ai):chat.addToolResult()is nowchat.addToolOutput()bb10a89: fix(ai): mcp errors to be jsonrpc 2.0 compliant457f1c6: feat(ai): onFinish callback for generateText95f65c2: chore: use import * from zod/v4754df61: fix(ai): correct type field in arrayOutputStrategy from 'enum' to 'array'58920e0: refactor: consolidate header normalization across packages, remove duplicates, preserve custom headers954c356: feat(openai): allow custom names for provider-defined tools7fdd89d: feat(agent): export AgentCallParameters and AgentStreamParameters typeseca63f3: feat(ai): add OAuth for MCP clients + refactor to new packageThis change replaces
with
90e5bdd: chore(ai): restructure agent files42cf7ed: fix(agent): use tool.toModelOutput when available544d4e8: chore(specification): rename v3 provider defined tool to provider tool4812235: fix(ai): add missing export forLoadSettingError7f2c9b6: fix(ui): do not submit automatically when server return with error614599a: chore(ai): deprecate generateObject and streamObject0c4822d: feat:EmbeddingModelV3e062079: chore(agent): move Agent.respond into createAgentStreamResponse function2b49dae: feat(agent): support UIMessageStreamOptions in createAgentStreamResponseee651d7:https://v6.ai-sdk.dev->https://ai-sdk.dev5a4e732: ExportparseJsonEventStreamanduiMessageChunkSchemafrom "ai" packagef733285: fix(ai): only parse experimental_output in generateText when finishReason is stop9b83947: feat(ai): add convertDataPart option to convertToModelMessagesAdd optional convertDataPart callback for converting custom data parts (URLs, code files, etc.) to text or file parts that models can process. Fully type-safe using existing UIMessage generics.
7eca093: fix(ai): updateuiMessageChunkSchemato satisfy theUIMessageChunktype077aea3: feat(ai): stable structured output on generateText, streamText, and ToolLoopAgent9f20c87: chore: updated README521c537: feat(ai): Tool.needsApproval can be a function7169511: feat(agent): support context in onFinish callbacke8109d3: feat: tool execution approval03849b0: move DelayedPromise into provider utilsed329cb: feat:Provider-V322ef5c6: feat(ai): Output.text() is default output mode9ba4324: feat(ai): support SystemModelMessage[] in system and instructions properties3bd2689: feat: extended token usage293a6b7: Added a title to the tools7c3c216: fixed docs and exported NoSpeechGeneratedErrorc62ecf0: feat(ai): add support for v2 specs in transcription and speech modelsd1bdadb: Added experimental_rerank support703459a: feat: tool execution approval for dynamic tools3071620: fix header loss when statusText is undefined in writeHead7e4649f: fix(core): Fix image download behavior when the initial model is swapped out during prepareStep48454ab: fix(ai): handle backpressure inwriteToServerResponsee06b663: feat(agent): support experimental stream transforms83e5744: feat: support async Tool.toModelOutput8c98371: Extend addToolResult to support error resultsb1405bf: feat(ai): send context into streamText / generateText onFinish callbacksa5e152d: fix(ai): back version support for V2 providersaa0515c: feat(ai): move Agent to stablef6f0c5a: chore: remove zod from ui packages3ed5519: chore: rename ToolCallOptions to ToolExecutionOptionseb8d1cb: fix not catching of empty arrays in validateUIMessagee7d9b00: feat(agent): add optional name property to agentd5b25ee: feat(ai): add Output.array()d7bae86: feat(ai): add Output.choice()8dac895: feat:LanguageModelV3a755db5: feat(ai): improve warnings with provider and model id1c2a4c1: fix(ai): remove outdated jsdoc param descriptions686103c: chore(ai): export ContentPart type0d6c0d8: chore(ai): remove deprecated CodeMessage type and related types and functions9b8d17e: fix(agent): move provider options to main agent config79a8e7f: feat(agent): support abortSignal in createAgentUIStreamd59ce25: fix(ai): do not mutate middleware array argument when wrapping475189e: chore(specification): rename EmbeddingModelCallOptions3d83f38: chore(ai): improve addToolInputExamplesMiddleware457318b: chore(provider,ai): switch to SharedV3Warning and unified warningsb681d7d: feat: expose usage tokens for 'generateImage' functionc99da05: feat(ai): add onFinish to Agentdb913bd: fix(google): add thought signature to gemini 3 pro image parts9061dc0: feat: image editing8445d70: feat: export GatewayModelId and use to type LanguageModel32223c8: feat: add toolCallId arg to toModelOutput8370068: fix(provider/google): preserve thoughtSignature through tool execution5e313e3: fix(agent): do not allow static tools when tools is emptydb62f7d: Added schema name and description for generateText and outputa7f6f81: Add safeValidateUIMessages utility to validate UI messages without throwing, returning a success/failure result object like Zod’s safeParse79ba99f: feat(agent): add message metadata support when inferring UI messagesc98373a: chore(agent): rename createAgentStreamResponse to createAgentUIStreamResponse846e80e: fix(ai): bind functions for v2 -> v3 adapterbbdcb81: Add experimental_context parameter to prepareStep callback67a407c: chore(ai): add warning when using v2 models with AISDK v69524761: chore(ai): rename relevanceScore to scoreca13d26: feat(ai): add output to StreamTextResult4616b86: chore: update zod peer depenedency versiona322efa: Added finishReason on useChat onFinish callbck2d166e4: feat(provider/gateway): add support for image models384142c: feat(agent): add abortSignal parameter to generate and stream36b175c: chore(ai): change output generics2b1bf9d: feat(ai): add pruneMessages helper function81d4308: feat: provider-executed dynamic toolse0d1ea9: fix(ai): align logic of text-end with reasoning-end2406576: chore(agent): rename messages property on agent ui stream functions to uiMessagesb1aeea7: feat(ai): set default stopWhen on Agent to stepCountIs(20)dce4e7b: chore(agent): rename system to instructions4ece5f9: feat(agent): add experimental_download to ToolLoopAgenta417a34: feat(agent): introduce version property637eaa4: feat(ai): print model warnings in embed and embedMany177b475: fix(ai): download files when intermediate file cannot be downloaded21e20c0: feat(provider): transcription model v3 specafe7093: feat: add middleware for tool input examples61f7b0f: chore(agent): rename BasicAgent to ToolLoopAgentaf9dab3: fix(ai): remove unused mode setting from generateObject and streamObject522f6b8: feat:ImageModelV397b1d77: fix(ui): Don't resend messages for providerExecuted tools in lastAssistantMessageIsCompleteWithToolCalls and lastAssistantMessageIsCompleteWithApprovalResponses69768c2: chore(ai): remove UI message reference from model message validation27e8c3a: chore(ai): rename Agent to BasicAgent, introduce Agent interface81e29ab: feat(ai): allow modifying experimental context in prepareStep7da02d2: fix(ai): prune messages properly when toolCalls set to 'before-last-message'763d04a: feat: Standard JSON Schema support95b77e2: feat(agent): extract createAgentUIStream, add pipeAgentUIStreamToResponse3794514: feat: flexible tool output content supportcbf52cd: feat: expose raw finish reason14ca35d: feat: add support for v2 specs10c1322: fix: moved dependency@ai-sdk/test-serverto devDependenciesdcdac8c: chore(ai): rename tool helpers960ec8f: chore: change argument of toModelOutput to parameter objectb59d924: feat(ai): support SystemModelMessage in system and instructions properties1bd7d32: feat: tool-specific strict mode95f65c2: chore: load zod schemas lazilyUpdated dependencies [
0c3b58b]Updated dependencies [
ea9ca31]Updated dependencies [
5dd4c6a]Updated dependencies [
5d21222]Updated dependencies [
0adc679]Updated dependencies [
50b70d6]Updated dependencies [
d1bdadb]Updated dependencies [
7294355]Updated dependencies [
e8694af]Updated dependencies [
dee8b05]Updated dependencies [
046aa3b]Updated dependencies [
8d9e8ad]Updated dependencies [
78928cb]Updated dependencies [
dce03c4]Updated dependencies [
2625a04]Updated dependencies [
37c58a0]Updated dependencies [
3b1d015]Updated dependencies [
2b0caef]Updated dependencies [
aaf5ebf]Updated dependencies [
95f65c2]Updated dependencies [
016b111]Updated dependencies [
58920e0]Updated dependencies [
954c356]Updated dependencies [
c823faf]Updated dependencies [
544d4e8]Updated dependencies [
2b6a848]Updated dependencies [
0c4822d]Updated dependencies [
34ee8d0]Updated dependencies [
521c537]Updated dependencies [
1890317]Updated dependencies [
4c44a5b]Updated dependencies [
2f8b0c8]Updated dependencies [
e8109d3]Updated dependencies [
636e614]Updated dependencies [
03849b0]Updated dependencies [
7ccb36f]Updated dependencies [
ed329cb]Updated dependencies [
e06565c]Updated dependencies [
32d8dbb]Updated dependencies [
53f3368]Updated dependencies [
d116b4b]Updated dependencies [
3bd2689]Updated dependencies [
293a6b7]Updated dependencies [
5f66123]Updated dependencies [
703459a]Updated dependencies [
1cad0ab]Updated dependencies [
bb36798]Updated dependencies [
83e5744]Updated dependencies [
bca7e61]Updated dependencies [
7e32fea]Updated dependencies [
3ed5519]Updated dependencies [
8dac895]Updated dependencies [
3e83633]Updated dependencies [
1d8ea2c]Updated dependencies [
ef62178]Updated dependencies [
a755db5]Updated dependencies [
0a2ff8a]Updated dependencies [
cbb1d35]Updated dependencies [
ee71658]Updated dependencies [
475189e]Updated dependencies [
457318b]Updated dependencies [
b681d7d]Updated dependencies [
db913bd]Updated dependencies [
9061dc0]Updated dependencies [
32223c8]Updated dependencies [
7d73922]Updated dependencies [
e6bfe91]Updated dependencies [
c1efac4]Updated dependencies [
acc14d8]Updated dependencies [
f83903d]Updated dependencies [
0e29b8b]Updated dependencies [
366f50b]Updated dependencies [
cdd0bc2]Updated dependencies [
96322b7]Updated dependencies [
4616b86]Updated dependencies [
2d166e4]Updated dependencies [
81d4308]Updated dependencies [
9549c9e]Updated dependencies [
6c766ef]Updated dependencies [
af3780b]Updated dependencies [
4f16c37]Updated dependencies [
81e29ab]Updated dependencies [
7b1b1b1]Updated dependencies [
3782645]Updated dependencies [
f18ef7f]Updated dependencies [
522f6b8]Updated dependencies [
6306603]Updated dependencies [
1425df5]Updated dependencies [
9f6149e]Updated dependencies [
fca786b]Updated dependencies [
763d04a]Updated dependencies [
cc5170d]Updated dependencies [
a90dca6]Updated dependencies [
b1624f0]Updated dependencies [
10d819b]Updated dependencies [
3794514]Updated dependencies [
cbf52cd]Updated dependencies [
870297d]Updated dependencies [
e9e157f]Updated dependencies [
960ec8f]Updated dependencies [
1bd7d32]Updated dependencies [
f0b2157]Updated dependencies [
95f65c2]v5.0.116Compare Source
Patch Changes
e3de981]v5.0.115Compare Source
Patch Changes
1bcc2d7]v5.0.114Compare Source
Patch Changes
fc633bd: fix header loss when statusText is undefined in writeHeadv5.0.113Compare Source
Patch Changes
7e6fb4d: fix(gateway): throw error with user-friendly message in non-production environments ifAI_GATEWAY_API_KEYis not configuredv5.0.112Compare Source
Patch Changes
041a4fc]v5.0.111Compare Source
Patch Changes
ef6d784]v5.0.110Compare Source
Patch Changes
51bbaa1]v5.0.109Compare Source
Patch Changes
427547a: Improve ai gateway error message when api key is not presentv5.0.108Compare Source
Patch Changes
03cafbc: chore(ai): export ContentPart typev5.0.107Compare Source
Patch Changes
21c9f90: fix(ai): remove unused mode setting from generateObject and streamObjectv5.0.106Compare Source
Patch Changes
667f74c]v5.0.105Compare Source
Patch Changes
1063aca: fix(ai): Preverse providerMetadata in tool-call and tool-result partsv5.0.104Compare Source
Patch Changes
d1dbe5d: move DelayedPromise into provider utilsd1dbe5d]v5.0.103Compare Source
Patch Changes
e609736]v5.0.102Compare Source
Patch Changes
83b2c4b: fix(ai): prune messages properly when toolCalls set to 'before-last-message'v5.0.101Compare Source
Patch Changes
c5a42ec]v5.0.100Compare Source
Patch Changes
c9520e5]2382c89]v5.0.99Compare Source
Patch Changes
15cfac8: feat: export GatewayModelId and use to type LanguageModelv5.0.98Compare Source
Patch Changes
8c54c71]v5.0.97Compare Source
Patch Changes
6465dc3]v5.0.96Compare Source
Patch Changes
c89268c: fix(provider/google): preserve thoughtSignature through tool execution