ai 0.0.0-85f9a635-20240518005312 → 0.0.0-9477ebb9-20250403064906

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