ai 4.3.14 → 5.0.0-alpha.1

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