ai 0.0.0-85f9a635-20240518005312 → 0.0.0-8777c42a-20250115032312

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 (58) hide show
  1. package/CHANGELOG.md +2863 -0
  2. package/README.md +99 -22
  3. package/dist/index.d.mts +1925 -1592
  4. package/dist/index.d.ts +1925 -1592
  5. package/dist/index.js +5500 -2961
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +5497 -2916
  8. package/dist/index.mjs.map +1 -1
  9. package/package.json +39 -100
  10. package/react/dist/index.d.mts +8 -563
  11. package/react/dist/index.d.ts +8 -580
  12. package/react/dist/index.js +7 -1395
  13. package/react/dist/index.js.map +1 -1
  14. package/react/dist/index.mjs +12 -1383
  15. package/react/dist/index.mjs.map +1 -1
  16. package/rsc/dist/index.d.ts +340 -197
  17. package/rsc/dist/rsc-server.d.mts +339 -197
  18. package/rsc/dist/rsc-server.mjs +1295 -1347
  19. package/rsc/dist/rsc-server.mjs.map +1 -1
  20. package/rsc/dist/rsc-shared.d.mts +30 -23
  21. package/rsc/dist/rsc-shared.mjs +69 -105
  22. package/rsc/dist/rsc-shared.mjs.map +1 -1
  23. package/test/dist/index.d.mts +67 -0
  24. package/test/dist/index.d.ts +67 -0
  25. package/test/dist/index.js +131 -0
  26. package/test/dist/index.js.map +1 -0
  27. package/test/dist/index.mjs +101 -0
  28. package/test/dist/index.mjs.map +1 -0
  29. package/prompts/dist/index.d.mts +0 -324
  30. package/prompts/dist/index.d.ts +0 -324
  31. package/prompts/dist/index.js +0 -178
  32. package/prompts/dist/index.js.map +0 -1
  33. package/prompts/dist/index.mjs +0 -146
  34. package/prompts/dist/index.mjs.map +0 -1
  35. package/react/dist/index.server.d.mts +0 -17
  36. package/react/dist/index.server.d.ts +0 -17
  37. package/react/dist/index.server.js +0 -50
  38. package/react/dist/index.server.js.map +0 -1
  39. package/react/dist/index.server.mjs +0 -23
  40. package/react/dist/index.server.mjs.map +0 -1
  41. package/solid/dist/index.d.mts +0 -408
  42. package/solid/dist/index.d.ts +0 -408
  43. package/solid/dist/index.js +0 -1072
  44. package/solid/dist/index.js.map +0 -1
  45. package/solid/dist/index.mjs +0 -1044
  46. package/solid/dist/index.mjs.map +0 -1
  47. package/svelte/dist/index.d.mts +0 -484
  48. package/svelte/dist/index.d.ts +0 -484
  49. package/svelte/dist/index.js +0 -1778
  50. package/svelte/dist/index.js.map +0 -1
  51. package/svelte/dist/index.mjs +0 -1749
  52. package/svelte/dist/index.mjs.map +0 -1
  53. package/vue/dist/index.d.mts +0 -402
  54. package/vue/dist/index.d.ts +0 -402
  55. package/vue/dist/index.js +0 -1072
  56. package/vue/dist/index.js.map +0 -1
  57. package/vue/dist/index.mjs +0 -1034
  58. package/vue/dist/index.mjs.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,2863 @@
1
+ # ai
2
+
3
+ ## 0.0.0-8777c42a-20250115032312
4
+
5
+ ### Patch Changes
6
+
7
+ - 8777c42: console log latency
8
+
9
+ ## 4.0.34
10
+
11
+ ### Patch Changes
12
+
13
+ - 2495973: feat (ai/core): use openai compatible mode for json schema conversion
14
+ - 2495973: fix (ai/core): duplicate instead of using reference in json schema
15
+ - Updated dependencies [2495973]
16
+ - Updated dependencies [2495973]
17
+ - @ai-sdk/ui-utils@1.0.9
18
+ - @ai-sdk/react@1.0.10
19
+
20
+ ## 4.0.33
21
+
22
+ ### Patch Changes
23
+
24
+ - 5510ee7: feat (ai/core): add stopStream option to streamText transforms
25
+
26
+ ## 4.0.32
27
+
28
+ ### Patch Changes
29
+
30
+ - de66619: feat (ai/core): add tool call id to ToolExecution error
31
+
32
+ ## 4.0.31
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [90fb95a]
37
+ - Updated dependencies [e6dfef4]
38
+ - Updated dependencies [6636db6]
39
+ - @ai-sdk/provider-utils@2.0.7
40
+ - @ai-sdk/react@1.0.9
41
+ - @ai-sdk/ui-utils@1.0.8
42
+
43
+ ## 4.0.30
44
+
45
+ ### Patch Changes
46
+
47
+ - e4ce80c: fix (ai/core): prevent onFinish from masking stream errors
48
+
49
+ ## 4.0.29
50
+
51
+ ### Patch Changes
52
+
53
+ - a92f5f6: feat (ai/core): generate many images with parallel model calls
54
+
55
+ ## 4.0.28
56
+
57
+ ### Patch Changes
58
+
59
+ - 19a2ce7: feat (ai/core): add aspectRatio and seed options to generateImage
60
+ - 6337688: feat: change image generation errors to warnings
61
+ - 8b422ea: feat (ai/core): add caching to generated images
62
+ - Updated dependencies [19a2ce7]
63
+ - Updated dependencies [19a2ce7]
64
+ - Updated dependencies [6337688]
65
+ - @ai-sdk/provider@1.0.4
66
+ - @ai-sdk/provider-utils@2.0.6
67
+ - @ai-sdk/ui-utils@1.0.7
68
+ - @ai-sdk/react@1.0.8
69
+
70
+ ## 4.0.27
71
+
72
+ ### Patch Changes
73
+
74
+ - a56734f: feat (ai/core): export simulateReadableStream in ai package
75
+ - 9589601: feat (ai/core): support null delay in smoothStream
76
+ - e3cc23a: feat (ai/core): support regexp chunking pattern in smoothStream
77
+ - e463e73: feat (ai/core): support skipping delays in simulateReadableStream
78
+
79
+ ## 4.0.26
80
+
81
+ ### Patch Changes
82
+
83
+ - a8f3242: feat (ai/core): add line chunking mode to smoothStream
84
+
85
+ ## 4.0.25
86
+
87
+ ### Patch Changes
88
+
89
+ - 0823899: fix (ai/core): throw error when accessing output when no output is defined in generateText (breaking/experimental)
90
+
91
+ ## 4.0.24
92
+
93
+ ### Patch Changes
94
+
95
+ - ae0485b: feat (ai/core): add experimental output setting to streamText
96
+
97
+ ## 4.0.23
98
+
99
+ ### Patch Changes
100
+
101
+ - bc4cd19: feat (ai/core): consolidate whitespace in smooth stream
102
+
103
+ ## 4.0.22
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies [5ed5e45]
108
+ - @ai-sdk/provider-utils@2.0.5
109
+ - @ai-sdk/provider@1.0.3
110
+ - @ai-sdk/react@1.0.7
111
+ - @ai-sdk/ui-utils@1.0.6
112
+
113
+ ## 4.0.21
114
+
115
+ ### Patch Changes
116
+
117
+ - a8669a2: fix (ai/core): prefer auto-detected image mimetype
118
+ - 6fb3e91: fix (ai/core): include type in generateText toolResults result property.
119
+
120
+ ## 4.0.20
121
+
122
+ ### Patch Changes
123
+
124
+ - da9d240: fix (ai/core): suppress errors caused by writing to closed stream
125
+ - 6f1bfde: fix (ai/core): invoke streamText tool call repair when tool cannot be found
126
+
127
+ ## 4.0.19
128
+
129
+ ### Patch Changes
130
+
131
+ - c3a6065: fix (ai/core): apply transform before callbacks and resolvables
132
+
133
+ ## 4.0.18
134
+
135
+ ### Patch Changes
136
+
137
+ - 304e6d3: feat (ai/core): standardize generateObject, streamObject, and output errors to NoObjectGeneratedError
138
+ - 304e6d3: feat (ai/core): add additional information to NoObjectGeneratedError
139
+
140
+ ## 4.0.17
141
+
142
+ ### Patch Changes
143
+
144
+ - 54bbf21: fix (ai/core): change streamText.experimental_transform signature to support tool type inference
145
+
146
+ ## 4.0.16
147
+
148
+ ### Patch Changes
149
+
150
+ - e3fac3f: fix (ai/core): change smoothStream default delay to 10ms
151
+
152
+ ## 4.0.15
153
+
154
+ ### Patch Changes
155
+
156
+ - cc16a83: feat (ai/core): add smoothStream helper
157
+ - cc16a83: feat (ai/core): add experimental transform option to streamText
158
+
159
+ ## 4.0.14
160
+
161
+ ### Patch Changes
162
+
163
+ - 09a9cab: feat (ai/core): add experimental generateImage function
164
+ - Updated dependencies [09a9cab]
165
+ - @ai-sdk/provider@1.0.2
166
+ - @ai-sdk/provider-utils@2.0.4
167
+ - @ai-sdk/ui-utils@1.0.5
168
+ - @ai-sdk/react@1.0.6
169
+
170
+ ## 4.0.13
171
+
172
+ ### Patch Changes
173
+
174
+ - 9f32213: feat (ai/core): add experimental tool call repair
175
+
176
+ ## 4.0.12
177
+
178
+ ### Patch Changes
179
+
180
+ - 5167bec: fix (ai/core): forward streamText errors as error parts
181
+ - 0984f0b: feat (ai/core): add ToolExecutionError type
182
+ - Updated dependencies [0984f0b]
183
+ - @ai-sdk/provider-utils@2.0.3
184
+ - @ai-sdk/react@1.0.5
185
+ - @ai-sdk/ui-utils@1.0.4
186
+
187
+ ## 4.0.11
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies [953469c]
192
+ - Updated dependencies [a3dd2ed]
193
+ - @ai-sdk/ui-utils@1.0.3
194
+ - @ai-sdk/react@1.0.4
195
+
196
+ ## 4.0.10
197
+
198
+ ### Patch Changes
199
+
200
+ - 913872d: fix (ai/core): track promise from async createDataStream.execute
201
+
202
+ ## 4.0.9
203
+
204
+ ### Patch Changes
205
+
206
+ - fda9695: feat (ai/core): reworked data stream management
207
+
208
+ ## 4.0.8
209
+
210
+ ### Patch Changes
211
+
212
+ - a803d76: feat (ai/core): pass toolCallId option into tool execute function
213
+
214
+ ## 4.0.7
215
+
216
+ ### Patch Changes
217
+
218
+ - 5b4f07b: fix (ai/core): change default error message for data streams to "An error occurred."
219
+
220
+ ## 4.0.6
221
+
222
+ ### Patch Changes
223
+
224
+ - fc18132: feat (ai/core): experimental output for generateText
225
+ - 2779f6d: fix (ai/core): do not send maxRetries into providers
226
+
227
+ ## 4.0.5
228
+
229
+ ### Patch Changes
230
+
231
+ - Updated dependencies [630ac31]
232
+ - @ai-sdk/react@1.0.3
233
+
234
+ ## 4.0.4
235
+
236
+ ### Patch Changes
237
+
238
+ - 6ff6689: fix (ai): trigger onFinal when stream adapter finishes
239
+ - 6ff6689: chore (ai): deprecate onCompletion (stream callbacks)
240
+
241
+ ## 4.0.3
242
+
243
+ ### Patch Changes
244
+
245
+ - Updated dependencies [88b364b]
246
+ - Updated dependencies [b446ae5]
247
+ - @ai-sdk/ui-utils@1.0.2
248
+ - @ai-sdk/provider@1.0.1
249
+ - @ai-sdk/react@1.0.2
250
+ - @ai-sdk/provider-utils@2.0.2
251
+
252
+ ## 4.0.2
253
+
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies [c3ab5de]
257
+ - @ai-sdk/provider-utils@2.0.1
258
+ - @ai-sdk/react@1.0.1
259
+ - @ai-sdk/ui-utils@1.0.1
260
+
261
+ ## 4.0.1
262
+
263
+ ### Patch Changes
264
+
265
+ - b117255: feat (ai/core): add messages to tool call options
266
+
267
+ ## 4.0.0
268
+
269
+ ### Major Changes
270
+
271
+ - 4e38b38: chore (ai): remove LanguageModelResponseMetadataWithHeaders type
272
+ - 8bf5756: chore: remove legacy function/tool calling
273
+ - f0cb69d: chore (ai/core): remove experimental function exports
274
+ - da8c609: chore (ai): remove Tokens RSC helper
275
+ - cbab571: chore (ai): remove ExperimentalXXXMessage types
276
+ - b469a7e: chore: remove isXXXError methods
277
+ - 54cb888: chore (ai): remove experimental_StreamData export
278
+ - 4d61295: chore (ai): remove streamToResponse and streamingTextResponse
279
+ - 9a3d741: chore (ai): remove ExperimentalTool export
280
+ - 064257d: chore (ai/core): rename simulateReadableStream values parameter to chunks
281
+ - 60e69ed: chore (ai/core): remove ai-stream related methods from streamText
282
+ - a4f8ce9: chore (ai): AssistantResponse cleanups
283
+ - d3ae4f6: chore (ui/react): remove useObject setInput helper
284
+ - 7264b0a: chore (ai): remove responseMessages property from streamText/generateText result
285
+ - b801982: chore (ai/core): remove init option from streamText result methods
286
+ - f68d7b1: chore (ai/core): streamObject returns result immediately (no Promise)
287
+ - 6090cea: chore (ai): remove rawResponse from generate/stream result objects
288
+ - 073f282: chore (ai): remove AIStream and related exports
289
+ - 1c58337: chore (ai): remove 2.x prompt helpers
290
+ - a40a93d: chore (ai/ui): remove vue, svelte, solid re-export and dependency
291
+ - a7ad35a: chore: remove legacy providers & rsc render
292
+ - c0ddc24: chore (ai): remove toJSON method from AI SDK errors
293
+ - 007cb81: chore (ai): change `streamText` warnings result to Promise
294
+ - effbce3: chore (ai): remove responseMessage from streamText onFinish callback
295
+ - 545d133: chore (ai): remove deprecated roundtrip settings from streamText / generateText
296
+ - 7e89ccb: chore: remove nanoid export
297
+ - f967199: chore (ai/core): streamText returns result immediately (no Promise)
298
+ - 62d08fd: chore (ai): remove TokenUsage, CompletionTokenUsage, and EmbeddingTokenUsage types
299
+ - e5d2ce8: chore (ai): remove deprecated provider registry exports
300
+ - 70ce742: chore (ai): remove experimental_continuationSteps option
301
+ - 2f09717: chore (ai): remove deprecated telemetry data
302
+ - 0827bf9: chore (ai): remove LangChain adapter `toAIStream` method
303
+
304
+ ### Patch Changes
305
+
306
+ - dce4158: chore (dependencies): update eventsource-parser to 3.0.0
307
+ - f0ec721: chore (ai): remove openai peer dependency
308
+ - f9bb30c: chore (ai): remove unnecessary dev dependencies
309
+ - b053413: chore (ui): refactorings & README update
310
+ - Updated dependencies [e117b54]
311
+ - Updated dependencies [8bf5756]
312
+ - Updated dependencies [b469a7e]
313
+ - Updated dependencies [79c6dd9]
314
+ - Updated dependencies [9f81e66]
315
+ - Updated dependencies [70f28f6]
316
+ - Updated dependencies [dce4158]
317
+ - Updated dependencies [d3ae4f6]
318
+ - Updated dependencies [68d30e9]
319
+ - Updated dependencies [7814c4b]
320
+ - Updated dependencies [ca3e586]
321
+ - Updated dependencies [c0ddc24]
322
+ - Updated dependencies [fe4f109]
323
+ - Updated dependencies [84edae5]
324
+ - Updated dependencies [b1da952]
325
+ - Updated dependencies [04d3747]
326
+ - Updated dependencies [dce4158]
327
+ - Updated dependencies [7e89ccb]
328
+ - Updated dependencies [8426f55]
329
+ - Updated dependencies [db46ce5]
330
+ - Updated dependencies [b053413]
331
+ - @ai-sdk/react@1.0.0
332
+ - @ai-sdk/ui-utils@1.0.0
333
+ - @ai-sdk/provider-utils@2.0.0
334
+ - @ai-sdk/provider@1.0.0
335
+
336
+ ## 4.0.0-canary.13
337
+
338
+ ### Major Changes
339
+
340
+ - 064257d: chore (ai/core): rename simulateReadableStream values parameter to chunks
341
+
342
+ ### Patch Changes
343
+
344
+ - Updated dependencies [79c6dd9]
345
+ - Updated dependencies [04d3747]
346
+ - @ai-sdk/react@1.0.0-canary.9
347
+ - @ai-sdk/ui-utils@1.0.0-canary.9
348
+
349
+ ## 4.0.0-canary.12
350
+
351
+ ### Patch Changes
352
+
353
+ - b053413: chore (ui): refactorings & README update
354
+ - Updated dependencies [b053413]
355
+ - @ai-sdk/ui-utils@1.0.0-canary.8
356
+ - @ai-sdk/react@1.0.0-canary.8
357
+
358
+ ## 4.0.0-canary.11
359
+
360
+ ### Major Changes
361
+
362
+ - f68d7b1: chore (ai/core): streamObject returns result immediately (no Promise)
363
+ - f967199: chore (ai/core): streamText returns result immediately (no Promise)
364
+
365
+ ## 4.0.0-canary.10
366
+
367
+ ### Major Changes
368
+
369
+ - effbce3: chore (ai): remove responseMessage from streamText onFinish callback
370
+
371
+ ### Patch Changes
372
+
373
+ - Updated dependencies [fe4f109]
374
+ - @ai-sdk/ui-utils@1.0.0-canary.7
375
+ - @ai-sdk/react@1.0.0-canary.7
376
+
377
+ ## 4.0.0-canary.9
378
+
379
+ ### Patch Changes
380
+
381
+ - f0ec721: chore (ai): remove openai peer dependency
382
+
383
+ ## 4.0.0-canary.8
384
+
385
+ ### Major Changes
386
+
387
+ - 007cb81: chore (ai): change `streamText` warnings result to Promise
388
+
389
+ ### Patch Changes
390
+
391
+ - Updated dependencies [70f28f6]
392
+ - @ai-sdk/ui-utils@1.0.0-canary.6
393
+ - @ai-sdk/react@1.0.0-canary.6
394
+
395
+ ## 4.0.0-canary.7
396
+
397
+ ### Major Changes
398
+
399
+ - 4e38b38: chore (ai): remove LanguageModelResponseMetadataWithHeaders type
400
+ - 54cb888: chore (ai): remove experimental_StreamData export
401
+ - 9a3d741: chore (ai): remove ExperimentalTool export
402
+ - a4f8ce9: chore (ai): AssistantResponse cleanups
403
+ - 7264b0a: chore (ai): remove responseMessages property from streamText/generateText result
404
+ - 62d08fd: chore (ai): remove TokenUsage, CompletionTokenUsage, and EmbeddingTokenUsage types
405
+ - e5d2ce8: chore (ai): remove deprecated provider registry exports
406
+ - 70ce742: chore (ai): remove experimental_continuationSteps option
407
+ - 0827bf9: chore (ai): remove LangChain adapter `toAIStream` method
408
+
409
+ ## 4.0.0-canary.6
410
+
411
+ ### Major Changes
412
+
413
+ - b801982: chore (ai/core): remove init option from streamText result methods
414
+
415
+ ### Patch Changes
416
+
417
+ - f9bb30c: chore (ai): remove unnecessary dev dependencies
418
+
419
+ ## 4.0.0-canary.5
420
+
421
+ ### Major Changes
422
+
423
+ - 4d61295: chore (ai): remove streamToResponse and streamingTextResponse
424
+ - d3ae4f6: chore (ui/react): remove useObject setInput helper
425
+ - 6090cea: chore (ai): remove rawResponse from generate/stream result objects
426
+ - 2f09717: chore (ai): remove deprecated telemetry data
427
+
428
+ ### Patch Changes
429
+
430
+ - Updated dependencies [9f81e66]
431
+ - Updated dependencies [d3ae4f6]
432
+ - Updated dependencies [8426f55]
433
+ - @ai-sdk/ui-utils@1.0.0-canary.5
434
+ - @ai-sdk/react@1.0.0-canary.5
435
+ - @ai-sdk/provider-utils@2.0.0-canary.3
436
+
437
+ ## 4.0.0-canary.4
438
+
439
+ ### Major Changes
440
+
441
+ - f0cb69d: chore (ai/core): remove experimental function exports
442
+ - da8c609: chore (ai): remove Tokens RSC helper
443
+ - cbab571: chore (ai): remove ExperimentalXXXMessage types
444
+ - 60e69ed: chore (ai/core): remove ai-stream related methods from streamText
445
+ - 073f282: chore (ai): remove AIStream and related exports
446
+ - 545d133: chore (ai): remove deprecated roundtrip settings from streamText / generateText
447
+
448
+ ### Patch Changes
449
+
450
+ - dce4158: chore (dependencies): update eventsource-parser to 3.0.0
451
+ - Updated dependencies [dce4158]
452
+ - Updated dependencies [ca3e586]
453
+ - Updated dependencies [dce4158]
454
+ - @ai-sdk/provider-utils@2.0.0-canary.2
455
+ - @ai-sdk/react@1.0.0-canary.4
456
+ - @ai-sdk/ui-utils@1.0.0-canary.4
457
+
458
+ ## 4.0.0-canary.3
459
+
460
+ ### Patch Changes
461
+
462
+ - Updated dependencies [68d30e9]
463
+ - Updated dependencies [b1da952]
464
+ - @ai-sdk/react@1.0.0-canary.3
465
+ - @ai-sdk/provider-utils@2.0.0-canary.1
466
+ - @ai-sdk/ui-utils@1.0.0-canary.3
467
+
468
+ ## 4.0.0-canary.2
469
+
470
+ ### Major Changes
471
+
472
+ - b469a7e: chore: remove isXXXError methods
473
+ - c0ddc24: chore (ai): remove toJSON method from AI SDK errors
474
+
475
+ ### Patch Changes
476
+
477
+ - Updated dependencies [e117b54]
478
+ - Updated dependencies [b469a7e]
479
+ - Updated dependencies [7814c4b]
480
+ - Updated dependencies [c0ddc24]
481
+ - Updated dependencies [db46ce5]
482
+ - @ai-sdk/react@1.0.0-canary.2
483
+ - @ai-sdk/provider-utils@2.0.0-canary.0
484
+ - @ai-sdk/provider@1.0.0-canary.0
485
+ - @ai-sdk/ui-utils@1.0.0-canary.2
486
+
487
+ ## 4.0.0-canary.1
488
+
489
+ ### Major Changes
490
+
491
+ - 8bf5756: chore: remove legacy function/tool calling
492
+
493
+ ### Patch Changes
494
+
495
+ - 1c58337: chore (ai): remove 2.x prompt helpers
496
+ - Updated dependencies [8bf5756]
497
+ - @ai-sdk/ui-utils@1.0.0-canary.1
498
+ - @ai-sdk/react@1.0.0-canary.1
499
+
500
+ ## 4.0.0-canary.0
501
+
502
+ ### Major Changes
503
+
504
+ - a40a93d: chore (ai/ui): remove vue, svelte, solid re-export and dependency
505
+
506
+ ### Patch Changes
507
+
508
+ - a7ad35a: chore: remove legacy providers & rsc render
509
+ - 7e89ccb: chore: remove nanoid export
510
+ - Updated dependencies [84edae5]
511
+ - Updated dependencies [7e89ccb]
512
+ - @ai-sdk/react@1.0.0-canary.0
513
+ - @ai-sdk/ui-utils@1.0.0-canary.0
514
+
515
+ ## 3.4.33
516
+
517
+ ### Patch Changes
518
+
519
+ - ac380e3: fix (provider/anthropic): continuation mode with 3+ steps
520
+
521
+ ## 3.4.32
522
+
523
+ ### Patch Changes
524
+
525
+ - 6bb9e51: fix (ai/core): expose response.messages in streamText
526
+
527
+ ## 3.4.31
528
+
529
+ ### Patch Changes
530
+
531
+ - Updated dependencies [2dfb93e]
532
+ - @ai-sdk/react@0.0.70
533
+
534
+ ## 3.4.30
535
+
536
+ ### Patch Changes
537
+
538
+ - Updated dependencies [a85c965]
539
+ - @ai-sdk/ui-utils@0.0.50
540
+ - @ai-sdk/react@0.0.69
541
+ - @ai-sdk/solid@0.0.54
542
+ - @ai-sdk/svelte@0.0.57
543
+ - @ai-sdk/vue@0.0.59
544
+
545
+ ## 3.4.29
546
+
547
+ ### Patch Changes
548
+
549
+ - 54b56f7: feat (ai/core): send tool and tool choice telemetry data
550
+
551
+ ## 3.4.28
552
+
553
+ ### Patch Changes
554
+
555
+ - 29f1390: feat (ai/test): add simulateReadableStream helper
556
+
557
+ ## 3.4.27
558
+
559
+ ### Patch Changes
560
+
561
+ - fa772ae: feat (ai/core): automatically convert ui messages to core messages
562
+
563
+ ## 3.4.26
564
+
565
+ ### Patch Changes
566
+
567
+ - 57f39ea: feat (ai/core): support multi-modal tool results in convertToCoreMessages
568
+
569
+ ## 3.4.25
570
+
571
+ ### Patch Changes
572
+
573
+ - 6e0fa1c: fix (ai/core): wait for tool results to arrive before sending finish event
574
+
575
+ ## 3.4.24
576
+
577
+ ### Patch Changes
578
+
579
+ - d92fd9f: feat (ui/svelte): support Svelte 5 peer dependency
580
+ - Updated dependencies [d92fd9f]
581
+ - @ai-sdk/svelte@0.0.56
582
+
583
+ ## 3.4.23
584
+
585
+ ### Patch Changes
586
+
587
+ - 8301e41: fix (ai/react): update React peer dependency version to allow rc releases.
588
+ - Updated dependencies [8301e41]
589
+ - @ai-sdk/react@0.0.68
590
+
591
+ ## 3.4.22
592
+
593
+ ### Patch Changes
594
+
595
+ - Updated dependencies [3bf8da0]
596
+ - @ai-sdk/ui-utils@0.0.49
597
+ - @ai-sdk/react@0.0.67
598
+ - @ai-sdk/solid@0.0.53
599
+ - @ai-sdk/svelte@0.0.55
600
+ - @ai-sdk/vue@0.0.58
601
+
602
+ ## 3.4.21
603
+
604
+ ### Patch Changes
605
+
606
+ - 3954471: (experimental) fix passing "experimental_toToolResultContent" into PoolResultPart
607
+
608
+ ## 3.4.20
609
+
610
+ ### Patch Changes
611
+
612
+ - aa98cdb: chore: more flexible dependency versioning
613
+ - 1486128: feat: add supportsUrl to language model specification
614
+ - 3b1b69a: feat: provider-defined tools
615
+ - 85b98da: revert fix (ai/core): handle tool calls without results in message conversion
616
+ - 7ceed77: feat (ai/core): expose response message for each step
617
+ - 811a317: feat (ai/core): multi-part tool results (incl. images)
618
+ - Updated dependencies [aa98cdb]
619
+ - Updated dependencies [1486128]
620
+ - Updated dependencies [7b937c5]
621
+ - Updated dependencies [3b1b69a]
622
+ - Updated dependencies [811a317]
623
+ - @ai-sdk/provider-utils@1.0.22
624
+ - @ai-sdk/provider@0.0.26
625
+ - @ai-sdk/ui-utils@0.0.48
626
+ - @ai-sdk/svelte@0.0.54
627
+ - @ai-sdk/react@0.0.66
628
+ - @ai-sdk/vue@0.0.57
629
+ - @ai-sdk/solid@0.0.52
630
+
631
+ ## 3.4.19
632
+
633
+ ### Patch Changes
634
+
635
+ - b9b0d7b: feat (ai): access raw request body
636
+ - Updated dependencies [b9b0d7b]
637
+ - @ai-sdk/provider@0.0.25
638
+ - @ai-sdk/provider-utils@1.0.21
639
+ - @ai-sdk/ui-utils@0.0.47
640
+ - @ai-sdk/react@0.0.65
641
+ - @ai-sdk/solid@0.0.51
642
+ - @ai-sdk/svelte@0.0.53
643
+ - @ai-sdk/vue@0.0.56
644
+
645
+ ## 3.4.18
646
+
647
+ ### Patch Changes
648
+
649
+ - 95c67b4: fix (ai/core): handle tool calls without results in message conversion
650
+
651
+ ## 3.4.17
652
+
653
+ ### Patch Changes
654
+
655
+ - e4ff512: fix (core): prevent unnecessary input/output serialization when telemetry is not enabled
656
+
657
+ ## 3.4.16
658
+
659
+ ### Patch Changes
660
+
661
+ - 01dcc44: feat (ai/core): add experimental activeTools option to generateText and streamText
662
+
663
+ ## 3.4.15
664
+
665
+ ### Patch Changes
666
+
667
+ - Updated dependencies [98a3b08]
668
+ - @ai-sdk/react@0.0.64
669
+
670
+ ## 3.4.14
671
+
672
+ ### Patch Changes
673
+
674
+ - e930f40: feat (ai/core): expose core tool result and tool call types
675
+
676
+ ## 3.4.13
677
+
678
+ ### Patch Changes
679
+
680
+ - fc39158: fix (ai/core): add abortSignal to tool helper function
681
+
682
+ ## 3.4.12
683
+
684
+ ### Patch Changes
685
+
686
+ - a23da5b: feat (ai/core): forward abort signal to tools
687
+
688
+ ## 3.4.11
689
+
690
+ ### Patch Changes
691
+
692
+ - caedcda: feat (ai/ui): add setData helper to useChat
693
+ - Updated dependencies [caedcda]
694
+ - @ai-sdk/svelte@0.0.52
695
+ - @ai-sdk/react@0.0.63
696
+ - @ai-sdk/solid@0.0.50
697
+ - @ai-sdk/vue@0.0.55
698
+
699
+ ## 3.4.10
700
+
701
+ ### Patch Changes
702
+
703
+ - 0b557d7: feat (ai/core): add tracer option to telemetry settings
704
+ - 44f6bc5: feat (ai/core): expose StepResult type
705
+
706
+ ## 3.4.9
707
+
708
+ ### Patch Changes
709
+
710
+ - d347538: fix (ai/core): export FilePart interface
711
+
712
+ ## 3.4.8
713
+
714
+ ### Patch Changes
715
+
716
+ - Updated dependencies [b5f577e]
717
+ - @ai-sdk/vue@0.0.54
718
+
719
+ ## 3.4.7
720
+
721
+ ### Patch Changes
722
+
723
+ - db04700: feat (core): support converting attachments to file parts
724
+ - 988707c: feat (ai/core): automatically download files from urls
725
+
726
+ ## 3.4.6
727
+
728
+ ### Patch Changes
729
+
730
+ - d595d0d: feat (ai/core): file content parts
731
+ - Updated dependencies [d595d0d]
732
+ - @ai-sdk/provider@0.0.24
733
+ - @ai-sdk/provider-utils@1.0.20
734
+ - @ai-sdk/ui-utils@0.0.46
735
+ - @ai-sdk/react@0.0.62
736
+ - @ai-sdk/solid@0.0.49
737
+ - @ai-sdk/svelte@0.0.51
738
+ - @ai-sdk/vue@0.0.53
739
+
740
+ ## 3.4.5
741
+
742
+ ### Patch Changes
743
+
744
+ - cd77c5d: feat (ai/core): add isContinued to steps
745
+ - Updated dependencies [cd77c5d]
746
+ - @ai-sdk/ui-utils@0.0.45
747
+ - @ai-sdk/react@0.0.61
748
+ - @ai-sdk/solid@0.0.48
749
+ - @ai-sdk/svelte@0.0.50
750
+ - @ai-sdk/vue@0.0.52
751
+
752
+ ## 3.4.4
753
+
754
+ ### Patch Changes
755
+
756
+ - 4db074b: fix (ai/core): correct whitespace in generateText continueSteps
757
+ - 1297e1b: fix (ai/core): correct whitespace in streamText continueSteps
758
+
759
+ ## 3.4.3
760
+
761
+ ### Patch Changes
762
+
763
+ - b270ae3: feat (ai/core): streamText continueSteps (experimental)
764
+ - b270ae3: chore (ai/core): rename generateText continuationSteps to continueSteps
765
+
766
+ ## 3.4.2
767
+
768
+ ### Patch Changes
769
+
770
+ - e6c7e98: feat (ai/core): add continuationSteps to generateText
771
+
772
+ ## 3.4.1
773
+
774
+ ### Patch Changes
775
+
776
+ - Updated dependencies [7e7104f]
777
+ - @ai-sdk/react@0.0.60
778
+
779
+ ## 3.4.0
780
+
781
+ ### Minor Changes
782
+
783
+ - c0cea03: release (ai): 3.4
784
+
785
+ ## 3.3.44
786
+
787
+ ### Patch Changes
788
+
789
+ - Updated dependencies [d3933e0]
790
+ - @ai-sdk/vue@0.0.51
791
+
792
+ ## 3.3.43
793
+
794
+ ### Patch Changes
795
+
796
+ - fea6bec: fix (ai/core): support tool calls without arguments
797
+
798
+ ## 3.3.42
799
+
800
+ ### Patch Changes
801
+
802
+ - de37aee: feat (ai): Add support for LlamaIndex
803
+
804
+ ## 3.3.41
805
+
806
+ ### Patch Changes
807
+
808
+ - Updated dependencies [692e265]
809
+ - @ai-sdk/vue@0.0.50
810
+
811
+ ## 3.3.40
812
+
813
+ ### Patch Changes
814
+
815
+ - a91c308: feat (ai/core): add responseMessages to streamText
816
+
817
+ ## 3.3.39
818
+
819
+ ### Patch Changes
820
+
821
+ - 33cf3e1: feat (ai/core): add providerMetadata to StepResult
822
+ - 17ee757: feat (ai/core): add onStepFinish callback to generateText
823
+
824
+ ## 3.3.38
825
+
826
+ ### Patch Changes
827
+
828
+ - 83da52c: feat (ai/core): add onStepFinish callback to streamText
829
+
830
+ ## 3.3.37
831
+
832
+ ### Patch Changes
833
+
834
+ - Updated dependencies [273f696]
835
+ - @ai-sdk/provider-utils@1.0.19
836
+ - @ai-sdk/react@0.0.59
837
+ - @ai-sdk/solid@0.0.47
838
+ - @ai-sdk/svelte@0.0.49
839
+ - @ai-sdk/ui-utils@0.0.44
840
+ - @ai-sdk/vue@0.0.49
841
+
842
+ ## 3.3.36
843
+
844
+ ### Patch Changes
845
+
846
+ - a3882f5: feat (ai/core): add steps property to streamText result and onFinish callback
847
+ - 1f590ef: chore (ai): rename roundtrips to steps
848
+ - 7e82d36: fix (ai/core): pass topK to providers
849
+ - Updated dependencies [54862e4]
850
+ - Updated dependencies [1f590ef]
851
+ - @ai-sdk/react@0.0.58
852
+ - @ai-sdk/ui-utils@0.0.43
853
+ - @ai-sdk/solid@0.0.46
854
+ - @ai-sdk/svelte@0.0.48
855
+ - @ai-sdk/vue@0.0.48
856
+
857
+ ## 3.3.35
858
+
859
+ ### Patch Changes
860
+
861
+ - 14210d5: feat (ai/core): add sendUsage information to streamText data stream methods
862
+ - Updated dependencies [14210d5]
863
+ - @ai-sdk/ui-utils@0.0.42
864
+ - @ai-sdk/react@0.0.57
865
+ - @ai-sdk/solid@0.0.45
866
+ - @ai-sdk/svelte@0.0.47
867
+ - @ai-sdk/vue@0.0.47
868
+
869
+ ## 3.3.34
870
+
871
+ ### Patch Changes
872
+
873
+ - a0403d6: feat (react): support sending attachments using append
874
+ - 678449a: feat (ai/core): export test helpers
875
+ - ff22fac: fix (ai/rsc): streamUI onFinish is called when tool calls have finished
876
+ - Updated dependencies [a0403d6]
877
+ - @ai-sdk/react@0.0.56
878
+
879
+ ## 3.3.33
880
+
881
+ ### Patch Changes
882
+
883
+ - cbddc83: fix (ai/core): filter out empty text parts
884
+
885
+ ## 3.3.32
886
+
887
+ ### Patch Changes
888
+
889
+ - ce7a4af: feat (ai/core): support providerMetadata in functions
890
+
891
+ ## 3.3.31
892
+
893
+ ### Patch Changes
894
+
895
+ - 561fd7e: feat (ai/core): add output: enum to generateObject
896
+
897
+ ## 3.3.30
898
+
899
+ ### Patch Changes
900
+
901
+ - 6ee1f8e: feat (ai/core): add toDataStream to streamText result
902
+
903
+ ## 3.3.29
904
+
905
+ ### Patch Changes
906
+
907
+ - 1e3dfd2: feat (ai/core): enhance pipeToData/TextStreamResponse methods
908
+
909
+ ## 3.3.28
910
+
911
+ ### Patch Changes
912
+
913
+ - db61c53: feat (ai/core): middleware support
914
+
915
+ ## 3.3.27
916
+
917
+ ### Patch Changes
918
+
919
+ - 03313cd: feat (ai): expose response id, response model, response timestamp in telemetry and api
920
+ - 3be7c1c: fix (provider/anthropic): support prompt caching on assistant messages
921
+ - Updated dependencies [03313cd]
922
+ - Updated dependencies [3be7c1c]
923
+ - @ai-sdk/provider-utils@1.0.18
924
+ - @ai-sdk/provider@0.0.23
925
+ - @ai-sdk/react@0.0.55
926
+ - @ai-sdk/solid@0.0.44
927
+ - @ai-sdk/svelte@0.0.46
928
+ - @ai-sdk/ui-utils@0.0.41
929
+ - @ai-sdk/vue@0.0.46
930
+
931
+ ## 3.3.26
932
+
933
+ ### Patch Changes
934
+
935
+ - Updated dependencies [4ab883f]
936
+ - @ai-sdk/react@0.0.54
937
+
938
+ ## 3.3.25
939
+
940
+ ### Patch Changes
941
+
942
+ - 4f1530f: feat (ai/core): add OpenTelemetry Semantic Conventions for GenAI operations to v1.27.0 of standard
943
+ - dad775f: feat (ai/core): add finish event and avg output tokens per second (telemetry)
944
+
945
+ ## 3.3.24
946
+
947
+ ### Patch Changes
948
+
949
+ - d87a655: fix (ai/core): provide fallback when globalThis.performance is not available
950
+
951
+ ## 3.3.23
952
+
953
+ ### Patch Changes
954
+
955
+ - b55e6f7: fix (ai/core): streamObject text stream in array mode must not include elements: prefix.
956
+
957
+ ## 3.3.22
958
+
959
+ ### Patch Changes
960
+
961
+ - a5a56fd: fix (ai/core): only send roundtrip-finish event after async tool calls are done
962
+
963
+ ## 3.3.21
964
+
965
+ ### Patch Changes
966
+
967
+ - aa2dc58: feat (ai/core): add maxToolRoundtrips to streamText
968
+ - Updated dependencies [aa2dc58]
969
+ - @ai-sdk/ui-utils@0.0.40
970
+ - @ai-sdk/react@0.0.53
971
+ - @ai-sdk/solid@0.0.43
972
+ - @ai-sdk/svelte@0.0.45
973
+ - @ai-sdk/vue@0.0.45
974
+
975
+ ## 3.3.20
976
+
977
+ ### Patch Changes
978
+
979
+ - 7807677: fix (rsc): Deep clone currentState in getMutableState()
980
+
981
+ ## 3.3.19
982
+
983
+ ### Patch Changes
984
+
985
+ - 7235de0: fix (ai/core): convertToCoreMessages accepts Message[]
986
+
987
+ ## 3.3.18
988
+
989
+ ### Patch Changes
990
+
991
+ - 9e3b5a5: feat (ai/core): add experimental_customProvider
992
+ - 26515cb: feat (ai/provider): introduce ProviderV1 specification
993
+ - Updated dependencies [26515cb]
994
+ - @ai-sdk/provider@0.0.22
995
+ - @ai-sdk/provider-utils@1.0.17
996
+ - @ai-sdk/ui-utils@0.0.39
997
+ - @ai-sdk/react@0.0.52
998
+ - @ai-sdk/solid@0.0.42
999
+ - @ai-sdk/svelte@0.0.44
1000
+ - @ai-sdk/vue@0.0.44
1001
+
1002
+ ## 3.3.17
1003
+
1004
+ ### Patch Changes
1005
+
1006
+ - d151349: feat (ai/core): array output for generateObject / streamObject
1007
+ - Updated dependencies [d151349]
1008
+ - @ai-sdk/ui-utils@0.0.38
1009
+ - @ai-sdk/react@0.0.51
1010
+ - @ai-sdk/solid@0.0.41
1011
+ - @ai-sdk/svelte@0.0.43
1012
+ - @ai-sdk/vue@0.0.43
1013
+
1014
+ ## 3.3.16
1015
+
1016
+ ### Patch Changes
1017
+
1018
+ - 09f895f: feat (ai/core): no-schema output for generateObject / streamObject
1019
+ - Updated dependencies [09f895f]
1020
+ - @ai-sdk/provider-utils@1.0.16
1021
+ - @ai-sdk/react@0.0.50
1022
+ - @ai-sdk/solid@0.0.40
1023
+ - @ai-sdk/svelte@0.0.42
1024
+ - @ai-sdk/ui-utils@0.0.37
1025
+ - @ai-sdk/vue@0.0.42
1026
+
1027
+ ## 3.3.15
1028
+
1029
+ ### Patch Changes
1030
+
1031
+ - b5a82b7: chore (ai): update zod-to-json-schema to 3.23.2
1032
+ - Updated dependencies [b5a82b7]
1033
+ - @ai-sdk/ui-utils@0.0.36
1034
+ - @ai-sdk/react@0.0.49
1035
+ - @ai-sdk/solid@0.0.39
1036
+ - @ai-sdk/svelte@0.0.41
1037
+ - @ai-sdk/vue@0.0.41
1038
+
1039
+ ## 3.3.14
1040
+
1041
+ ### Patch Changes
1042
+
1043
+ - Updated dependencies [d67fa9c]
1044
+ - @ai-sdk/provider-utils@1.0.15
1045
+ - @ai-sdk/react@0.0.48
1046
+ - @ai-sdk/solid@0.0.38
1047
+ - @ai-sdk/svelte@0.0.40
1048
+ - @ai-sdk/ui-utils@0.0.35
1049
+ - @ai-sdk/vue@0.0.40
1050
+
1051
+ ## 3.3.13
1052
+
1053
+ ### Patch Changes
1054
+
1055
+ - 412f943: fix (ai/core): make Buffer validation optional for environments without buffer
1056
+
1057
+ ## 3.3.12
1058
+
1059
+ ### Patch Changes
1060
+
1061
+ - f2c025e: feat (ai/core): prompt validation
1062
+ - Updated dependencies [f2c025e]
1063
+ - @ai-sdk/provider@0.0.21
1064
+ - @ai-sdk/provider-utils@1.0.14
1065
+ - @ai-sdk/ui-utils@0.0.34
1066
+ - @ai-sdk/react@0.0.47
1067
+ - @ai-sdk/solid@0.0.37
1068
+ - @ai-sdk/svelte@0.0.39
1069
+ - @ai-sdk/vue@0.0.39
1070
+
1071
+ ## 3.3.11
1072
+
1073
+ ### Patch Changes
1074
+
1075
+ - 03eb0f4: feat (ai/core): add "ai.operationId" telemetry attribute
1076
+ - 099db96: feat (ai/core): add msToFirstChunk telemetry data
1077
+ - Updated dependencies [b6c1dee]
1078
+ - @ai-sdk/react@0.0.46
1079
+
1080
+ ## 3.3.10
1081
+
1082
+ ### Patch Changes
1083
+
1084
+ - Updated dependencies [04084a3]
1085
+ - @ai-sdk/vue@0.0.38
1086
+
1087
+ ## 3.3.9
1088
+
1089
+ ### Patch Changes
1090
+
1091
+ - 6ac355e: feat (provider/anthropic): add cache control support
1092
+ - b56dee1: chore (ai): deprecate prompt helpers
1093
+ - Updated dependencies [6ac355e]
1094
+ - @ai-sdk/provider@0.0.20
1095
+ - @ai-sdk/provider-utils@1.0.13
1096
+ - @ai-sdk/ui-utils@0.0.33
1097
+ - @ai-sdk/react@0.0.45
1098
+ - @ai-sdk/solid@0.0.36
1099
+ - @ai-sdk/svelte@0.0.38
1100
+ - @ai-sdk/vue@0.0.37
1101
+
1102
+ ## 3.3.8
1103
+
1104
+ ### Patch Changes
1105
+
1106
+ - Updated dependencies [dd712ac]
1107
+ - @ai-sdk/provider-utils@1.0.12
1108
+ - @ai-sdk/ui-utils@0.0.32
1109
+ - @ai-sdk/react@0.0.44
1110
+ - @ai-sdk/solid@0.0.35
1111
+ - @ai-sdk/svelte@0.0.37
1112
+ - @ai-sdk/vue@0.0.36
1113
+
1114
+ ## 3.3.7
1115
+
1116
+ ### Patch Changes
1117
+
1118
+ - eccbd8e: feat (ai/core): add onChunk callback to streamText
1119
+ - Updated dependencies [dd4a0f5]
1120
+ - @ai-sdk/provider@0.0.19
1121
+ - @ai-sdk/provider-utils@1.0.11
1122
+ - @ai-sdk/ui-utils@0.0.31
1123
+ - @ai-sdk/react@0.0.43
1124
+ - @ai-sdk/solid@0.0.34
1125
+ - @ai-sdk/svelte@0.0.36
1126
+ - @ai-sdk/vue@0.0.35
1127
+
1128
+ ## 3.3.6
1129
+
1130
+ ### Patch Changes
1131
+
1132
+ - e9c891d: feat (ai/react): useObject supports non-Zod schemas
1133
+ - 3719e8a: chore (ai/core): provider registry code improvements
1134
+ - Updated dependencies [e9c891d]
1135
+ - Updated dependencies [4bd27a9]
1136
+ - Updated dependencies [845754b]
1137
+ - @ai-sdk/ui-utils@0.0.30
1138
+ - @ai-sdk/react@0.0.42
1139
+ - @ai-sdk/provider-utils@1.0.10
1140
+ - @ai-sdk/provider@0.0.18
1141
+ - @ai-sdk/solid@0.0.33
1142
+ - @ai-sdk/svelte@0.0.35
1143
+ - @ai-sdk/vue@0.0.34
1144
+
1145
+ ## 3.3.5
1146
+
1147
+ ### Patch Changes
1148
+
1149
+ - 9ada023: feat (ai/core): mask data stream error messages with streamText
1150
+ - Updated dependencies [e5b58f3]
1151
+ - @ai-sdk/ui-utils@0.0.29
1152
+ - @ai-sdk/react@0.0.41
1153
+ - @ai-sdk/solid@0.0.32
1154
+ - @ai-sdk/svelte@0.0.34
1155
+ - @ai-sdk/vue@0.0.33
1156
+
1157
+ ## 3.3.4
1158
+
1159
+ ### Patch Changes
1160
+
1161
+ - 029af4c: feat (ai/core): support schema name & description in generateObject & streamObject
1162
+ - 3806c0c: chore (ai/ui): increase stream data warning timeout to 15 seconds
1163
+ - db0118a: feat (ai/core): export Schema type
1164
+ - Updated dependencies [029af4c]
1165
+ - @ai-sdk/provider@0.0.17
1166
+ - @ai-sdk/provider-utils@1.0.9
1167
+ - @ai-sdk/ui-utils@0.0.28
1168
+ - @ai-sdk/react@0.0.40
1169
+ - @ai-sdk/solid@0.0.31
1170
+ - @ai-sdk/svelte@0.0.33
1171
+ - @ai-sdk/vue@0.0.32
1172
+
1173
+ ## 3.3.3
1174
+
1175
+ ### Patch Changes
1176
+
1177
+ - d58517b: feat (ai/openai): structured outputs
1178
+ - Updated dependencies [d58517b]
1179
+ - @ai-sdk/provider@0.0.16
1180
+ - @ai-sdk/provider-utils@1.0.8
1181
+ - @ai-sdk/ui-utils@0.0.27
1182
+ - @ai-sdk/react@0.0.39
1183
+ - @ai-sdk/solid@0.0.30
1184
+ - @ai-sdk/svelte@0.0.32
1185
+ - @ai-sdk/vue@0.0.31
1186
+
1187
+ ## 3.3.2
1188
+
1189
+ ### Patch Changes
1190
+
1191
+ - Updated dependencies [96aed25]
1192
+ - @ai-sdk/provider@0.0.15
1193
+ - @ai-sdk/provider-utils@1.0.7
1194
+ - @ai-sdk/ui-utils@0.0.26
1195
+ - @ai-sdk/react@0.0.38
1196
+ - @ai-sdk/solid@0.0.29
1197
+ - @ai-sdk/svelte@0.0.31
1198
+ - @ai-sdk/vue@0.0.30
1199
+
1200
+ ## 3.3.1
1201
+
1202
+ ### Patch Changes
1203
+
1204
+ - 9614584: fix (ai/core): use Symbol.for
1205
+ - 0762a22: feat (ai/core): support zod transformers in generateObject & streamObject
1206
+ - Updated dependencies [9614584]
1207
+ - Updated dependencies [0762a22]
1208
+ - @ai-sdk/provider-utils@1.0.6
1209
+ - @ai-sdk/react@0.0.37
1210
+ - @ai-sdk/solid@0.0.28
1211
+ - @ai-sdk/svelte@0.0.30
1212
+ - @ai-sdk/ui-utils@0.0.25
1213
+ - @ai-sdk/vue@0.0.29
1214
+
1215
+ ## 3.3.0
1216
+
1217
+ ### Minor Changes
1218
+
1219
+ - dbc3afb7: chore (ai): release AI SDK 3.3
1220
+
1221
+ ### Patch Changes
1222
+
1223
+ - b9827186: feat (ai/core): update operation.name telemetry attribute to include function id and detailed name
1224
+
1225
+ ## 3.2.45
1226
+
1227
+ ### Patch Changes
1228
+
1229
+ - Updated dependencies [5be25124]
1230
+ - @ai-sdk/ui-utils@0.0.24
1231
+ - @ai-sdk/react@0.0.36
1232
+ - @ai-sdk/solid@0.0.27
1233
+ - @ai-sdk/svelte@0.0.29
1234
+ - @ai-sdk/vue@0.0.28
1235
+
1236
+ ## 3.2.44
1237
+
1238
+ ### Patch Changes
1239
+
1240
+ - Updated dependencies [a147d040]
1241
+ - @ai-sdk/react@0.0.35
1242
+
1243
+ ## 3.2.43
1244
+
1245
+ ### Patch Changes
1246
+
1247
+ - Updated dependencies [b68fae4f]
1248
+ - @ai-sdk/react@0.0.34
1249
+
1250
+ ## 3.2.42
1251
+
1252
+ ### Patch Changes
1253
+
1254
+ - f63c99e7: feat (ai/core): record OpenTelemetry gen_ai attributes
1255
+ - Updated dependencies [fea7b604]
1256
+ - @ai-sdk/ui-utils@0.0.23
1257
+ - @ai-sdk/react@0.0.33
1258
+ - @ai-sdk/solid@0.0.26
1259
+ - @ai-sdk/svelte@0.0.28
1260
+ - @ai-sdk/vue@0.0.27
1261
+
1262
+ ## 3.2.41
1263
+
1264
+ ### Patch Changes
1265
+
1266
+ - a12044c7: feat (ai/core): add recordInputs / recordOutputs setting to telemetry options
1267
+ - Updated dependencies [1d93d716]
1268
+ - @ai-sdk/ui-utils@0.0.22
1269
+ - @ai-sdk/react@0.0.32
1270
+ - @ai-sdk/solid@0.0.25
1271
+ - @ai-sdk/svelte@0.0.27
1272
+ - @ai-sdk/vue@0.0.26
1273
+
1274
+ ## 3.2.40
1275
+
1276
+ ### Patch Changes
1277
+
1278
+ - f56b7e66: feat (ai/ui): add toDataStreamResponse to LangchainAdapter.
1279
+
1280
+ ## 3.2.39
1281
+
1282
+ ### Patch Changes
1283
+
1284
+ - b694f2f9: feat (ai/svelte): add tool calling support to useChat
1285
+ - Updated dependencies [b694f2f9]
1286
+ - @ai-sdk/svelte@0.0.26
1287
+
1288
+ ## 3.2.38
1289
+
1290
+ ### Patch Changes
1291
+
1292
+ - 5c4b8cfc: chore (ai/core): rename ai stream methods to data stream (in streamText, LangChainAdapter).
1293
+ - c450fcf7: feat (ui): invoke useChat onFinish with finishReason and tokens
1294
+ - e4a1719f: chore (ai/ui): rename streamMode to streamProtocol
1295
+ - 10158bf2: fix (ai/core): generateObject.doGenerate sets object telemetry attribute
1296
+ - Updated dependencies [c450fcf7]
1297
+ - Updated dependencies [e4a1719f]
1298
+ - @ai-sdk/ui-utils@0.0.21
1299
+ - @ai-sdk/svelte@0.0.25
1300
+ - @ai-sdk/react@0.0.31
1301
+ - @ai-sdk/solid@0.0.24
1302
+ - @ai-sdk/vue@0.0.25
1303
+
1304
+ ## 3.2.37
1305
+
1306
+ ### Patch Changes
1307
+
1308
+ - b2bee4c5: fix (ai/ui): send data, body, headers in useChat().reload
1309
+ - Updated dependencies [b2bee4c5]
1310
+ - @ai-sdk/svelte@0.0.24
1311
+ - @ai-sdk/react@0.0.30
1312
+ - @ai-sdk/solid@0.0.23
1313
+
1314
+ ## 3.2.36
1315
+
1316
+ ### Patch Changes
1317
+
1318
+ - a8d1c9e9: feat (ai/core): parallel image download
1319
+ - cfa360a8: feat (ai/core): add telemetry support to embedMany function.
1320
+ - 49808ca5: feat (ai/core): add telemetry to streamObject
1321
+ - Updated dependencies [a8d1c9e9]
1322
+ - @ai-sdk/provider-utils@1.0.5
1323
+ - @ai-sdk/provider@0.0.14
1324
+ - @ai-sdk/react@0.0.29
1325
+ - @ai-sdk/svelte@0.0.23
1326
+ - @ai-sdk/ui-utils@0.0.20
1327
+ - @ai-sdk/vue@0.0.24
1328
+ - @ai-sdk/solid@0.0.22
1329
+
1330
+ ## 3.2.35
1331
+
1332
+ ### Patch Changes
1333
+
1334
+ - 1be014b7: feat (ai/core): add telemetry support for embed function.
1335
+ - 4f88248f: feat (core): support json schema
1336
+ - 0d545231: chore (ai/svelte): change sswr into optional peer dependency
1337
+ - Updated dependencies [4f88248f]
1338
+ - @ai-sdk/provider-utils@1.0.4
1339
+ - @ai-sdk/react@0.0.28
1340
+ - @ai-sdk/svelte@0.0.22
1341
+ - @ai-sdk/ui-utils@0.0.19
1342
+ - @ai-sdk/vue@0.0.23
1343
+ - @ai-sdk/solid@0.0.21
1344
+
1345
+ ## 3.2.34
1346
+
1347
+ ### Patch Changes
1348
+
1349
+ - 2b9da0f0: feat (core): support stopSequences setting.
1350
+ - a5b58845: feat (core): support topK setting
1351
+ - 420f170f: chore (ai/core): use interfaces for core function results
1352
+ - 13b27ec6: chore (ai/core): remove grammar mode
1353
+ - 644f6582: feat (ai/core): add telemetry to generateObject
1354
+ - Updated dependencies [2b9da0f0]
1355
+ - Updated dependencies [a5b58845]
1356
+ - Updated dependencies [4aa8deb3]
1357
+ - Updated dependencies [13b27ec6]
1358
+ - @ai-sdk/provider@0.0.13
1359
+ - @ai-sdk/provider-utils@1.0.3
1360
+ - @ai-sdk/react@0.0.27
1361
+ - @ai-sdk/svelte@0.0.21
1362
+ - @ai-sdk/ui-utils@0.0.18
1363
+ - @ai-sdk/solid@0.0.20
1364
+ - @ai-sdk/vue@0.0.22
1365
+
1366
+ ## 3.2.33
1367
+
1368
+ ### Patch Changes
1369
+
1370
+ - 4b2c09d9: feat (ai/ui): add mutator function support to useChat / setMessages
1371
+ - 281e7662: chore: add description to ai package
1372
+ - Updated dependencies [f63829fe]
1373
+ - Updated dependencies [4b2c09d9]
1374
+ - @ai-sdk/ui-utils@0.0.17
1375
+ - @ai-sdk/svelte@0.0.20
1376
+ - @ai-sdk/react@0.0.26
1377
+ - @ai-sdk/solid@0.0.19
1378
+ - @ai-sdk/vue@0.0.21
1379
+
1380
+ ## 3.2.32
1381
+
1382
+ ### Patch Changes
1383
+
1384
+ - Updated dependencies [5b7b3bbe]
1385
+ - @ai-sdk/ui-utils@0.0.16
1386
+ - @ai-sdk/react@0.0.25
1387
+ - @ai-sdk/solid@0.0.18
1388
+ - @ai-sdk/svelte@0.0.19
1389
+ - @ai-sdk/vue@0.0.20
1390
+
1391
+ ## 3.2.31
1392
+
1393
+ ### Patch Changes
1394
+
1395
+ - b86af092: feat (ai/core): add langchain stream event v2 support to LangChainAdapter
1396
+
1397
+ ## 3.2.30
1398
+
1399
+ ### Patch Changes
1400
+
1401
+ - Updated dependencies [19c3d50f]
1402
+ - @ai-sdk/react@0.0.24
1403
+ - @ai-sdk/vue@0.0.19
1404
+
1405
+ ## 3.2.29
1406
+
1407
+ ### Patch Changes
1408
+
1409
+ - e710b388: fix (ai/core): race condition in mergeStreams
1410
+ - 6078a690: feat (ai/core): introduce stream data support in toAIStreamResponse
1411
+
1412
+ ## 3.2.28
1413
+
1414
+ ### Patch Changes
1415
+
1416
+ - 68d1f78c: fix (ai/core): do not construct object promise in streamObject result until requested
1417
+ - f0bc1e79: feat (ai/ui): add system message support to convertToCoreMessages
1418
+ - 1f67fe49: feat (ai/ui): stream tool calls with streamText and useChat
1419
+ - Updated dependencies [1f67fe49]
1420
+ - @ai-sdk/ui-utils@0.0.15
1421
+ - @ai-sdk/react@0.0.23
1422
+ - @ai-sdk/solid@0.0.17
1423
+ - @ai-sdk/svelte@0.0.18
1424
+ - @ai-sdk/vue@0.0.18
1425
+
1426
+ ## 3.2.27
1427
+
1428
+ ### Patch Changes
1429
+
1430
+ - 811f4493: fix (ai/core): generateText token usage is sum over all roundtrips
1431
+
1432
+ ## 3.2.26
1433
+
1434
+ ### Patch Changes
1435
+
1436
+ - 8f545ce9: fix (ai/core): forward request headers in generateObject and streamObject
1437
+
1438
+ ## 3.2.25
1439
+
1440
+ ### Patch Changes
1441
+
1442
+ - 99ddbb74: feat (ai/react): add experimental support for managing attachments to useChat
1443
+ - Updated dependencies [99ddbb74]
1444
+ - @ai-sdk/ui-utils@0.0.14
1445
+ - @ai-sdk/react@0.0.22
1446
+ - @ai-sdk/solid@0.0.16
1447
+ - @ai-sdk/svelte@0.0.17
1448
+ - @ai-sdk/vue@0.0.17
1449
+
1450
+ ## 3.2.24
1451
+
1452
+ ### Patch Changes
1453
+
1454
+ - f041c056: feat (ai/core): add roundtrips property to generateText result
1455
+
1456
+ ## 3.2.23
1457
+
1458
+ ### Patch Changes
1459
+
1460
+ - a6cb2c8b: feat (ai/ui): add keepLastMessageOnError option to useChat
1461
+ - Updated dependencies [a6cb2c8b]
1462
+ - @ai-sdk/ui-utils@0.0.13
1463
+ - @ai-sdk/svelte@0.0.16
1464
+ - @ai-sdk/react@0.0.21
1465
+ - @ai-sdk/solid@0.0.15
1466
+ - @ai-sdk/vue@0.0.16
1467
+
1468
+ ## 3.2.22
1469
+
1470
+ ### Patch Changes
1471
+
1472
+ - 53fccf1c: fix (ai/core): report error on controller
1473
+ - dd0d854e: feat (ai/vue): add useAssistant
1474
+ - Updated dependencies [dd0d854e]
1475
+ - @ai-sdk/vue@0.0.15
1476
+
1477
+ ## 3.2.21
1478
+
1479
+ ### Patch Changes
1480
+
1481
+ - 56bbc2a7: feat (ai/ui): set body and headers directly on options for handleSubmit and append
1482
+ - Updated dependencies [56bbc2a7]
1483
+ - @ai-sdk/ui-utils@0.0.12
1484
+ - @ai-sdk/svelte@0.0.15
1485
+ - @ai-sdk/react@0.0.20
1486
+ - @ai-sdk/solid@0.0.14
1487
+ - @ai-sdk/vue@0.0.14
1488
+
1489
+ ## 3.2.20
1490
+
1491
+ ### Patch Changes
1492
+
1493
+ - 671331b6: feat (core): add experimental OpenTelemetry support for generateText and streamText
1494
+
1495
+ ## 3.2.19
1496
+
1497
+ ### Patch Changes
1498
+
1499
+ - b7290943: chore (ai/core): rename TokenUsage type to CompletionTokenUsage
1500
+ - b7290943: feat (ai/core): add token usage to embed and embedMany
1501
+ - Updated dependencies [b7290943]
1502
+ - @ai-sdk/provider@0.0.12
1503
+ - @ai-sdk/provider-utils@1.0.2
1504
+ - @ai-sdk/react@0.0.19
1505
+ - @ai-sdk/svelte@0.0.14
1506
+ - @ai-sdk/ui-utils@0.0.11
1507
+ - @ai-sdk/solid@0.0.13
1508
+ - @ai-sdk/vue@0.0.13
1509
+
1510
+ ## 3.2.18
1511
+
1512
+ ### Patch Changes
1513
+
1514
+ - Updated dependencies [70d18003]
1515
+ - @ai-sdk/react@0.0.18
1516
+
1517
+ ## 3.2.17
1518
+
1519
+ ### Patch Changes
1520
+
1521
+ - 3db90c3d: allow empty handleSubmit submissions for useChat
1522
+ - abb22602: feat (ai): verify that system messages have string content
1523
+ - 5c1f0bd3: fix unclosed streamable value console message
1524
+ - Updated dependencies [6a11cfaa]
1525
+ - Updated dependencies [3db90c3d]
1526
+ - Updated dependencies [d481729f]
1527
+ - @ai-sdk/react@0.0.17
1528
+ - @ai-sdk/svelte@0.0.13
1529
+ - @ai-sdk/solid@0.0.12
1530
+ - @ai-sdk/vue@0.0.12
1531
+ - @ai-sdk/provider-utils@1.0.1
1532
+ - @ai-sdk/ui-utils@0.0.10
1533
+
1534
+ ## 3.2.16
1535
+
1536
+ ### Patch Changes
1537
+
1538
+ - Updated dependencies [3f756a6b]
1539
+ - @ai-sdk/react@0.0.16
1540
+
1541
+ ## 3.2.15
1542
+
1543
+ ### Patch Changes
1544
+
1545
+ - 6c99581e: fix (ai/react): stop() on useObject does not throw error and clears isLoading
1546
+ - Updated dependencies [6c99581e]
1547
+ - @ai-sdk/react@0.0.15
1548
+
1549
+ ## 3.2.14
1550
+
1551
+ ### Patch Changes
1552
+
1553
+ - Updated dependencies [9b50003d]
1554
+ - Updated dependencies [1894f811]
1555
+ - @ai-sdk/react@0.0.14
1556
+ - @ai-sdk/ui-utils@0.0.9
1557
+ - @ai-sdk/solid@0.0.11
1558
+ - @ai-sdk/svelte@0.0.12
1559
+ - @ai-sdk/vue@0.0.11
1560
+
1561
+ ## 3.2.13
1562
+
1563
+ ### Patch Changes
1564
+
1565
+ - d3100b9c: feat (ai/ui): support custom fetch function in useChat, useCompletion, useAssistant, useObject
1566
+ - Updated dependencies [d3100b9c]
1567
+ - @ai-sdk/ui-utils@0.0.8
1568
+ - @ai-sdk/svelte@0.0.11
1569
+ - @ai-sdk/react@0.0.13
1570
+ - @ai-sdk/solid@0.0.10
1571
+ - @ai-sdk/vue@0.0.10
1572
+
1573
+ ## 3.2.12
1574
+
1575
+ ### Patch Changes
1576
+
1577
+ - 5edc6110: feat (ai/core): add custom request header support
1578
+ - Updated dependencies [5edc6110]
1579
+ - Updated dependencies [5edc6110]
1580
+ - Updated dependencies [5edc6110]
1581
+ - @ai-sdk/provider@0.0.11
1582
+ - @ai-sdk/provider-utils@1.0.0
1583
+ - @ai-sdk/react@0.0.12
1584
+ - @ai-sdk/svelte@0.0.10
1585
+ - @ai-sdk/ui-utils@0.0.7
1586
+ - @ai-sdk/solid@0.0.9
1587
+ - @ai-sdk/vue@0.0.9
1588
+
1589
+ ## 3.2.11
1590
+
1591
+ ### Patch Changes
1592
+
1593
+ - c908f741: chore (ui/solid): update solidjs useChat and useCompletion to feature parity with React
1594
+ - 827ef450: feat (ai/ui): improve error handling in useAssistant
1595
+ - Updated dependencies [c908f741]
1596
+ - Updated dependencies [827ef450]
1597
+ - @ai-sdk/solid@0.0.8
1598
+ - @ai-sdk/svelte@0.0.9
1599
+ - @ai-sdk/react@0.0.11
1600
+
1601
+ ## 3.2.10
1602
+
1603
+ ### Patch Changes
1604
+
1605
+ - Updated dependencies [5b04204b]
1606
+ - Updated dependencies [8f482903]
1607
+ - @ai-sdk/react@0.0.10
1608
+
1609
+ ## 3.2.9
1610
+
1611
+ ### Patch Changes
1612
+
1613
+ - 82d9c8de: feat (ai/ui): make event in useAssistant submitMessage optional
1614
+ - Updated dependencies [82d9c8de]
1615
+ - Updated dependencies [321a7d0e]
1616
+ - Updated dependencies [82d9c8de]
1617
+ - @ai-sdk/svelte@0.0.8
1618
+ - @ai-sdk/react@0.0.9
1619
+ - @ai-sdk/vue@0.0.8
1620
+
1621
+ ## 3.2.8
1622
+
1623
+ ### Patch Changes
1624
+
1625
+ - 54bf4083: feat (ai/react): control request body in useChat
1626
+ - Updated dependencies [54bf4083]
1627
+ - @ai-sdk/ui-utils@0.0.6
1628
+ - @ai-sdk/react@0.0.8
1629
+ - @ai-sdk/solid@0.0.7
1630
+ - @ai-sdk/svelte@0.0.7
1631
+ - @ai-sdk/vue@0.0.7
1632
+
1633
+ ## 3.2.7
1634
+
1635
+ ### Patch Changes
1636
+
1637
+ - d42b8907: feat (ui): make event in handleSubmit optional
1638
+ - Updated dependencies [d42b8907]
1639
+ - @ai-sdk/svelte@0.0.6
1640
+ - @ai-sdk/react@0.0.7
1641
+ - @ai-sdk/solid@0.0.6
1642
+ - @ai-sdk/vue@0.0.6
1643
+
1644
+ ## 3.2.6
1645
+
1646
+ ### Patch Changes
1647
+
1648
+ - 74e28222: fix (ai/rsc): "could not find InternalStreamableUIClient" bug
1649
+
1650
+ ## 3.2.5
1651
+
1652
+ ### Patch Changes
1653
+
1654
+ - 4d426d0c: fix (ai): split provider and model ids correctly in the provider registry
1655
+
1656
+ ## 3.2.4
1657
+
1658
+ ### Patch Changes
1659
+
1660
+ - Updated dependencies [3cb103bc]
1661
+ - @ai-sdk/react@0.0.6
1662
+
1663
+ ## 3.2.3
1664
+
1665
+ ### Patch Changes
1666
+
1667
+ - 89b7552b: chore (ai): remove deprecation from ai/react imports, add experimental_useObject
1668
+ - Updated dependencies [02f6a088]
1669
+ - @ai-sdk/provider-utils@0.0.16
1670
+ - @ai-sdk/react@0.0.5
1671
+ - @ai-sdk/svelte@0.0.5
1672
+ - @ai-sdk/ui-utils@0.0.5
1673
+ - @ai-sdk/solid@0.0.5
1674
+ - @ai-sdk/vue@0.0.5
1675
+
1676
+ ## 3.2.2
1677
+
1678
+ ### Patch Changes
1679
+
1680
+ - 0565cd72: feat (ai/core): add toJsonResponse to generateObject result.
1681
+
1682
+ ## 3.2.1
1683
+
1684
+ ### Patch Changes
1685
+
1686
+ - 008725ec: feat (ai): add textStream, toTextStreamResponse(), and pipeTextStreamToResponse() to streamObject
1687
+ - 520fb2d5: feat (rsc): add streamUI onFinish callback
1688
+ - Updated dependencies [008725ec]
1689
+ - Updated dependencies [008725ec]
1690
+ - @ai-sdk/react@0.0.4
1691
+ - @ai-sdk/ui-utils@0.0.4
1692
+ - @ai-sdk/solid@0.0.4
1693
+ - @ai-sdk/svelte@0.0.4
1694
+ - @ai-sdk/vue@0.0.4
1695
+
1696
+ ## 3.2.0
1697
+
1698
+ ### Minor Changes
1699
+
1700
+ - 85ef6d18: chore (ai): AI SDK 3.2 release
1701
+
1702
+ ### Patch Changes
1703
+
1704
+ - b965dd2d: fix (core): pass settings correctly for generateObject and streamObject
1705
+
1706
+ ## 3.1.37
1707
+
1708
+ ### Patch Changes
1709
+
1710
+ - 85712895: chore (@ai-sdk/provider-utils): move test helper to provider utils
1711
+ - Updated dependencies [85712895]
1712
+ - Updated dependencies [85712895]
1713
+ - @ai-sdk/provider-utils@0.0.15
1714
+ - @ai-sdk/react@0.0.3
1715
+ - @ai-sdk/svelte@0.0.3
1716
+ - @ai-sdk/ui-utils@0.0.3
1717
+ - @ai-sdk/solid@0.0.3
1718
+ - @ai-sdk/vue@0.0.3
1719
+
1720
+ ## 3.1.36
1721
+
1722
+ ### Patch Changes
1723
+
1724
+ - 4728c37f: feat (core): add text embedding model support to provider registry
1725
+ - 8c49166e: chore (core): rename experimental_createModelRegistry to experimental_createProviderRegistry
1726
+ - Updated dependencies [7910ae84]
1727
+ - @ai-sdk/provider-utils@0.0.14
1728
+ - @ai-sdk/react@0.0.2
1729
+ - @ai-sdk/svelte@0.0.2
1730
+ - @ai-sdk/ui-utils@0.0.2
1731
+ - @ai-sdk/solid@0.0.2
1732
+ - @ai-sdk/vue@0.0.2
1733
+
1734
+ ## 3.1.35
1735
+
1736
+ ### Patch Changes
1737
+
1738
+ - 06123501: feat (core): support https and data url strings in image parts
1739
+
1740
+ ## 3.1.34
1741
+
1742
+ ### Patch Changes
1743
+
1744
+ - d25566ac: feat (core): add cosineSimilarity helper function
1745
+ - 87a5d27e: feat (core): introduce InvalidMessageRoleError.
1746
+
1747
+ ## 3.1.33
1748
+
1749
+ ### Patch Changes
1750
+
1751
+ - 6fb14b5d: chore (streams): deprecate nanoid export.
1752
+ - 05536768: feat (core): add experimental model registry
1753
+
1754
+ ## 3.1.32
1755
+
1756
+ ### Patch Changes
1757
+
1758
+ - 3cabf078: fix(ai/rsc): Refactor streamable UI internal implementation
1759
+
1760
+ ## 3.1.31
1761
+
1762
+ ### Patch Changes
1763
+
1764
+ - 85f209a4: chore: extracted ui library support into separate modules
1765
+ - 85f209a4: removed (streams): experimental_StreamingReactResponse was removed. Please use AI SDK RSC instead.
1766
+ - Updated dependencies [85f209a4]
1767
+ - @ai-sdk/ui-utils@0.0.1
1768
+ - @ai-sdk/svelte@0.0.1
1769
+ - @ai-sdk/react@0.0.1
1770
+ - @ai-sdk/solid@0.0.1
1771
+ - @ai-sdk/vue@0.0.1
1772
+
1773
+ ## 3.1.30
1774
+
1775
+ ### Patch Changes
1776
+
1777
+ - fcf4323b: fix (core): filter out empty assistant text messages
1778
+
1779
+ ## 3.1.29
1780
+
1781
+ ### Patch Changes
1782
+
1783
+ - 28427d3e: feat (core): add streamObject onFinish callback
1784
+
1785
+ ## 3.1.28
1786
+
1787
+ ### Patch Changes
1788
+
1789
+ - 102ca22f: feat (core): add object promise to streamObject result
1790
+ - Updated dependencies [102ca22f]
1791
+ - @ai-sdk/provider@0.0.10
1792
+ - @ai-sdk/provider-utils@0.0.13
1793
+
1794
+ ## 3.1.27
1795
+
1796
+ ### Patch Changes
1797
+
1798
+ - c9198d4d: feat (ui): send annotation and data fields in useChat when sendExtraMessageFields is true
1799
+ - Updated dependencies [09295e2e]
1800
+ - Updated dependencies [09295e2e]
1801
+ - Updated dependencies [043a5de2]
1802
+ - @ai-sdk/provider@0.0.9
1803
+ - @ai-sdk/provider-utils@0.0.12
1804
+
1805
+ ## 3.1.26
1806
+
1807
+ ### Patch Changes
1808
+
1809
+ - 5ee44cae: feat (provider): langchain StringOutputParser support
1810
+
1811
+ ## 3.1.25
1812
+
1813
+ ### Patch Changes
1814
+
1815
+ - ff281126: fix(ai/rsc): Remove extra reconcilation of streamUI
1816
+
1817
+ ## 3.1.24
1818
+
1819
+ ### Patch Changes
1820
+
1821
+ - 93cae126: fix(ai/rsc): Fix unsafe {} type in application code for StreamableValue
1822
+ - 08b5c509: feat (core): add tokenUsage to streamObject result
1823
+
1824
+ ## 3.1.23
1825
+
1826
+ ### Patch Changes
1827
+
1828
+ - c03cafe6: chore (core, ui): rename maxAutomaticRoundtrips to maxToolRoundtrips
1829
+
1830
+ ## 3.1.22
1831
+
1832
+ ### Patch Changes
1833
+
1834
+ - 14bb8694: chore (ui): move maxAutomaticRoundtrips and addToolResult out of experimental
1835
+
1836
+ ## 3.1.21
1837
+
1838
+ ### Patch Changes
1839
+
1840
+ - 213f2411: fix (core,streams): support ResponseInit variants
1841
+ - 09698bca: chore (streams): deprecate streaming helpers that have a provider replacement
1842
+
1843
+ ## 3.1.20
1844
+
1845
+ ### Patch Changes
1846
+
1847
+ - 0e1da476: feat (core): add maxAutomaticRoundtrips setting to generateText
1848
+
1849
+ ## 3.1.19
1850
+
1851
+ ### Patch Changes
1852
+
1853
+ - 9882d24b: fix (ui/svelte): send data to server
1854
+ - 131bbd3e: fix (ui): remove console.log statements
1855
+
1856
+ ## 3.1.18
1857
+
1858
+ ### Patch Changes
1859
+
1860
+ - f9dee8ac: fix(ai/rsc): Fix types for createStreamableValue and createStreamableUI
1861
+ - 1c0ebf8e: feat (core): add responseMessages to generateText result
1862
+
1863
+ ## 3.1.17
1864
+
1865
+ ### Patch Changes
1866
+
1867
+ - 92b993b7: ai/rsc: improve getAIState and getMutableAIState types
1868
+ - 7de628e9: chore (ui): deprecate old function/tool call handling
1869
+ - 7de628e9: feat (ui): add onToolCall handler to useChat
1870
+
1871
+ ## 3.1.16
1872
+
1873
+ ### Patch Changes
1874
+
1875
+ - f39c0dd2: feat (core, rsc): add toolChoice setting
1876
+ - Updated dependencies [f39c0dd2]
1877
+ - @ai-sdk/provider@0.0.8
1878
+ - @ai-sdk/provider-utils@0.0.11
1879
+
1880
+ ## 3.1.15
1881
+
1882
+ ### Patch Changes
1883
+
1884
+ - 8e780288: feat (ai/core): add onFinish callback to streamText
1885
+ - 8e780288: feat (ai/core): add text, toolCalls, and toolResults promises to StreamTextResult (matching the generateText result API with async methods)
1886
+ - Updated dependencies [8e780288]
1887
+ - @ai-sdk/provider@0.0.7
1888
+ - @ai-sdk/provider-utils@0.0.10
1889
+
1890
+ ## 3.1.14
1891
+
1892
+ ### Patch Changes
1893
+
1894
+ - 6109c6a: feat (ai/react): add experimental_maxAutomaticRoundtrips to useChat
1895
+
1896
+ ## 3.1.13
1897
+
1898
+ ### Patch Changes
1899
+
1900
+ - 60117c9: dependencies (ai/ui): add React 18.3 and 19 support (peer dependency)
1901
+ - Updated dependencies [6a50ac4]
1902
+ - Updated dependencies [6a50ac4]
1903
+ - @ai-sdk/provider@0.0.6
1904
+ - @ai-sdk/provider-utils@0.0.9
1905
+
1906
+ ## 3.1.12
1907
+
1908
+ ### Patch Changes
1909
+
1910
+ - ae05fb7: feat (ai/streams): add StreamData support to streamToResponse
1911
+
1912
+ ## 3.1.11
1913
+
1914
+ ### Patch Changes
1915
+
1916
+ - a085d42: fix (ai/ui): decouple StreamData chunks from LLM stream
1917
+
1918
+ ## 3.1.10
1919
+
1920
+ ### Patch Changes
1921
+
1922
+ - 3a21030: feat (ai/core): add embedMany function
1923
+
1924
+ ## 3.1.9
1925
+
1926
+ ### Patch Changes
1927
+
1928
+ - 18a9655: feat (ai/svelte): add useAssistant
1929
+
1930
+ ## 3.1.8
1931
+
1932
+ ### Patch Changes
1933
+
1934
+ - 0f6bc4e: feat (ai/core): add embed function
1935
+ - Updated dependencies [0f6bc4e]
1936
+ - @ai-sdk/provider@0.0.5
1937
+ - @ai-sdk/provider-utils@0.0.8
1938
+
1939
+ ## 3.1.7
1940
+
1941
+ ### Patch Changes
1942
+
1943
+ - f617b97: feat (ai): support client/server tool calls with useChat and streamText
1944
+
1945
+ ## 3.1.6
1946
+
1947
+ ### Patch Changes
1948
+
1949
+ - 2e78acb: Deprecate StreamingReactResponse (use AI SDK RSC instead).
1950
+ - 8439884: ai/rsc: make RSC streamable utils chainable
1951
+ - 325ca55: feat (ai/core): improve image content part error message
1952
+ - Updated dependencies [325ca55]
1953
+ - @ai-sdk/provider@0.0.4
1954
+ - @ai-sdk/provider-utils@0.0.7
1955
+
1956
+ ## 3.1.5
1957
+
1958
+ ### Patch Changes
1959
+
1960
+ - 5b01c13: feat (ai/core): add system message support in messages list
1961
+
1962
+ ## 3.1.4
1963
+
1964
+ ### Patch Changes
1965
+
1966
+ - ceb44bc: feat (ai/ui): add stop() helper to useAssistant (important: AssistantResponse now requires OpenAI SDK 4.42+)
1967
+ - 37c9d4c: feat (ai/streams): add LangChainAdapter.toAIStream()
1968
+
1969
+ ## 3.1.3
1970
+
1971
+ ### Patch Changes
1972
+
1973
+ - 970a099: fix (ai/core): streamObject fixes partial json with empty objects correctly
1974
+ - 1ac2390: feat (ai/core): add usage and finishReason to streamText result.
1975
+ - Updated dependencies [276f22b]
1976
+ - @ai-sdk/provider-utils@0.0.6
1977
+
1978
+ ## 3.1.2
1979
+
1980
+ ### Patch Changes
1981
+
1982
+ - d1b1880: fix (ai/core): allow reading streams in streamText result multiple times
1983
+
1984
+ ## 3.1.1
1985
+
1986
+ ### Patch Changes
1987
+
1988
+ - 0f77132: ai/rsc: remove experimental\_ from streamUI
1989
+
1990
+ ## 3.1.0
1991
+
1992
+ ### Minor Changes
1993
+
1994
+ - 73356a9: Move AI Core functions out of experimental (streamText, generateText, streamObject, generateObject).
1995
+
1996
+ ## 3.0.35
1997
+
1998
+ ### Patch Changes
1999
+
2000
+ - 41d5736: ai/core: re-expose language model types.
2001
+ - b4c68ec: ai/rsc: ReadableStream as provider for createStreamableValue; add .append() method
2002
+ - Updated dependencies [41d5736]
2003
+ - @ai-sdk/provider@0.0.3
2004
+ - @ai-sdk/provider-utils@0.0.5
2005
+
2006
+ ## 3.0.34
2007
+
2008
+ ### Patch Changes
2009
+
2010
+ - b9a831e: ai/rsc: add experimental_streamUI()
2011
+
2012
+ ## 3.0.33
2013
+
2014
+ ### Patch Changes
2015
+
2016
+ - 56ef84a: ai/core: fix abort handling in transformation stream
2017
+ - Updated dependencies [56ef84a]
2018
+ - @ai-sdk/provider-utils@0.0.4
2019
+
2020
+ ## 3.0.32
2021
+
2022
+ ### Patch Changes
2023
+
2024
+ - 0e0d2af: ai/core: add pipeTextStreamToResponse helper to streamText.
2025
+
2026
+ ## 3.0.31
2027
+
2028
+ ### Patch Changes
2029
+
2030
+ - 74c63b1: ai/core: add toAIStreamResponse() helper to streamText.
2031
+
2032
+ ## 3.0.30
2033
+
2034
+ ### Patch Changes
2035
+
2036
+ - e7e5898: use-assistant: fix missing message content
2037
+
2038
+ ## 3.0.29
2039
+
2040
+ ### Patch Changes
2041
+
2042
+ - 22a737e: Fix: mark useAssistant as in progress for append/submitMessage.
2043
+
2044
+ ## 3.0.28
2045
+
2046
+ ### Patch Changes
2047
+
2048
+ - d6431ae: ai/core: add logprobs support (thanks @SamStenner for the contribution)
2049
+ - 25f3350: ai/core: add support for getting raw response headers.
2050
+ - Updated dependencies [d6431ae]
2051
+ - Updated dependencies [25f3350]
2052
+ - @ai-sdk/provider@0.0.2
2053
+ - @ai-sdk/provider-utils@0.0.3
2054
+
2055
+ ## 3.0.27
2056
+
2057
+ ### Patch Changes
2058
+
2059
+ - eb150a6: ai/core: remove scaling of setting values (breaking change). If you were using the temperature, frequency penalty, or presence penalty settings, you need to update the providers and adjust the setting values.
2060
+ - Updated dependencies [eb150a6]
2061
+ - @ai-sdk/provider-utils@0.0.2
2062
+ - @ai-sdk/provider@0.0.1
2063
+
2064
+ ## 3.0.26
2065
+
2066
+ ### Patch Changes
2067
+
2068
+ - f90f6a1: ai/core: add pipeAIStreamToResponse() to streamText result.
2069
+
2070
+ ## 3.0.25
2071
+
2072
+ ### Patch Changes
2073
+
2074
+ - 1e84d6d: Fix: remove mistral lib type dependency.
2075
+ - 9c2a049: Add append() helper to useAssistant.
2076
+
2077
+ ## 3.0.24
2078
+
2079
+ ### Patch Changes
2080
+
2081
+ - e94fb32: feat(ai/rsc): Make `onSetAIState` and `onGetUIState` stable
2082
+
2083
+ ## 3.0.23
2084
+
2085
+ ### Patch Changes
2086
+
2087
+ - 66b5892: Add streamMode parameter to useChat and useCompletion.
2088
+ - Updated dependencies [7b8791d]
2089
+ - @ai-sdk/provider-utils@0.0.1
2090
+
2091
+ ## 3.0.22
2092
+
2093
+ ### Patch Changes
2094
+
2095
+ - d544886: Breaking change: extract experimental AI core provider packages. They can now be imported with e.g. import { openai } from '@ai-sdk/openai' after adding them to a project.
2096
+ - ea6b0e1: Expose formatStreamPart, parseStreamPart, and readDataStream helpers.
2097
+
2098
+ ## 3.0.21
2099
+
2100
+ ### Patch Changes
2101
+
2102
+ - 87d3db5: Extracted @ai-sdk/provider package
2103
+ - 8c40f8c: ai/core: Fix openai provider streamObject for gpt-4-turbo
2104
+ - 5cd29bd: ai/core: add toTextStreamResponse() method to streamText result
2105
+
2106
+ ## 3.0.20
2107
+
2108
+ ### Patch Changes
2109
+
2110
+ - f42bbb5: Remove experimental from useAssistant and AssistantResponse.
2111
+ - 149fe26: Deprecate <Tokens/>
2112
+ - 2eb4b55: Remove experimental\_ prefix from StreamData.
2113
+ - e45fa96: Add stream support for Bedrock/Cohere.
2114
+ - a6b2500: Deprecated the `experimental_streamData: true` setting from AIStreamCallbacksAndOptions. You can delete occurrences in your code. The stream data protocol is now used by default.
2115
+
2116
+ ## 3.0.19
2117
+
2118
+ ### Patch Changes
2119
+
2120
+ - 4f4c7f5: ai/core: Anthropic tool call support
2121
+
2122
+ ## 3.0.18
2123
+
2124
+ ### Patch Changes
2125
+
2126
+ - 63d587e: Add Anthropic provider for ai/core functions (no tool calling).
2127
+ - 63d587e: Add automatic mime type detection for images in ai/core prompts.
2128
+
2129
+ ## 3.0.17
2130
+
2131
+ ### Patch Changes
2132
+
2133
+ - 2b991c4: Add Google Generative AI provider for ai/core functions.
2134
+
2135
+ ## 3.0.16
2136
+
2137
+ ### Patch Changes
2138
+
2139
+ - a54ea77: feat(ai/rsc): add `useStreamableValue`
2140
+
2141
+ ## 3.0.15
2142
+
2143
+ ### Patch Changes
2144
+
2145
+ - 4aed2a5: Add JSDoc comments for ai/core functions.
2146
+ - cf8d12f: Export experimental language model specification under `ai/spec`.
2147
+
2148
+ ## 3.0.14
2149
+
2150
+ ### Patch Changes
2151
+
2152
+ - 8088de8: fix(ai/rsc): improve typings for `StreamableValue`
2153
+ - 20007b9: feat(ai/rsc): support string diff and patch in streamable value
2154
+ - 6039460: Support Bedrock Anthropic Stream for Messages API.
2155
+ - e83bfe3: Added experimental ai/core functions (streamText, generateText, streamObject, generateObject). Add OpenAI and Mistral language model providers.
2156
+
2157
+ ## 3.0.13
2158
+
2159
+ ### Patch Changes
2160
+
2161
+ - 026d061: Expose setMessages in useAssistant hook
2162
+ - 42209be: AssistantResponse: specify forwardStream return type.
2163
+
2164
+ ## 3.0.12
2165
+
2166
+ ### Patch Changes
2167
+
2168
+ - b99b008: fix(ai/rsc): avoid appending boundary if the same reference was passed
2169
+
2170
+ ## 3.0.11
2171
+
2172
+ ### Patch Changes
2173
+
2174
+ - ce009e2: Added OpenAI assistants streaming.
2175
+ - 3f9bf3e: Updates types to OpenAI SDK 4.29.0
2176
+
2177
+ ## 3.0.10
2178
+
2179
+ ### Patch Changes
2180
+
2181
+ - 33d261a: fix(ai/rsc): Fix .append() behavior
2182
+
2183
+ ## 3.0.9
2184
+
2185
+ ### Patch Changes
2186
+
2187
+ - 81ca3d6: fix(ai/rsc): improve .done() argument type
2188
+
2189
+ ## 3.0.8
2190
+
2191
+ ### Patch Changes
2192
+
2193
+ - a94aab2: ai/rsc: optimize streamable value stream size
2194
+
2195
+ ## 3.0.7
2196
+
2197
+ ### Patch Changes
2198
+
2199
+ - 9a9ae73: feat(ai/rsc): readStreamableValue
2200
+
2201
+ ## 3.0.6
2202
+
2203
+ ### Patch Changes
2204
+
2205
+ - 1355ad0: Fix: experimental_onToolCall is called with parsed tool args
2206
+ - 9348f06: ai/rsc: improve dev error and warnings by trying to detect hanging streams
2207
+ - 8be9404: fix type resolution
2208
+
2209
+ ## 3.0.5
2210
+
2211
+ ### Patch Changes
2212
+
2213
+ - a973f1e: Support Anthropic SDK v0.15.0
2214
+ - e25f3ca: type improvements
2215
+
2216
+ ## 3.0.4
2217
+
2218
+ ### Patch Changes
2219
+
2220
+ - 7962862: fix `useActions` type inference
2221
+ - aab5324: Revert "fix(render): parse the args based on the zod schema"
2222
+ - fe55612: Bump OpenAI dependency to 4.28.4; fix type error in render
2223
+
2224
+ ## 3.0.3
2225
+
2226
+ ### Patch Changes
2227
+
2228
+ - 4d816ca: fix(render): parse the args based on the zod schema
2229
+ - d158a47: fix potential race conditions
2230
+
2231
+ ## 3.0.2
2232
+
2233
+ ### Patch Changes
2234
+
2235
+ - 73bd06e: fix(useActions): return typed object
2236
+
2237
+ ## 3.0.1
2238
+
2239
+ ### Patch Changes
2240
+
2241
+ - ac20a25: ai/rsc: fix text response and async generator
2242
+ - b88778f: Added onText callback for text tokens.
2243
+
2244
+ ## 3.0.0
2245
+
2246
+ ### Major Changes
2247
+
2248
+ - 51054a9: add ai/rsc
2249
+
2250
+ ## 2.2.37
2251
+
2252
+ ### Patch Changes
2253
+
2254
+ - a6b5764: Add support for Mistral's JavaScript SDK
2255
+
2256
+ ## 2.2.36
2257
+
2258
+ ### Patch Changes
2259
+
2260
+ - 141f0ce: Fix: onFinal callback is invoked with text from onToolCall when onToolCall returns string
2261
+
2262
+ ## 2.2.35
2263
+
2264
+ ### Patch Changes
2265
+
2266
+ - b717dad: Adding Inkeep as a stream provider
2267
+
2268
+ ## 2.2.34
2269
+
2270
+ ### Patch Changes
2271
+
2272
+ - 2c8ffdb: cohere-stream: support AsyncIterable
2273
+ - ed1e278: Message annotations handling for all Message types
2274
+
2275
+ ## 2.2.33
2276
+
2277
+ ### Patch Changes
2278
+
2279
+ - 8542ae7: react/use-assistant: add onError handler
2280
+ - 97039ff: OpenAIStream: Add support for the Azure OpenAI client library
2281
+
2282
+ ## 2.2.32
2283
+
2284
+ ### Patch Changes
2285
+
2286
+ - 7851fa0: StreamData: add `annotations` and `appendMessageAnnotation` support
2287
+
2288
+ ## 2.2.31
2289
+
2290
+ ### Patch Changes
2291
+
2292
+ - 9b89c4d: react/use-assistant: Expose setInput
2293
+ - 75751c9: ai/react: Add experimental_onToolCall to useChat.
2294
+
2295
+ ## 2.2.30
2296
+
2297
+ ### Patch Changes
2298
+
2299
+ - ac503e0: ai/solid: add chat request options to useChat
2300
+ - b78a73e: Add GoogleGenerativeAIStream for Gemini support
2301
+ - 5220336: ai/svelte: Add experimental_onToolCall to useChat.
2302
+ - ef99062: Add support for the Anthropic message API
2303
+ - 5220336: Add experimental_onToolCall to OpenAIStream.
2304
+ - ac503e0: ai/vue: add chat request options to useChat
2305
+
2306
+ ## 2.2.29
2307
+
2308
+ ### Patch Changes
2309
+
2310
+ - 5a9ae2e: ai/prompt: add `experimental_buildOpenAIMessages` to validate and cast AI SDK messages to OpenAI messages
2311
+
2312
+ ## 2.2.28
2313
+
2314
+ ### Patch Changes
2315
+
2316
+ - 07a679c: Add data message support to useAssistant & assistantResponse.
2317
+ - fbae595: ai/react: `api` functions are no longer used as a cache key in `useChat`
2318
+
2319
+ ## 2.2.27
2320
+
2321
+ ### Patch Changes
2322
+
2323
+ - 0fd1205: ai/vue: Add complex response parsing and StreamData support to useCompletion
2324
+ - a7dc746: experimental_useAssistant: Expose extra fetch options
2325
+ - 3dcf01e: ai/react Add data support to useCompletion
2326
+ - 0c3b338: ai/svelte: Add complex response parsing and StreamData support to useCompletion
2327
+ - 8284777: ai/solid: Add complex response parsing and StreamData support to useCompletion
2328
+
2329
+ ## 2.2.26
2330
+
2331
+ ### Patch Changes
2332
+
2333
+ - df1ad33: ai/vue: Add complex response parsing and StreamData support to useChat
2334
+ - 3ff8a56: Add `generateId` to use-chat params to allow overriding message ID generation
2335
+ - 6c2a49c: ai/react experimental_useAssistant() submit can be called without an event
2336
+ - 8b4f7d1: ai/react: Add complex response parsing and StreamData support to useCompletion
2337
+
2338
+ ## 2.2.25
2339
+
2340
+ ### Patch Changes
2341
+
2342
+ - 1e61c69: chore: specify the minimum react version to 18
2343
+ - 6aec2d2: Expose threadId in useAssistant
2344
+ - c2369df: Add AWS Bedrock support
2345
+ - 223fde3: ai/svelte: Add complex response parsing and StreamData support to useChat
2346
+
2347
+ ## 2.2.24
2348
+
2349
+ ### Patch Changes
2350
+
2351
+ - 69ca8f5: ai/react: add experimental_useAssistant hook and experimental_AssistantResponse
2352
+ - 3e2299e: experimental_StreamData/StreamingReactResponse: optimize parsing, improve types
2353
+ - 70bd2ac: ai/solid: add experimental_StreamData support to useChat
2354
+
2355
+ ## 2.2.23
2356
+
2357
+ ### Patch Changes
2358
+
2359
+ - 5a04321: add StreamData support to StreamingReactResponse, add client-side data API to react/use-chat
2360
+
2361
+ ## 2.2.22
2362
+
2363
+ ### Patch Changes
2364
+
2365
+ - 4529831: ai/react: Do not store initialMessages in useState
2366
+ - db5378c: experimental_StreamData: fix data type to be JSONValue
2367
+
2368
+ ## 2.2.21
2369
+
2370
+ ### Patch Changes
2371
+
2372
+ - 2c8d4bd: Support openai@4.16.0 and later
2373
+
2374
+ ## 2.2.20
2375
+
2376
+ ### Patch Changes
2377
+
2378
+ - 424d5ee: experimental_StreamData: fix trailing newline parsing bug in decoder
2379
+ - c364c6a: cohere: fix closing cohere stream, avoids response from hanging
2380
+
2381
+ ## 2.2.19
2382
+
2383
+ ### Patch Changes
2384
+
2385
+ - 699552d: add experimental_StreamingReactResponse
2386
+
2387
+ ## 2.2.18
2388
+
2389
+ ### Patch Changes
2390
+
2391
+ - 0bd27f6: react/use-chat: allow client-side handling of function call without following response
2392
+
2393
+ ## 2.2.17
2394
+
2395
+ ### Patch Changes
2396
+
2397
+ - 5ed581d: Use interface instead of type for Message to allow declaration merging
2398
+ - 9adec1e: vue and solid: fix including `function_call` and `name` fields in subsequent requests
2399
+
2400
+ ## 2.2.16
2401
+
2402
+ ### Patch Changes
2403
+
2404
+ - e569688: Fix for #637, resync interfaces
2405
+
2406
+ ## 2.2.15
2407
+
2408
+ ### Patch Changes
2409
+
2410
+ - c5d1857: fix: return complete response in onFinish when onCompletion isn't passed
2411
+ - c5d1857: replicate-stream: fix types for replicate@0.20.0+
2412
+
2413
+ ## 2.2.14
2414
+
2415
+ ### Patch Changes
2416
+
2417
+ - 6229d6b: openai: fix OpenAIStream types with openai@4.11+
2418
+
2419
+ ## 2.2.13
2420
+
2421
+ ### Patch Changes
2422
+
2423
+ - a4a997f: all providers: reset error message on (re)submission
2424
+
2425
+ ## 2.2.12
2426
+
2427
+ ### Patch Changes
2428
+
2429
+ - cb181b4: ai/vue: wrap body with unref to support reactivity
2430
+
2431
+ ## 2.2.11
2432
+
2433
+ ### Patch Changes
2434
+
2435
+ - 2470658: ai/react: fix: handle partial chunks in react getStreamedResponse when using experimental_StreamData
2436
+
2437
+ ## 2.2.10
2438
+
2439
+ ### Patch Changes
2440
+
2441
+ - 8a2cbaf: vue/use-completion: fix: don't send network request for loading state"
2442
+ - bbf4403: langchain-stream: return langchain `writer` from LangChainStream
2443
+
2444
+ ## 2.2.9
2445
+
2446
+ ### Patch Changes
2447
+
2448
+ - 3fc2b32: ai/vue: fix: make body parameter reactive
2449
+
2450
+ ## 2.2.8
2451
+
2452
+ ### Patch Changes
2453
+
2454
+ - 26bf998: ai/react: make reload/complete/append functions stable via useCallback
2455
+
2456
+ ## 2.2.7
2457
+
2458
+ ### Patch Changes
2459
+
2460
+ - 2f97630: react/use-chat: fix aborting clientside function calls too early
2461
+ - 1157340: fix: infinite loop for experimental stream data (#484)
2462
+
2463
+ ## 2.2.6
2464
+
2465
+ ### Patch Changes
2466
+
2467
+ - e5bf68d: react/use-chat: fix experimental functions returning proper function messages
2468
+
2469
+ Closes #478
2470
+
2471
+ ## 2.2.5
2472
+
2473
+ ### Patch Changes
2474
+
2475
+ - e5bf68d: react/use-chat: fix experimental functions returning proper function messages
2476
+
2477
+ Closes #478
2478
+
2479
+ ## 2.2.4
2480
+
2481
+ ### Patch Changes
2482
+
2483
+ - 7b389a7: fix: improve safety for type check in openai-stream
2484
+
2485
+ ## 2.2.3
2486
+
2487
+ ### Patch Changes
2488
+
2489
+ - 867a3f9: Fix client-side function calling (#467, #469)
2490
+
2491
+ add Completion type from the `openai` SDK to openai-stream (#472)
2492
+
2493
+ ## 2.2.2
2494
+
2495
+ ### Patch Changes
2496
+
2497
+ - 84e0cc8: Add experimental_StreamData and new opt-in wire protocol to enable streaming additional data. See https://github.com/vercel/ai/pull/425.
2498
+
2499
+ Changes `onCompletion` back to run every completion, including recursive function calls. Adds an `onFinish` callback that runs once everything has streamed.
2500
+
2501
+ If you're using experimental function handlers on the server _and_ caching via `onCompletion`,
2502
+ you may want to adjust your caching code to account for recursive calls so the same key isn't used.
2503
+
2504
+ ```
2505
+ let depth = 0
2506
+
2507
+ const stream = OpenAIStream(response, {
2508
+ async onCompletion(completion) {
2509
+ depth++
2510
+ await kv.set(key + '_' + depth, completion)
2511
+ await kv.expire(key + '_' + depth, 60 * 60)
2512
+ }
2513
+ })
2514
+ ```
2515
+
2516
+ ## 2.2.1
2517
+
2518
+ ### Patch Changes
2519
+
2520
+ - 04084a8: openai-stream: fix experimental_onFunctionCall types for OpenAI SDK v4
2521
+
2522
+ ## 2.2.0
2523
+
2524
+ ### Minor Changes
2525
+
2526
+ - dca1ed9: Update packages and examples to use OpenAI SDK v4
2527
+
2528
+ ## 2.1.34
2529
+
2530
+ ### Patch Changes
2531
+
2532
+ - c2917d3: Add support for the Anthropic SDK, newer Anthropic API versions, and improve Anthropic error handling
2533
+
2534
+ ## 2.1.33
2535
+
2536
+ ### Patch Changes
2537
+
2538
+ - 4ef8015: Prevent `isLoading` in vue integration from triggering extraneous network requests
2539
+
2540
+ ## 2.1.32
2541
+
2542
+ ### Patch Changes
2543
+
2544
+ - 5f91427: ai/svelte: fix isLoading return value
2545
+
2546
+ ## 2.1.31
2547
+
2548
+ ### Patch Changes
2549
+
2550
+ - ab2b973: fix pnpm-lock.yaml
2551
+
2552
+ ## 2.1.30
2553
+
2554
+ ### Patch Changes
2555
+
2556
+ - 4df2a49: Fix termination of ReplicateStream by removing the terminating `{}`from output
2557
+
2558
+ ## 2.1.29
2559
+
2560
+ ### Patch Changes
2561
+
2562
+ - 3929a41: Add ReplicateStream helper
2563
+
2564
+ ## 2.1.28
2565
+
2566
+ ### Patch Changes
2567
+
2568
+ - 9012e17: react/svelte/vue: fix making unnecessary SWR request to API endpoint
2569
+
2570
+ ## 2.1.27
2571
+
2572
+ ### Patch Changes
2573
+
2574
+ - 3d29799: React/Svelte/Vue: keep isLoading in sync between hooks with the same ID.
2575
+
2576
+ React: don't throw error when submitting
2577
+
2578
+ ## 2.1.26
2579
+
2580
+ ### Patch Changes
2581
+
2582
+ - f50d9ef: Add experimental_buildLlama2Prompt helper for Hugging Face
2583
+
2584
+ ## 2.1.25
2585
+
2586
+ ### Patch Changes
2587
+
2588
+ - 877c16f: ai/react: don't throw error if onError is passed
2589
+
2590
+ ## 2.1.24
2591
+
2592
+ ### Patch Changes
2593
+
2594
+ - f3f5866: Adds SolidJS support and SolidStart example
2595
+
2596
+ ## 2.1.23
2597
+
2598
+ ### Patch Changes
2599
+
2600
+ - 0ebc2f0: streams/openai-stream: don't call onStart/onCompletion when recursing
2601
+
2602
+ ## 2.1.22
2603
+
2604
+ ### Patch Changes
2605
+
2606
+ - 9320e95: Add (experimental) prompt construction helpers for StarChat and OpenAssistant
2607
+ - e3a7ec8: Support <|end|> token for StarChat beta in huggingface-stream
2608
+
2609
+ ## 2.1.21
2610
+
2611
+ ### Patch Changes
2612
+
2613
+ - 561a49a: Providing a function to `function_call` request parameter of the OpenAI Chat Completions API no longer breaks OpenAI function stream parsing.
2614
+
2615
+ ## 2.1.20
2616
+
2617
+ ### Patch Changes
2618
+
2619
+ - e361114: OpenAI functions: allow returning string in callback
2620
+
2621
+ ## 2.1.19
2622
+
2623
+ ### Patch Changes
2624
+
2625
+ - e4281ca: Add experimental server-side OpenAI function handling
2626
+
2627
+ ## 2.1.18
2628
+
2629
+ ### Patch Changes
2630
+
2631
+ - 6648b21: Add experimental client side OpenAI function calling to Svelte bindings
2632
+ - e5b983f: feat(streams): add http error handling for openai
2633
+
2634
+ ## 2.1.17
2635
+
2636
+ ### Patch Changes
2637
+
2638
+ - 3ed65bf: Remove dependency on node crypto API
2639
+
2640
+ ## 2.1.16
2641
+
2642
+ ### Patch Changes
2643
+
2644
+ - 8bfb43d: Fix svelte peer dependency version
2645
+
2646
+ ## 2.1.15
2647
+
2648
+ ### Patch Changes
2649
+
2650
+ - 4a2b978: Update cohere stream and add docs
2651
+
2652
+ ## 2.1.14
2653
+
2654
+ ### Patch Changes
2655
+
2656
+ - 3164adb: Fix regression with generated ids
2657
+
2658
+ ## 2.1.13
2659
+
2660
+ ### Patch Changes
2661
+
2662
+ - fd82961: Use rfc4122 IDs when generating chat/completion IDs
2663
+
2664
+ ## 2.1.12
2665
+
2666
+ ### Patch Changes
2667
+
2668
+ - b7b93e5: Add <Tokens> RSC to ai/react
2669
+
2670
+ ## 2.1.11
2671
+
2672
+ ### Patch Changes
2673
+
2674
+ - 8bf637a: Fix langchain handlers so that they now are correctly invoked and update examples and docs to show correct usage (passing the handlers to `llm.call` and not the model itself).
2675
+
2676
+ ## 2.1.10
2677
+
2678
+ ### Patch Changes
2679
+
2680
+ - a7b3d0e: Experimental support for OpenAI function calling
2681
+
2682
+ ## 2.1.9
2683
+
2684
+ ### Patch Changes
2685
+
2686
+ - 9cdf968: core/react: add Tokens react server component
2687
+
2688
+ ## 2.1.8
2689
+
2690
+ ### Patch Changes
2691
+
2692
+ - 44d9879: Support extra request options in chat and completion hooks
2693
+
2694
+ ## 2.1.7
2695
+
2696
+ ### Patch Changes
2697
+
2698
+ - bde3898: Allow an async onResponse callback in useChat/useCompletion
2699
+
2700
+ ## 2.1.6
2701
+
2702
+ ### Patch Changes
2703
+
2704
+ - 23f0899: Set stream: true when decoding streamed chunks
2705
+
2706
+ ## 2.1.5
2707
+
2708
+ ### Patch Changes
2709
+
2710
+ - 89938b0: Provider direct callback handlers in LangChain now that `CallbackManager` is deprecated.
2711
+
2712
+ ## 2.1.4
2713
+
2714
+ ### Patch Changes
2715
+
2716
+ - c16d650: Improve type saftey for AIStream. Added JSDoc comments.
2717
+
2718
+ ## 2.1.3
2719
+
2720
+ ### Patch Changes
2721
+
2722
+ - a9591fe: Add `createdAt` on `user` input message in `useChat` (it was already present in `assistant` messages)
2723
+
2724
+ ## 2.1.2
2725
+
2726
+ ### Patch Changes
2727
+
2728
+ - f37d4ec: fix bundling
2729
+
2730
+ ## 2.1.1
2731
+
2732
+ ### Patch Changes
2733
+
2734
+ - 9fdb51a: fix: add better typing for store within svelte implementation (#104)
2735
+
2736
+ ## 2.1.0
2737
+
2738
+ ### Minor Changes
2739
+
2740
+ - 71f9c51: This adds Vue support for `ai` via the `ai/vue` subpath export. Vue composables `useChat` and `useCompletion` are provided.
2741
+
2742
+ ### Patch Changes
2743
+
2744
+ - ad54c79: add tests
2745
+
2746
+ ## 2.0.1
2747
+
2748
+ ### Patch Changes
2749
+
2750
+ - be90740: - Switches `LangChainStream` helper callback `handler` to return use `handleChainEnd` instead of `handleLLMEnd` so as to work with sequential chains
2751
+
2752
+ ## 2.0.0
2753
+
2754
+ ### Major Changes
2755
+
2756
+ - 095de43: New package name!
2757
+
2758
+ ## 0.0.14
2759
+
2760
+ ### Patch Changes
2761
+
2762
+ - c6586a2: Add onError callback, include response text in error if response is not okay
2763
+
2764
+ ## 0.0.13
2765
+
2766
+ ### Patch Changes
2767
+
2768
+ - c1f4a91: Throw error when provided AI response isn't valid
2769
+
2770
+ ## 0.0.12
2771
+
2772
+ ### Patch Changes
2773
+
2774
+ - ea4e66a: improve API types
2775
+
2776
+ ## 0.0.11
2777
+
2778
+ ### Patch Changes
2779
+
2780
+ - a6bc35c: fix package exports for react and svelte subpackages
2781
+
2782
+ ## 0.0.10
2783
+
2784
+ ### Patch Changes
2785
+
2786
+ - 56f9537: add svelte apis
2787
+
2788
+ ## 0.0.9
2789
+
2790
+ ### Patch Changes
2791
+
2792
+ - 78477d3: - Create `/react` sub-package.
2793
+ - Create `import { useChat, useCompletion } from 'ai/react'` and mark React as an optional peer dependency so we can add more framework support in the future.
2794
+ - Also renamed `set` to `setMessages` and `setCompletion` to unify the API naming as we have `setInput` too.
2795
+ - Added an `sendExtraMessageFields` field to `useChat` that defaults to `false`, to prevent OpenAI errors when `id` is not filtered out.
2796
+ - c4c1be3: useCompletion.handleSubmit does not clear the input anymore
2797
+ - 7de2185: create /react export
2798
+
2799
+ ## 0.0.8
2800
+
2801
+ ### Patch Changes
2802
+
2803
+ - fc83e95: Implement new start-of-stream newline trimming
2804
+ - 2c6fa04: Optimize callbacks TransformStream to be more memory efficient when `onCompletion` is not specified
2805
+
2806
+ ## 0.0.7
2807
+
2808
+ ### Patch Changes
2809
+
2810
+ - fdfef52: - Splits the `EventSource` parser into a reusable helper
2811
+ - Uses a `TransformStream` for this, so the stream respects back-pressure
2812
+ - Splits the "forking" stream for callbacks into a reusable helper
2813
+ - Changes the signature for `customParser` to avoid Stringify -> Encode -> Decode -> Parse round trip
2814
+ - Uses ?.() optional call syntax for callbacks
2815
+ - Uses string.includes to perform newline checking
2816
+ - Handles the `null` `res.body` case
2817
+ - Fixes Anthropic's streaming responses
2818
+ - Anthropic returns cumulative responses, not deltas like OpenAI
2819
+ - https://github.com/hwchase17/langchain/blob/3af36943/langchain/llms/anthropic.py#L190-L193
2820
+
2821
+ ## 0.0.6
2822
+
2823
+ ### Patch Changes
2824
+
2825
+ - d70a9e7: Add streamToResponse
2826
+ - 47b85b2: Improve abortController and callbacks of `useChat`
2827
+ - 6f7b43a: Export `UseCompletionHelpers` as a TypeScript type alias
2828
+
2829
+ ## 0.0.5
2830
+
2831
+ ### Patch Changes
2832
+
2833
+ - 4405a8a: fix duplicated `'use client'` directives
2834
+
2835
+ ## 0.0.4
2836
+
2837
+ ### Patch Changes
2838
+
2839
+ - b869104: Added `LangChainStream`, `useCompletion`, and `useChat`
2840
+
2841
+ ## 0.0.3
2842
+
2843
+ ### Patch Changes
2844
+
2845
+ - 677d222: add useCompletion
2846
+
2847
+ ## 0.0.2
2848
+
2849
+ ### Patch Changes
2850
+
2851
+ - af400e2: Fix release script
2852
+
2853
+ ## 0.0.1
2854
+
2855
+ ### Patch Changes
2856
+
2857
+ - b7e227d: Add `useChat` hook
2858
+
2859
+ ## 0.0.2
2860
+
2861
+ ### Patch Changes
2862
+
2863
+ - 9a8a845: Testing out release