ai 4.3.16 → 5.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +380 -66
  2. package/README.md +1 -1
  3. package/dist/index.d.mts +2952 -2673
  4. package/dist/index.d.ts +2952 -2673
  5. package/dist/index.js +5252 -4900
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +5248 -4899
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/internal/index.d.mts +467 -0
  10. package/dist/internal/index.d.ts +467 -0
  11. package/dist/internal/index.js +957 -0
  12. package/dist/internal/index.js.map +1 -0
  13. package/dist/internal/index.mjs +930 -0
  14. package/dist/internal/index.mjs.map +1 -0
  15. package/{mcp-stdio/dist → dist/mcp-stdio}/index.d.mts +14 -14
  16. package/{mcp-stdio/dist → dist/mcp-stdio}/index.d.ts +14 -14
  17. package/{mcp-stdio/dist → dist/mcp-stdio}/index.js +1 -4
  18. package/dist/mcp-stdio/index.js.map +1 -0
  19. package/{mcp-stdio/dist → dist/mcp-stdio}/index.mjs +1 -16
  20. package/dist/mcp-stdio/index.mjs.map +1 -0
  21. package/dist/test/index.d.mts +64 -0
  22. package/dist/test/index.d.ts +64 -0
  23. package/{test/dist → dist/test}/index.js +43 -20
  24. package/dist/test/index.js.map +1 -0
  25. package/{test/dist → dist/test}/index.mjs +41 -18
  26. package/dist/test/index.mjs.map +1 -0
  27. package/internal.d.ts +1 -0
  28. package/mcp-stdio.d.ts +1 -0
  29. package/package.json +32 -58
  30. package/test.d.ts +1 -0
  31. package/mcp-stdio/dist/index.js.map +0 -1
  32. package/mcp-stdio/dist/index.mjs.map +0 -1
  33. package/react/dist/index.d.mts +0 -22
  34. package/react/dist/index.d.ts +0 -22
  35. package/react/dist/index.js +0 -42
  36. package/react/dist/index.js.map +0 -1
  37. package/react/dist/index.mjs +0 -20
  38. package/react/dist/index.mjs.map +0 -1
  39. package/rsc/dist/index.d.ts +0 -813
  40. package/rsc/dist/index.mjs +0 -18
  41. package/rsc/dist/rsc-client.d.mts +0 -1
  42. package/rsc/dist/rsc-client.mjs +0 -18
  43. package/rsc/dist/rsc-client.mjs.map +0 -1
  44. package/rsc/dist/rsc-server.d.mts +0 -748
  45. package/rsc/dist/rsc-server.mjs +0 -2174
  46. package/rsc/dist/rsc-server.mjs.map +0 -1
  47. package/rsc/dist/rsc-shared.d.mts +0 -101
  48. package/rsc/dist/rsc-shared.mjs +0 -308
  49. package/rsc/dist/rsc-shared.mjs.map +0 -1
  50. package/test/dist/index.d.mts +0 -65
  51. package/test/dist/index.d.ts +0 -65
  52. package/test/dist/index.js.map +0 -1
  53. package/test/dist/index.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,145 +1,459 @@
1
1
  # ai
2
2
 
3
- ## 4.3.16
3
+ ## 5.0.0-alpha.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - ed0ebeb: Avoid JSON.strinfigy on UInt8Arrays for telemetry
7
+ - 82aa95d: fix (ai): merge data ui stream parts correctly
8
+ - Updated dependencies [26535e0]
9
+ - @ai-sdk/provider@2.0.0-alpha.2
10
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
8
11
 
9
- ## 4.3.15
12
+ ## 5.0.0-alpha.1
13
+
14
+ ### Major Changes
15
+
16
+ - 109c0ac: chore (ai): rename id to chatId (in post request, resume request, and useChat)
10
17
 
11
18
  ### Patch Changes
12
19
 
13
- - Updated dependencies [d87b9d1]
14
- - @ai-sdk/provider-utils@2.2.8
15
- - @ai-sdk/react@1.2.12
16
- - @ai-sdk/ui-utils@1.2.11
20
+ - b346545: feat (ai): add data ui part schemas
21
+ - Updated dependencies [3f2f00c]
22
+ - @ai-sdk/provider@2.0.0-alpha.1
23
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
17
24
 
18
- ## 4.3.14
25
+ ## 5.0.0-canary.24
26
+
27
+ ### Major Changes
28
+
29
+ - f7e8bf4: chore (ai): flatten ui message stream parts
30
+ - ed675de: feat (ai): add ui data parts
31
+ - 64f6d64: feat (ai): replace maxSteps with continueUntil (generateText)
19
32
 
20
33
  ### Patch Changes
21
34
 
22
- - a295521: feat(message-validator): include more details in error messages
35
+ - bedb239: chore (ai): make ui stream parts value optional when it's not required
36
+ - 507ac1d: fix (ui/react): update messages immediately with the submitted user message
37
+ - 2b9bbcd: feat (ai): improve prompt validation error message
38
+ - cda32ba: fix (ai): send `start` part in correct position in stream (streamText)
39
+ - 50f0362: fix (ai): fix experimental sendStart/sendFinish options in streamText
40
+ - Updated dependencies [faf8446]
41
+ - @ai-sdk/provider-utils@3.0.0-canary.19
23
42
 
24
- ## 4.3.13
43
+ ## 5.0.0-canary.23
44
+
45
+ ### Major Changes
46
+
47
+ - 40acf9b: feat (ui): introduce ChatStore and ChatTransport
25
48
 
26
49
  ### Patch Changes
27
50
 
28
- - Updated dependencies [6c59ae7]
29
- - @ai-sdk/ui-utils@1.2.10
30
- - @ai-sdk/react@1.2.11
51
+ - Updated dependencies [40acf9b]
52
+ - @ai-sdk/provider-utils@3.0.0-canary.18
53
+
54
+ ## 5.0.0-canary.22
55
+
56
+ ### Major Changes
57
+
58
+ - e7dc6c7: chore (ai): remove onResponse callback
59
+ - a34eb39: chore (ai): remove `data` and `allowEmptySubmit` from `ChatRequestOptions`
60
+ - b33ed7a: chore (ai): rename DataStream* to UIMessage*
61
+ - 765f1cd: chore (ai): remove deprecated useChat isLoading helper
31
62
 
32
- ## 4.3.12
63
+ ## 5.0.0-canary.21
64
+
65
+ ### Major Changes
66
+
67
+ - d964901: - remove setting temperature to `0` by default
68
+ - remove `null` option from `DefaultSettingsMiddleware`
69
+ - remove setting defaults for `temperature` and `stopSequences` in `ai` to enable middleware changes
70
+ - 0560977: chore (ai): improve consistency of generate text result, stream text result, and step result
71
+ - 516be5b: ### Move Image Model Settings into generate options
72
+
73
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
74
+
75
+ Before
76
+
77
+ ```js
78
+ await generateImage({
79
+ model: luma.image('photon-flash-1', {
80
+ maxImagesPerCall: 5,
81
+ pollIntervalMillis: 500,
82
+ }),
83
+ prompt,
84
+ n: 10,
85
+ });
86
+ ```
87
+
88
+ After
89
+
90
+ ```js
91
+ await generateImage({
92
+ model: luma.image('photon-flash-1'),
93
+ prompt,
94
+ n: 10,
95
+ maxImagesPerCall: 5,
96
+ providerOptions: {
97
+ luma: { pollIntervalMillis: 5 },
98
+ },
99
+ });
100
+ ```
101
+
102
+ Pull Request: https://github.com/vercel/ai/pull/6180
103
+
104
+ - bfbfc4c: feat (ai): streamText/generateText: totalUsage contains usage for all steps. usage is for a single step.
105
+ - ea7a7c9: feat (ui): UI message metadata
106
+ - 1409e13: chore (ai): remove experimental continueSteps
33
107
 
34
108
  ### Patch Changes
35
109
 
36
- - 1ed3755: fix (ai): don't publish mcp-stdio TypeScript files
37
- - 46cb332: chore (ai/mcp): add `assertCapability` method to experimental MCP client
110
+ - 66af894: fix (ai): respect content order in toResponseMessages
111
+ - Updated dependencies [ea7a7c9]
112
+ - @ai-sdk/provider-utils@3.0.0-canary.17
113
+
114
+ ## 5.0.0-canary.20
38
115
 
39
- ## 4.3.11
116
+ ### Major Changes
117
+
118
+ - 13fef90: chore (ai): remove automatic conversion of UI messages to model messages
119
+ - 496bbc1: chore (ui): inline/remove ChatRequest type
120
+ - da70d79: chore (ai): remove getUIText helper
121
+ - c7710a9: chore (ai): rename DataStreamToSSETransformStream to JsonToSseTransformStream
122
+ - 35fc02c: chore (ui): rename RequestOptions to CompletionRequestOptions
123
+ - b983b51: feat (ai): support model message array in prompt
124
+
125
+ ### Minor Changes
126
+
127
+ - bcea599: feat (ai): add content to generateText result
128
+ - 48d675a: feat (ai): add content to streamText result
40
129
 
41
130
  ### Patch Changes
42
131
 
43
- - Updated dependencies [77b2097]
44
- - Updated dependencies [62181ef]
45
- - @ai-sdk/react@1.2.10
46
- - @ai-sdk/ui-utils@1.2.9
132
+ - e90d45d: chore (rsc): move HANGING_STREAM_WARNING_TIME constant into @ai-sdk/rsc package
133
+ - bc3109f: chore (ai): push stream-callbacks into langchain/llamaindex adapters
134
+ - Updated dependencies [87b828f]
135
+ - @ai-sdk/provider-utils@3.0.0-canary.16
136
+
137
+ ## 5.0.0-canary.19
138
+
139
+ ### Major Changes
140
+
141
+ - 2d03e19: chore (ai): remove StreamCallbacks.onCompletion
142
+ - 319b989: chore (ai): remove content from ui messages
143
+ - 441d042: chore (ui): data stream protocol v2 with SSEs
144
+ - dcc549b: remove StreamTextResult.mergeIntoDataStream method
145
+ rename DataStreamOptions.getErrorMessage to onError
146
+ add pipeTextStreamToResponse function
147
+ add createTextStreamResponse function
148
+ change createDataStreamResponse function to accept a DataStream and not a DataStreamWriter
149
+ change pipeDataStreamToResponse function to accept a DataStream and not a DataStreamWriter
150
+ change pipeDataStreamToResponse function to have a single parameter
151
+ - cb2b53a: chore (ai): refactor header preparation
152
+ - e244a78: chore (ai): remove StreamData and mergeStreams
153
+
154
+ ## 5.0.0-canary.18
47
155
 
48
- ## 4.3.10
156
+ ### Major Changes
157
+
158
+ - c60f895: chore (ai): remove useChat keepLastMessageOnError
159
+ - a662dea: chore (ai): remove sendExtraMessageFields
49
160
 
50
161
  ### Patch Changes
51
162
 
52
- - 0432959: feat (ai): add experimental prepareStep callback to generateText
163
+ - a571d6e: chore(provider-utils): move ToolResultContent to provider-utils
164
+ - 332167b: chore (ai): move maxSteps into UseChatOptions
165
+ - a8c8bd5: feat(embed-many): respect supportsParallelCalls & concurrency
166
+ - Updated dependencies [a571d6e]
167
+ - Updated dependencies [a8c8bd5]
168
+ - Updated dependencies [7979f7f]
169
+ - Updated dependencies [41fa418]
170
+ - @ai-sdk/provider-utils@3.0.0-canary.15
171
+ - @ai-sdk/provider@2.0.0-canary.14
172
+
173
+ ## 5.0.0-canary.17
174
+
175
+ ### Major Changes
176
+
177
+ - f04fb4a: chore (ai): replace useChat attachments with file ui parts
178
+ - fd1924b: chore (ai): remove redundant `mimeType` property
179
+ - fafc3f2: chore (ai): change file to parts to use urls instead of data
180
+ - 92cb0a2: chore (ai): rename CoreMessage to ModelMessage
53
181
 
54
- ## 4.3.9
182
+ ### Minor Changes
183
+
184
+ - c9ad635: feat (ai): add filename to file ui parts
55
185
 
56
186
  ### Patch Changes
57
187
 
58
- - b69a253: fix(utils/detect-mimetype): add support for detecting id3 tags
188
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
189
+
190
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
191
+
192
+ ```js
193
+ const prompt = 'Santa Claus driving a Cadillac';
194
+
195
+ const { providerMetadata } = await experimental_generateImage({
196
+ model: openai.image('dall-e-3'),
197
+ prompt,
198
+ });
199
+
200
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
201
+
202
+ console.log({
203
+ prompt,
204
+ revisedPrompt,
205
+ });
206
+ ```
207
+
208
+ - Updated dependencies [957b739]
209
+ - Updated dependencies [9bd5ab5]
210
+ - @ai-sdk/provider-utils@3.0.0-canary.14
211
+ - @ai-sdk/provider@2.0.0-canary.13
212
+
213
+ ## 5.0.0-canary.16
214
+
215
+ ### Major Changes
59
216
 
60
- ## 4.3.8
217
+ - ec78cdc: chore (ai): remove "data" UIMessage role
218
+ - 8b86e99: chore (ai): replace `Message` with `UIMessage`
219
+ - 2524fc7: chore (ai): remove ui message toolInvocations property
220
+ - 175b868: chore (ai): rename reasoning UI parts 'reasoning' property to 'text'
61
221
 
62
222
  ### Patch Changes
63
223
 
64
- - 6e8a73b: feat(providers/fal): add transcribe
224
+ - 9b4d074: feat(streamObject): add enum support
225
+ - 28ad69e: fix(react-native): support experimental_attachments without FileList global
226
+ - ec5933d: chore (ai/mcp): add `assertCapability` method to experimental MCP client
65
227
 
66
- ## 4.3.7
228
+ ## 5.0.0-canary.15
229
+
230
+ ### Major Changes
231
+
232
+ - 4bfe9ec: chore (ai): remove ui message reasoning property
233
+ - 2877a74: chore (ai): remove ui message data property
234
+
235
+ ### Patch Changes
236
+
237
+ - d9209ca: fix (image-model): `specificationVersion: v1` -> `v2`
238
+ - ea27cc6: chore (ai): use JSONValue definition from provider
239
+ - 0ff02bb: chore(provider-utils): move over jsonSchema
240
+ - Updated dependencies [7b3ae3f]
241
+ - Updated dependencies [0ff02bb]
242
+ - @ai-sdk/provider@2.0.0-canary.12
243
+ - @ai-sdk/provider-utils@3.0.0-canary.13
244
+
245
+ ## 5.0.0-canary.14
246
+
247
+ ### Patch Changes
248
+
249
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
250
+ - 4617fab: chore(embedding-models): remove remaining settings
251
+ - a76a62b: feat (ai): add experimental prepareStep callback to generateText
252
+ - Updated dependencies [9bf7291]
253
+ - Updated dependencies [4617fab]
254
+ - Updated dependencies [e030615]
255
+ - @ai-sdk/provider@2.0.0-canary.11
256
+ - @ai-sdk/provider-utils@3.0.0-canary.12
257
+
258
+ ## 5.0.0-canary.13
259
+
260
+ ### Patch Changes
261
+
262
+ - 14cb3be: chore(providers/llamaindex): extract to separate package
263
+ - 66962ed: fix(packages): export node10 compatible types
264
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
265
+ - Updated dependencies [66962ed]
266
+ - Updated dependencies [9301f86]
267
+ - Updated dependencies [a3f768e]
268
+ - @ai-sdk/provider-utils@3.0.0-canary.11
269
+ - @ai-sdk/provider@2.0.0-canary.10
270
+
271
+ ## 5.0.0-canary.12
272
+
273
+ ### Patch Changes
274
+
275
+ - Updated dependencies [e86be6f]
276
+ - @ai-sdk/provider@2.0.0-canary.9
277
+ - @ai-sdk/provider-utils@3.0.0-canary.10
278
+
279
+ ## 5.0.0-canary.11
280
+
281
+ ### Patch Changes
282
+
283
+ - 8e64e9c: feat (ai): allow using provider default temperature by specifying null
284
+ - Updated dependencies [95857aa]
285
+ - Updated dependencies [7ea4132]
286
+ - @ai-sdk/provider@2.0.0-canary.8
287
+ - @ai-sdk/provider-utils@3.0.0-canary.9
288
+
289
+ ## 5.0.0-canary.10
290
+
291
+ ### Patch Changes
292
+
293
+ - d8aeaef: feat(providers/fal): add transcribe
294
+ - 3e10408: fix(utils/detect-mimetype): add support for detecting id3 tags
295
+
296
+ ## 5.0.0-canary.9
297
+
298
+ ### Major Changes
299
+
300
+ - a847c3e: chore: rename reasoning to reasoningText etc
301
+ - b32e192: chore (ai): rename reasoning to reasoningText, rename reasoningDetails to reasoning (streamText, generateText)
302
+
303
+ ### Patch Changes
304
+
305
+ - cb9c9e4: remove deprecated `experimental_wrapLanguageModel`
306
+ - 8aa9e20: feat: add speech with experimental_generateSpeech
307
+ - Updated dependencies [5d142ab]
308
+ - Updated dependencies [b6b43c7]
309
+ - Updated dependencies [8aa9e20]
310
+ - Updated dependencies [3795467]
311
+ - @ai-sdk/provider-utils@3.0.0-canary.8
312
+ - @ai-sdk/provider@2.0.0-canary.7
313
+
314
+ ## 5.0.0-canary.8
315
+
316
+ ### Major Changes
317
+
318
+ - 14c9410: chore: refactor file towards source pattern (spec)
67
319
 
68
320
  ### Patch Changes
69
321
 
70
- - f4f3945: fix (ai/core): refactor `toResponseMessages` to filter out empty string/content
322
+ - 5d1e3ba: chore (ai): remove provider re-exports
323
+ - 26735b5: chore(embedding-model): add v2 interface
324
+ - 7827a49: fix (ai/core): refactor `toResponseMessages` to filter out empty string/content
325
+ - bd8a36c: feat(embedding-model-v2/embedMany): add response body field
326
+ - b6f9f3c: remove deprecated `CoreTool*` types
327
+ - 92c8e66: fix(ai/core): properly handle custom separator in provider registry
328
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
329
+ - 5bdff05: Removed deprecated `options.throwErrorForEmptyVectors` from `cosineSimilarity()`. Since `throwErrorForEmptyVectors` was the only option the entire `options` argument was removed.
330
+
331
+ ```diff
332
+ - cosineSimilarity(vector1, vector2, options)
333
+ +cosineSimilarity(vector1, vector2)
334
+ ```
335
+
336
+ - Updated dependencies [26735b5]
337
+ - Updated dependencies [443d8ec]
338
+ - Updated dependencies [14c9410]
339
+ - Updated dependencies [d9c98f4]
340
+ - Updated dependencies [c4a2fec]
341
+ - Updated dependencies [0054544]
342
+ - Updated dependencies [9e9c809]
343
+ - Updated dependencies [32831c6]
344
+ - Updated dependencies [d0f9495]
345
+ - Updated dependencies [fd65bc6]
346
+ - Updated dependencies [393138b]
347
+ - Updated dependencies [7182d14]
348
+ - @ai-sdk/provider@2.0.0-canary.6
349
+ - @ai-sdk/provider-utils@3.0.0-canary.7
350
+
351
+ ## 5.0.0-canary.7
352
+
353
+ ### Major Changes
71
354
 
72
- ## 4.3.6
355
+ - 6fba4c7: chore (ai): remove deprecated experimental_providerMetadata
356
+ - 1766ede: chore: rename maxTokens to maxOutputTokens
73
357
 
74
358
  ### Patch Changes
75
359
 
76
- - beef951: feat: add speech with experimental_generateSpeech
77
- - bd41167: fix(ai/core): properly handle custom separator in provider registry
78
- - Updated dependencies [beef951]
79
- - @ai-sdk/provider@1.1.3
80
- - @ai-sdk/provider-utils@2.2.7
81
- - @ai-sdk/ui-utils@1.2.8
82
- - @ai-sdk/react@1.2.9
360
+ - 0b78e17: chore(ai/generateObject): simplify function signature
361
+ - 3e3b9df: fix (ai/mcp): better support for zero-argument MCP tools
362
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
363
+ - Updated dependencies [411e483]
364
+ - Updated dependencies [79457bd]
365
+ - Updated dependencies [ad80501]
366
+ - Updated dependencies [1766ede]
367
+ - Updated dependencies [f10304b]
368
+ - @ai-sdk/provider@2.0.0-canary.5
369
+ - @ai-sdk/provider-utils@3.0.0-canary.6
83
370
 
84
- ## 4.3.5
371
+ ## 5.0.0-canary.6
85
372
 
86
373
  ### Patch Changes
87
374
 
88
- - 452bf12: fix (ai/mcp): better support for zero-argument MCP tools
375
+ - Updated dependencies [6f6bb89]
376
+ - @ai-sdk/provider@2.0.0-canary.4
377
+ - @ai-sdk/provider-utils@3.0.0-canary.5
89
378
 
90
- ## 4.3.4
379
+ ## 5.0.0-canary.5
91
380
 
92
381
  ### Patch Changes
93
382
 
94
- - 013faa8: core (ai): change transcription model mimeType to mediaType
95
- - Updated dependencies [013faa8]
96
- - @ai-sdk/provider@1.1.2
97
- - @ai-sdk/provider-utils@2.2.6
98
- - @ai-sdk/ui-utils@1.2.7
99
- - @ai-sdk/react@1.2.8
383
+ - b71fe8d: fix(ai): remove jsondiffpatch dependency
384
+ - d91b50d: chore(ui-utils): merge into ai package
385
+ - Updated dependencies [d1a1aa1]
386
+ - @ai-sdk/provider@2.0.0-canary.3
387
+ - @ai-sdk/provider-utils@3.0.0-canary.4
100
388
 
101
- ## 4.3.3
389
+ ## 5.0.0-canary.4
390
+
391
+ ### Major Changes
392
+
393
+ - e1cbf8a: chore(@ai-sdk/rsc): extract to separate package
102
394
 
103
395
  ### Patch Changes
104
396
 
105
- - 3e88f4d: fix (ai/mcp): prevent mutation of customEnv
106
- - c21fa6d: feat: add transcription with experimental_transcribe
107
- - Updated dependencies [c21fa6d]
108
- - @ai-sdk/provider-utils@2.2.5
109
- - @ai-sdk/provider@1.1.1
110
- - @ai-sdk/react@1.2.7
111
- - @ai-sdk/ui-utils@1.2.6
397
+ - 225f087: fix (ai/mcp): prevent mutation of customEnv
398
+ - a166433: feat: add transcription with experimental_transcribe
399
+ - 0a87932: core (ai): change transcription model mimeType to mediaType
400
+ - Updated dependencies [a166433]
401
+ - Updated dependencies [abf9a79]
402
+ - Updated dependencies [9f95b35]
403
+ - Updated dependencies [0a87932]
404
+ - Updated dependencies [6dc848c]
405
+ - @ai-sdk/provider-utils@3.0.0-canary.3
406
+ - @ai-sdk/provider@2.0.0-canary.2
407
+ - @ai-sdk/ui-utils@2.0.0-canary.3
112
408
 
113
- ## 4.3.2
409
+ ## 5.0.0-canary.3
114
410
 
115
411
  ### Patch Changes
116
412
 
117
- - 665a567: fix (core): improve error handling in streamText's consumeStream method
413
+ - Updated dependencies [c57e248]
414
+ - Updated dependencies [33f4a6a]
415
+ - @ai-sdk/provider@2.0.0-canary.1
416
+ - @ai-sdk/provider-utils@3.0.0-canary.2
417
+ - @ai-sdk/ui-utils@2.0.0-canary.2
118
418
 
119
- ## 4.3.1
419
+ ## 5.0.0-canary.2
120
420
 
121
421
  ### Patch Changes
122
422
 
123
- - 3d1bd38: feat(smooth-stream): chunking callbacks
423
+ - bd398e4: fix (core): improve error handling in streamText's consumeStream method
124
424
 
125
- ## 4.3.0
425
+ ## 5.0.0-canary.1
126
426
 
127
427
  ### Minor Changes
128
428
 
129
- - 772a2d7: feat (core): Add finishReason field to NoObjectGeneratedError
429
+ - b7eae2d: feat (core): Add finishReason field to NoObjectGeneratedError
130
430
 
131
431
  ### Patch Changes
132
432
 
133
- - Updated dependencies [2c19b9a]
134
- - @ai-sdk/provider-utils@2.2.4
135
- - @ai-sdk/react@1.2.6
136
- - @ai-sdk/ui-utils@1.2.5
433
+ - c22ad54: feat(smooth-stream): chunking callbacks
434
+ - a4f3007: chore: remove ai/react
435
+ - Updated dependencies [060370c]
436
+ - Updated dependencies [0c0c0b3]
437
+ - Updated dependencies [63d791d]
438
+ - @ai-sdk/provider-utils@3.0.0-canary.1
439
+ - @ai-sdk/ui-utils@2.0.0-canary.1
440
+
441
+ ## 5.0.0-canary.0
442
+
443
+ ### Major Changes
137
444
 
138
- ## 4.2.11
445
+ - d5f588f: AI SDK 5
446
+ - 9477ebb: chore (ui): remove useAssistant hook (**breaking change**)
139
447
 
140
448
  ### Patch Changes
141
449
 
142
- - c45d100: fix (core): send buffered text in smooth stream when stream parts change
450
+ - 8026705: fix (core): send buffered text in smooth stream when stream parts change
451
+ - Updated dependencies [d5f588f]
452
+ - Updated dependencies [9477ebb]
453
+ - @ai-sdk/provider-utils@3.0.0-canary.0
454
+ - @ai-sdk/ui-utils@2.0.0-canary.0
455
+ - @ai-sdk/react@2.0.0-canary.0
456
+ - @ai-sdk/provider@2.0.0-canary.0
143
457
 
144
458
  ## 4.2.10
145
459
 
package/README.md CHANGED
@@ -106,7 +106,7 @@ export async function POST(req: Request) {
106
106
  messages,
107
107
  });
108
108
 
109
- return result.toDataStreamResponse();
109
+ return result.toUIMessageStreamResponse();
110
110
  }
111
111
  ```
112
112