ai 3.3.19 → 3.3.21

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,1903 @@
1
+ # ai
2
+
3
+ ## 3.3.21
4
+
5
+ ### Patch Changes
6
+
7
+ - aa2dc58: feat (ai/core): add maxToolRoundtrips to streamText
8
+ - Updated dependencies [aa2dc58]
9
+ - @ai-sdk/ui-utils@0.0.40
10
+ - @ai-sdk/react@0.0.53
11
+ - @ai-sdk/solid@0.0.43
12
+ - @ai-sdk/svelte@0.0.45
13
+ - @ai-sdk/vue@0.0.45
14
+
15
+ ## 3.3.20
16
+
17
+ ### Patch Changes
18
+
19
+ - 7807677: fix (rsc): Deep clone currentState in getMutableState()
20
+
21
+ ## 3.3.19
22
+
23
+ ### Patch Changes
24
+
25
+ - 7235de0: fix (ai/core): convertToCoreMessages accepts Message[]
26
+
27
+ ## 3.3.18
28
+
29
+ ### Patch Changes
30
+
31
+ - 9e3b5a5: feat (ai/core): add experimental_customProvider
32
+ - 26515cb: feat (ai/provider): introduce ProviderV1 specification
33
+ - Updated dependencies [26515cb]
34
+ - @ai-sdk/provider@0.0.22
35
+ - @ai-sdk/provider-utils@1.0.17
36
+ - @ai-sdk/ui-utils@0.0.39
37
+ - @ai-sdk/react@0.0.52
38
+ - @ai-sdk/solid@0.0.42
39
+ - @ai-sdk/svelte@0.0.44
40
+ - @ai-sdk/vue@0.0.44
41
+
42
+ ## 3.3.17
43
+
44
+ ### Patch Changes
45
+
46
+ - d151349: feat (ai/core): array output for generateObject / streamObject
47
+ - Updated dependencies [d151349]
48
+ - @ai-sdk/ui-utils@0.0.38
49
+ - @ai-sdk/react@0.0.51
50
+ - @ai-sdk/solid@0.0.41
51
+ - @ai-sdk/svelte@0.0.43
52
+ - @ai-sdk/vue@0.0.43
53
+
54
+ ## 3.3.16
55
+
56
+ ### Patch Changes
57
+
58
+ - 09f895f: feat (ai/core): no-schema output for generateObject / streamObject
59
+ - Updated dependencies [09f895f]
60
+ - @ai-sdk/provider-utils@1.0.16
61
+ - @ai-sdk/react@0.0.50
62
+ - @ai-sdk/solid@0.0.40
63
+ - @ai-sdk/svelte@0.0.42
64
+ - @ai-sdk/ui-utils@0.0.37
65
+ - @ai-sdk/vue@0.0.42
66
+
67
+ ## 3.3.15
68
+
69
+ ### Patch Changes
70
+
71
+ - b5a82b7: chore (ai): update zod-to-json-schema to 3.23.2
72
+ - Updated dependencies [b5a82b7]
73
+ - @ai-sdk/ui-utils@0.0.36
74
+ - @ai-sdk/react@0.0.49
75
+ - @ai-sdk/solid@0.0.39
76
+ - @ai-sdk/svelte@0.0.41
77
+ - @ai-sdk/vue@0.0.41
78
+
79
+ ## 3.3.14
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [d67fa9c]
84
+ - @ai-sdk/provider-utils@1.0.15
85
+ - @ai-sdk/react@0.0.48
86
+ - @ai-sdk/solid@0.0.38
87
+ - @ai-sdk/svelte@0.0.40
88
+ - @ai-sdk/ui-utils@0.0.35
89
+ - @ai-sdk/vue@0.0.40
90
+
91
+ ## 3.3.13
92
+
93
+ ### Patch Changes
94
+
95
+ - 412f943: fix (ai/core): make Buffer validation optional for environments without buffer
96
+
97
+ ## 3.3.12
98
+
99
+ ### Patch Changes
100
+
101
+ - f2c025e: feat (ai/core): prompt validation
102
+ - Updated dependencies [f2c025e]
103
+ - @ai-sdk/provider@0.0.21
104
+ - @ai-sdk/provider-utils@1.0.14
105
+ - @ai-sdk/ui-utils@0.0.34
106
+ - @ai-sdk/react@0.0.47
107
+ - @ai-sdk/solid@0.0.37
108
+ - @ai-sdk/svelte@0.0.39
109
+ - @ai-sdk/vue@0.0.39
110
+
111
+ ## 3.3.11
112
+
113
+ ### Patch Changes
114
+
115
+ - 03eb0f4: feat (ai/core): add "ai.operationId" telemetry attribute
116
+ - 099db96: feat (ai/core): add msToFirstChunk telemetry data
117
+ - Updated dependencies [b6c1dee]
118
+ - @ai-sdk/react@0.0.46
119
+
120
+ ## 3.3.10
121
+
122
+ ### Patch Changes
123
+
124
+ - Updated dependencies [04084a3]
125
+ - @ai-sdk/vue@0.0.38
126
+
127
+ ## 3.3.9
128
+
129
+ ### Patch Changes
130
+
131
+ - 6ac355e: feat (provider/anthropic): add cache control support
132
+ - b56dee1: chore (ai): deprecate prompt helpers
133
+ - Updated dependencies [6ac355e]
134
+ - @ai-sdk/provider@0.0.20
135
+ - @ai-sdk/provider-utils@1.0.13
136
+ - @ai-sdk/ui-utils@0.0.33
137
+ - @ai-sdk/react@0.0.45
138
+ - @ai-sdk/solid@0.0.36
139
+ - @ai-sdk/svelte@0.0.38
140
+ - @ai-sdk/vue@0.0.37
141
+
142
+ ## 3.3.8
143
+
144
+ ### Patch Changes
145
+
146
+ - Updated dependencies [dd712ac]
147
+ - @ai-sdk/provider-utils@1.0.12
148
+ - @ai-sdk/ui-utils@0.0.32
149
+ - @ai-sdk/react@0.0.44
150
+ - @ai-sdk/solid@0.0.35
151
+ - @ai-sdk/svelte@0.0.37
152
+ - @ai-sdk/vue@0.0.36
153
+
154
+ ## 3.3.7
155
+
156
+ ### Patch Changes
157
+
158
+ - eccbd8e: feat (ai/core): add onChunk callback to streamText
159
+ - Updated dependencies [dd4a0f5]
160
+ - @ai-sdk/provider@0.0.19
161
+ - @ai-sdk/provider-utils@1.0.11
162
+ - @ai-sdk/ui-utils@0.0.31
163
+ - @ai-sdk/react@0.0.43
164
+ - @ai-sdk/solid@0.0.34
165
+ - @ai-sdk/svelte@0.0.36
166
+ - @ai-sdk/vue@0.0.35
167
+
168
+ ## 3.3.6
169
+
170
+ ### Patch Changes
171
+
172
+ - e9c891d: feat (ai/react): useObject supports non-Zod schemas
173
+ - 3719e8a: chore (ai/core): provider registry code improvements
174
+ - Updated dependencies [e9c891d]
175
+ - Updated dependencies [4bd27a9]
176
+ - Updated dependencies [845754b]
177
+ - @ai-sdk/ui-utils@0.0.30
178
+ - @ai-sdk/react@0.0.42
179
+ - @ai-sdk/provider-utils@1.0.10
180
+ - @ai-sdk/provider@0.0.18
181
+ - @ai-sdk/solid@0.0.33
182
+ - @ai-sdk/svelte@0.0.35
183
+ - @ai-sdk/vue@0.0.34
184
+
185
+ ## 3.3.5
186
+
187
+ ### Patch Changes
188
+
189
+ - 9ada023: feat (ai/core): mask data stream error messages with streamText
190
+ - Updated dependencies [e5b58f3]
191
+ - @ai-sdk/ui-utils@0.0.29
192
+ - @ai-sdk/react@0.0.41
193
+ - @ai-sdk/solid@0.0.32
194
+ - @ai-sdk/svelte@0.0.34
195
+ - @ai-sdk/vue@0.0.33
196
+
197
+ ## 3.3.4
198
+
199
+ ### Patch Changes
200
+
201
+ - 029af4c: feat (ai/core): support schema name & description in generateObject & streamObject
202
+ - 3806c0c: chore (ai/ui): increase stream data warning timeout to 15 seconds
203
+ - db0118a: feat (ai/core): export Schema type
204
+ - Updated dependencies [029af4c]
205
+ - @ai-sdk/provider@0.0.17
206
+ - @ai-sdk/provider-utils@1.0.9
207
+ - @ai-sdk/ui-utils@0.0.28
208
+ - @ai-sdk/react@0.0.40
209
+ - @ai-sdk/solid@0.0.31
210
+ - @ai-sdk/svelte@0.0.33
211
+ - @ai-sdk/vue@0.0.32
212
+
213
+ ## 3.3.3
214
+
215
+ ### Patch Changes
216
+
217
+ - d58517b: feat (ai/openai): structured outputs
218
+ - Updated dependencies [d58517b]
219
+ - @ai-sdk/provider@0.0.16
220
+ - @ai-sdk/provider-utils@1.0.8
221
+ - @ai-sdk/ui-utils@0.0.27
222
+ - @ai-sdk/react@0.0.39
223
+ - @ai-sdk/solid@0.0.30
224
+ - @ai-sdk/svelte@0.0.32
225
+ - @ai-sdk/vue@0.0.31
226
+
227
+ ## 3.3.2
228
+
229
+ ### Patch Changes
230
+
231
+ - Updated dependencies [96aed25]
232
+ - @ai-sdk/provider@0.0.15
233
+ - @ai-sdk/provider-utils@1.0.7
234
+ - @ai-sdk/ui-utils@0.0.26
235
+ - @ai-sdk/react@0.0.38
236
+ - @ai-sdk/solid@0.0.29
237
+ - @ai-sdk/svelte@0.0.31
238
+ - @ai-sdk/vue@0.0.30
239
+
240
+ ## 3.3.1
241
+
242
+ ### Patch Changes
243
+
244
+ - 9614584: fix (ai/core): use Symbol.for
245
+ - 0762a22: feat (ai/core): support zod transformers in generateObject & streamObject
246
+ - Updated dependencies [9614584]
247
+ - Updated dependencies [0762a22]
248
+ - @ai-sdk/provider-utils@1.0.6
249
+ - @ai-sdk/react@0.0.37
250
+ - @ai-sdk/solid@0.0.28
251
+ - @ai-sdk/svelte@0.0.30
252
+ - @ai-sdk/ui-utils@0.0.25
253
+ - @ai-sdk/vue@0.0.29
254
+
255
+ ## 3.3.0
256
+
257
+ ### Minor Changes
258
+
259
+ - dbc3afb7: chore (ai): release AI SDK 3.3
260
+
261
+ ### Patch Changes
262
+
263
+ - b9827186: feat (ai/core): update operation.name telemetry attribute to include function id and detailed name
264
+
265
+ ## 3.2.45
266
+
267
+ ### Patch Changes
268
+
269
+ - Updated dependencies [5be25124]
270
+ - @ai-sdk/ui-utils@0.0.24
271
+ - @ai-sdk/react@0.0.36
272
+ - @ai-sdk/solid@0.0.27
273
+ - @ai-sdk/svelte@0.0.29
274
+ - @ai-sdk/vue@0.0.28
275
+
276
+ ## 3.2.44
277
+
278
+ ### Patch Changes
279
+
280
+ - Updated dependencies [a147d040]
281
+ - @ai-sdk/react@0.0.35
282
+
283
+ ## 3.2.43
284
+
285
+ ### Patch Changes
286
+
287
+ - Updated dependencies [b68fae4f]
288
+ - @ai-sdk/react@0.0.34
289
+
290
+ ## 3.2.42
291
+
292
+ ### Patch Changes
293
+
294
+ - f63c99e7: feat (ai/core): record OpenTelemetry gen_ai attributes
295
+ - Updated dependencies [fea7b604]
296
+ - @ai-sdk/ui-utils@0.0.23
297
+ - @ai-sdk/react@0.0.33
298
+ - @ai-sdk/solid@0.0.26
299
+ - @ai-sdk/svelte@0.0.28
300
+ - @ai-sdk/vue@0.0.27
301
+
302
+ ## 3.2.41
303
+
304
+ ### Patch Changes
305
+
306
+ - a12044c7: feat (ai/core): add recordInputs / recordOutputs setting to telemetry options
307
+ - Updated dependencies [1d93d716]
308
+ - @ai-sdk/ui-utils@0.0.22
309
+ - @ai-sdk/react@0.0.32
310
+ - @ai-sdk/solid@0.0.25
311
+ - @ai-sdk/svelte@0.0.27
312
+ - @ai-sdk/vue@0.0.26
313
+
314
+ ## 3.2.40
315
+
316
+ ### Patch Changes
317
+
318
+ - f56b7e66: feat (ai/ui): add toDataStreamResponse to LangchainAdapter.
319
+
320
+ ## 3.2.39
321
+
322
+ ### Patch Changes
323
+
324
+ - b694f2f9: feat (ai/svelte): add tool calling support to useChat
325
+ - Updated dependencies [b694f2f9]
326
+ - @ai-sdk/svelte@0.0.26
327
+
328
+ ## 3.2.38
329
+
330
+ ### Patch Changes
331
+
332
+ - 5c4b8cfc: chore (ai/core): rename ai stream methods to data stream (in streamText, LangChainAdapter).
333
+ - c450fcf7: feat (ui): invoke useChat onFinish with finishReason and tokens
334
+ - e4a1719f: chore (ai/ui): rename streamMode to streamProtocol
335
+ - 10158bf2: fix (ai/core): generateObject.doGenerate sets object telemetry attribute
336
+ - Updated dependencies [c450fcf7]
337
+ - Updated dependencies [e4a1719f]
338
+ - @ai-sdk/ui-utils@0.0.21
339
+ - @ai-sdk/svelte@0.0.25
340
+ - @ai-sdk/react@0.0.31
341
+ - @ai-sdk/solid@0.0.24
342
+ - @ai-sdk/vue@0.0.25
343
+
344
+ ## 3.2.37
345
+
346
+ ### Patch Changes
347
+
348
+ - b2bee4c5: fix (ai/ui): send data, body, headers in useChat().reload
349
+ - Updated dependencies [b2bee4c5]
350
+ - @ai-sdk/svelte@0.0.24
351
+ - @ai-sdk/react@0.0.30
352
+ - @ai-sdk/solid@0.0.23
353
+
354
+ ## 3.2.36
355
+
356
+ ### Patch Changes
357
+
358
+ - a8d1c9e9: feat (ai/core): parallel image download
359
+ - cfa360a8: feat (ai/core): add telemetry support to embedMany function.
360
+ - 49808ca5: feat (ai/core): add telemetry to streamObject
361
+ - Updated dependencies [a8d1c9e9]
362
+ - @ai-sdk/provider-utils@1.0.5
363
+ - @ai-sdk/provider@0.0.14
364
+ - @ai-sdk/react@0.0.29
365
+ - @ai-sdk/svelte@0.0.23
366
+ - @ai-sdk/ui-utils@0.0.20
367
+ - @ai-sdk/vue@0.0.24
368
+ - @ai-sdk/solid@0.0.22
369
+
370
+ ## 3.2.35
371
+
372
+ ### Patch Changes
373
+
374
+ - 1be014b7: feat (ai/core): add telemetry support for embed function.
375
+ - 4f88248f: feat (core): support json schema
376
+ - 0d545231: chore (ai/svelte): change sswr into optional peer dependency
377
+ - Updated dependencies [4f88248f]
378
+ - @ai-sdk/provider-utils@1.0.4
379
+ - @ai-sdk/react@0.0.28
380
+ - @ai-sdk/svelte@0.0.22
381
+ - @ai-sdk/ui-utils@0.0.19
382
+ - @ai-sdk/vue@0.0.23
383
+ - @ai-sdk/solid@0.0.21
384
+
385
+ ## 3.2.34
386
+
387
+ ### Patch Changes
388
+
389
+ - 2b9da0f0: feat (core): support stopSequences setting.
390
+ - a5b58845: feat (core): support topK setting
391
+ - 420f170f: chore (ai/core): use interfaces for core function results
392
+ - 13b27ec6: chore (ai/core): remove grammar mode
393
+ - 644f6582: feat (ai/core): add telemetry to generateObject
394
+ - Updated dependencies [2b9da0f0]
395
+ - Updated dependencies [a5b58845]
396
+ - Updated dependencies [4aa8deb3]
397
+ - Updated dependencies [13b27ec6]
398
+ - @ai-sdk/provider@0.0.13
399
+ - @ai-sdk/provider-utils@1.0.3
400
+ - @ai-sdk/react@0.0.27
401
+ - @ai-sdk/svelte@0.0.21
402
+ - @ai-sdk/ui-utils@0.0.18
403
+ - @ai-sdk/solid@0.0.20
404
+ - @ai-sdk/vue@0.0.22
405
+
406
+ ## 3.2.33
407
+
408
+ ### Patch Changes
409
+
410
+ - 4b2c09d9: feat (ai/ui): add mutator function support to useChat / setMessages
411
+ - 281e7662: chore: add description to ai package
412
+ - Updated dependencies [f63829fe]
413
+ - Updated dependencies [4b2c09d9]
414
+ - @ai-sdk/ui-utils@0.0.17
415
+ - @ai-sdk/svelte@0.0.20
416
+ - @ai-sdk/react@0.0.26
417
+ - @ai-sdk/solid@0.0.19
418
+ - @ai-sdk/vue@0.0.21
419
+
420
+ ## 3.2.32
421
+
422
+ ### Patch Changes
423
+
424
+ - Updated dependencies [5b7b3bbe]
425
+ - @ai-sdk/ui-utils@0.0.16
426
+ - @ai-sdk/react@0.0.25
427
+ - @ai-sdk/solid@0.0.18
428
+ - @ai-sdk/svelte@0.0.19
429
+ - @ai-sdk/vue@0.0.20
430
+
431
+ ## 3.2.31
432
+
433
+ ### Patch Changes
434
+
435
+ - b86af092: feat (ai/core): add langchain stream event v2 support to LangChainAdapter
436
+
437
+ ## 3.2.30
438
+
439
+ ### Patch Changes
440
+
441
+ - Updated dependencies [19c3d50f]
442
+ - @ai-sdk/react@0.0.24
443
+ - @ai-sdk/vue@0.0.19
444
+
445
+ ## 3.2.29
446
+
447
+ ### Patch Changes
448
+
449
+ - e710b388: fix (ai/core): race condition in mergeStreams
450
+ - 6078a690: feat (ai/core): introduce stream data support in toAIStreamResponse
451
+
452
+ ## 3.2.28
453
+
454
+ ### Patch Changes
455
+
456
+ - 68d1f78c: fix (ai/core): do not construct object promise in streamObject result until requested
457
+ - f0bc1e79: feat (ai/ui): add system message support to convertToCoreMessages
458
+ - 1f67fe49: feat (ai/ui): stream tool calls with streamText and useChat
459
+ - Updated dependencies [1f67fe49]
460
+ - @ai-sdk/ui-utils@0.0.15
461
+ - @ai-sdk/react@0.0.23
462
+ - @ai-sdk/solid@0.0.17
463
+ - @ai-sdk/svelte@0.0.18
464
+ - @ai-sdk/vue@0.0.18
465
+
466
+ ## 3.2.27
467
+
468
+ ### Patch Changes
469
+
470
+ - 811f4493: fix (ai/core): generateText token usage is sum over all roundtrips
471
+
472
+ ## 3.2.26
473
+
474
+ ### Patch Changes
475
+
476
+ - 8f545ce9: fix (ai/core): forward request headers in generateObject and streamObject
477
+
478
+ ## 3.2.25
479
+
480
+ ### Patch Changes
481
+
482
+ - 99ddbb74: feat (ai/react): add experimental support for managing attachments to useChat
483
+ - Updated dependencies [99ddbb74]
484
+ - @ai-sdk/ui-utils@0.0.14
485
+ - @ai-sdk/react@0.0.22
486
+ - @ai-sdk/solid@0.0.16
487
+ - @ai-sdk/svelte@0.0.17
488
+ - @ai-sdk/vue@0.0.17
489
+
490
+ ## 3.2.24
491
+
492
+ ### Patch Changes
493
+
494
+ - f041c056: feat (ai/core): add roundtrips property to generateText result
495
+
496
+ ## 3.2.23
497
+
498
+ ### Patch Changes
499
+
500
+ - a6cb2c8b: feat (ai/ui): add keepLastMessageOnError option to useChat
501
+ - Updated dependencies [a6cb2c8b]
502
+ - @ai-sdk/ui-utils@0.0.13
503
+ - @ai-sdk/svelte@0.0.16
504
+ - @ai-sdk/react@0.0.21
505
+ - @ai-sdk/solid@0.0.15
506
+ - @ai-sdk/vue@0.0.16
507
+
508
+ ## 3.2.22
509
+
510
+ ### Patch Changes
511
+
512
+ - 53fccf1c: fix (ai/core): report error on controller
513
+ - dd0d854e: feat (ai/vue): add useAssistant
514
+ - Updated dependencies [dd0d854e]
515
+ - @ai-sdk/vue@0.0.15
516
+
517
+ ## 3.2.21
518
+
519
+ ### Patch Changes
520
+
521
+ - 56bbc2a7: feat (ai/ui): set body and headers directly on options for handleSubmit and append
522
+ - Updated dependencies [56bbc2a7]
523
+ - @ai-sdk/ui-utils@0.0.12
524
+ - @ai-sdk/svelte@0.0.15
525
+ - @ai-sdk/react@0.0.20
526
+ - @ai-sdk/solid@0.0.14
527
+ - @ai-sdk/vue@0.0.14
528
+
529
+ ## 3.2.20
530
+
531
+ ### Patch Changes
532
+
533
+ - 671331b6: feat (core): add experimental OpenTelemetry support for generateText and streamText
534
+
535
+ ## 3.2.19
536
+
537
+ ### Patch Changes
538
+
539
+ - b7290943: chore (ai/core): rename TokenUsage type to CompletionTokenUsage
540
+ - b7290943: feat (ai/core): add token usage to embed and embedMany
541
+ - Updated dependencies [b7290943]
542
+ - @ai-sdk/provider@0.0.12
543
+ - @ai-sdk/provider-utils@1.0.2
544
+ - @ai-sdk/react@0.0.19
545
+ - @ai-sdk/svelte@0.0.14
546
+ - @ai-sdk/ui-utils@0.0.11
547
+ - @ai-sdk/solid@0.0.13
548
+ - @ai-sdk/vue@0.0.13
549
+
550
+ ## 3.2.18
551
+
552
+ ### Patch Changes
553
+
554
+ - Updated dependencies [70d18003]
555
+ - @ai-sdk/react@0.0.18
556
+
557
+ ## 3.2.17
558
+
559
+ ### Patch Changes
560
+
561
+ - 3db90c3d: allow empty handleSubmit submissions for useChat
562
+ - abb22602: feat (ai): verify that system messages have string content
563
+ - 5c1f0bd3: fix unclosed streamable value console message
564
+ - Updated dependencies [6a11cfaa]
565
+ - Updated dependencies [3db90c3d]
566
+ - Updated dependencies [d481729f]
567
+ - @ai-sdk/react@0.0.17
568
+ - @ai-sdk/svelte@0.0.13
569
+ - @ai-sdk/solid@0.0.12
570
+ - @ai-sdk/vue@0.0.12
571
+ - @ai-sdk/provider-utils@1.0.1
572
+ - @ai-sdk/ui-utils@0.0.10
573
+
574
+ ## 3.2.16
575
+
576
+ ### Patch Changes
577
+
578
+ - Updated dependencies [3f756a6b]
579
+ - @ai-sdk/react@0.0.16
580
+
581
+ ## 3.2.15
582
+
583
+ ### Patch Changes
584
+
585
+ - 6c99581e: fix (ai/react): stop() on useObject does not throw error and clears isLoading
586
+ - Updated dependencies [6c99581e]
587
+ - @ai-sdk/react@0.0.15
588
+
589
+ ## 3.2.14
590
+
591
+ ### Patch Changes
592
+
593
+ - Updated dependencies [9b50003d]
594
+ - Updated dependencies [1894f811]
595
+ - @ai-sdk/react@0.0.14
596
+ - @ai-sdk/ui-utils@0.0.9
597
+ - @ai-sdk/solid@0.0.11
598
+ - @ai-sdk/svelte@0.0.12
599
+ - @ai-sdk/vue@0.0.11
600
+
601
+ ## 3.2.13
602
+
603
+ ### Patch Changes
604
+
605
+ - d3100b9c: feat (ai/ui): support custom fetch function in useChat, useCompletion, useAssistant, useObject
606
+ - Updated dependencies [d3100b9c]
607
+ - @ai-sdk/ui-utils@0.0.8
608
+ - @ai-sdk/svelte@0.0.11
609
+ - @ai-sdk/react@0.0.13
610
+ - @ai-sdk/solid@0.0.10
611
+ - @ai-sdk/vue@0.0.10
612
+
613
+ ## 3.2.12
614
+
615
+ ### Patch Changes
616
+
617
+ - 5edc6110: feat (ai/core): add custom request header support
618
+ - Updated dependencies [5edc6110]
619
+ - Updated dependencies [5edc6110]
620
+ - Updated dependencies [5edc6110]
621
+ - @ai-sdk/provider@0.0.11
622
+ - @ai-sdk/provider-utils@1.0.0
623
+ - @ai-sdk/react@0.0.12
624
+ - @ai-sdk/svelte@0.0.10
625
+ - @ai-sdk/ui-utils@0.0.7
626
+ - @ai-sdk/solid@0.0.9
627
+ - @ai-sdk/vue@0.0.9
628
+
629
+ ## 3.2.11
630
+
631
+ ### Patch Changes
632
+
633
+ - c908f741: chore (ui/solid): update solidjs useChat and useCompletion to feature parity with React
634
+ - 827ef450: feat (ai/ui): improve error handling in useAssistant
635
+ - Updated dependencies [c908f741]
636
+ - Updated dependencies [827ef450]
637
+ - @ai-sdk/solid@0.0.8
638
+ - @ai-sdk/svelte@0.0.9
639
+ - @ai-sdk/react@0.0.11
640
+
641
+ ## 3.2.10
642
+
643
+ ### Patch Changes
644
+
645
+ - Updated dependencies [5b04204b]
646
+ - Updated dependencies [8f482903]
647
+ - @ai-sdk/react@0.0.10
648
+
649
+ ## 3.2.9
650
+
651
+ ### Patch Changes
652
+
653
+ - 82d9c8de: feat (ai/ui): make event in useAssistant submitMessage optional
654
+ - Updated dependencies [82d9c8de]
655
+ - Updated dependencies [321a7d0e]
656
+ - Updated dependencies [82d9c8de]
657
+ - @ai-sdk/svelte@0.0.8
658
+ - @ai-sdk/react@0.0.9
659
+ - @ai-sdk/vue@0.0.8
660
+
661
+ ## 3.2.8
662
+
663
+ ### Patch Changes
664
+
665
+ - 54bf4083: feat (ai/react): control request body in useChat
666
+ - Updated dependencies [54bf4083]
667
+ - @ai-sdk/ui-utils@0.0.6
668
+ - @ai-sdk/react@0.0.8
669
+ - @ai-sdk/solid@0.0.7
670
+ - @ai-sdk/svelte@0.0.7
671
+ - @ai-sdk/vue@0.0.7
672
+
673
+ ## 3.2.7
674
+
675
+ ### Patch Changes
676
+
677
+ - d42b8907: feat (ui): make event in handleSubmit optional
678
+ - Updated dependencies [d42b8907]
679
+ - @ai-sdk/svelte@0.0.6
680
+ - @ai-sdk/react@0.0.7
681
+ - @ai-sdk/solid@0.0.6
682
+ - @ai-sdk/vue@0.0.6
683
+
684
+ ## 3.2.6
685
+
686
+ ### Patch Changes
687
+
688
+ - 74e28222: fix (ai/rsc): "could not find InternalStreamableUIClient" bug
689
+
690
+ ## 3.2.5
691
+
692
+ ### Patch Changes
693
+
694
+ - 4d426d0c: fix (ai): split provider and model ids correctly in the provider registry
695
+
696
+ ## 3.2.4
697
+
698
+ ### Patch Changes
699
+
700
+ - Updated dependencies [3cb103bc]
701
+ - @ai-sdk/react@0.0.6
702
+
703
+ ## 3.2.3
704
+
705
+ ### Patch Changes
706
+
707
+ - 89b7552b: chore (ai): remove deprecation from ai/react imports, add experimental_useObject
708
+ - Updated dependencies [02f6a088]
709
+ - @ai-sdk/provider-utils@0.0.16
710
+ - @ai-sdk/react@0.0.5
711
+ - @ai-sdk/svelte@0.0.5
712
+ - @ai-sdk/ui-utils@0.0.5
713
+ - @ai-sdk/solid@0.0.5
714
+ - @ai-sdk/vue@0.0.5
715
+
716
+ ## 3.2.2
717
+
718
+ ### Patch Changes
719
+
720
+ - 0565cd72: feat (ai/core): add toJsonResponse to generateObject result.
721
+
722
+ ## 3.2.1
723
+
724
+ ### Patch Changes
725
+
726
+ - 008725ec: feat (ai): add textStream, toTextStreamResponse(), and pipeTextStreamToResponse() to streamObject
727
+ - 520fb2d5: feat (rsc): add streamUI onFinish callback
728
+ - Updated dependencies [008725ec]
729
+ - Updated dependencies [008725ec]
730
+ - @ai-sdk/react@0.0.4
731
+ - @ai-sdk/ui-utils@0.0.4
732
+ - @ai-sdk/solid@0.0.4
733
+ - @ai-sdk/svelte@0.0.4
734
+ - @ai-sdk/vue@0.0.4
735
+
736
+ ## 3.2.0
737
+
738
+ ### Minor Changes
739
+
740
+ - 85ef6d18: chore (ai): AI SDK 3.2 release
741
+
742
+ ### Patch Changes
743
+
744
+ - b965dd2d: fix (core): pass settings correctly for generateObject and streamObject
745
+
746
+ ## 3.1.37
747
+
748
+ ### Patch Changes
749
+
750
+ - 85712895: chore (@ai-sdk/provider-utils): move test helper to provider utils
751
+ - Updated dependencies [85712895]
752
+ - Updated dependencies [85712895]
753
+ - @ai-sdk/provider-utils@0.0.15
754
+ - @ai-sdk/react@0.0.3
755
+ - @ai-sdk/svelte@0.0.3
756
+ - @ai-sdk/ui-utils@0.0.3
757
+ - @ai-sdk/solid@0.0.3
758
+ - @ai-sdk/vue@0.0.3
759
+
760
+ ## 3.1.36
761
+
762
+ ### Patch Changes
763
+
764
+ - 4728c37f: feat (core): add text embedding model support to provider registry
765
+ - 8c49166e: chore (core): rename experimental_createModelRegistry to experimental_createProviderRegistry
766
+ - Updated dependencies [7910ae84]
767
+ - @ai-sdk/provider-utils@0.0.14
768
+ - @ai-sdk/react@0.0.2
769
+ - @ai-sdk/svelte@0.0.2
770
+ - @ai-sdk/ui-utils@0.0.2
771
+ - @ai-sdk/solid@0.0.2
772
+ - @ai-sdk/vue@0.0.2
773
+
774
+ ## 3.1.35
775
+
776
+ ### Patch Changes
777
+
778
+ - 06123501: feat (core): support https and data url strings in image parts
779
+
780
+ ## 3.1.34
781
+
782
+ ### Patch Changes
783
+
784
+ - d25566ac: feat (core): add cosineSimilarity helper function
785
+ - 87a5d27e: feat (core): introduce InvalidMessageRoleError.
786
+
787
+ ## 3.1.33
788
+
789
+ ### Patch Changes
790
+
791
+ - 6fb14b5d: chore (streams): deprecate nanoid export.
792
+ - 05536768: feat (core): add experimental model registry
793
+
794
+ ## 3.1.32
795
+
796
+ ### Patch Changes
797
+
798
+ - 3cabf078: fix(ai/rsc): Refactor streamable UI internal implementation
799
+
800
+ ## 3.1.31
801
+
802
+ ### Patch Changes
803
+
804
+ - 85f209a4: chore: extracted ui library support into separate modules
805
+ - 85f209a4: removed (streams): experimental_StreamingReactResponse was removed. Please use AI SDK RSC instead.
806
+ - Updated dependencies [85f209a4]
807
+ - @ai-sdk/ui-utils@0.0.1
808
+ - @ai-sdk/svelte@0.0.1
809
+ - @ai-sdk/react@0.0.1
810
+ - @ai-sdk/solid@0.0.1
811
+ - @ai-sdk/vue@0.0.1
812
+
813
+ ## 3.1.30
814
+
815
+ ### Patch Changes
816
+
817
+ - fcf4323b: fix (core): filter out empty assistant text messages
818
+
819
+ ## 3.1.29
820
+
821
+ ### Patch Changes
822
+
823
+ - 28427d3e: feat (core): add streamObject onFinish callback
824
+
825
+ ## 3.1.28
826
+
827
+ ### Patch Changes
828
+
829
+ - 102ca22f: feat (core): add object promise to streamObject result
830
+ - Updated dependencies [102ca22f]
831
+ - @ai-sdk/provider@0.0.10
832
+ - @ai-sdk/provider-utils@0.0.13
833
+
834
+ ## 3.1.27
835
+
836
+ ### Patch Changes
837
+
838
+ - c9198d4d: feat (ui): send annotation and data fields in useChat when sendExtraMessageFields is true
839
+ - Updated dependencies [09295e2e]
840
+ - Updated dependencies [09295e2e]
841
+ - Updated dependencies [043a5de2]
842
+ - @ai-sdk/provider@0.0.9
843
+ - @ai-sdk/provider-utils@0.0.12
844
+
845
+ ## 3.1.26
846
+
847
+ ### Patch Changes
848
+
849
+ - 5ee44cae: feat (provider): langchain StringOutputParser support
850
+
851
+ ## 3.1.25
852
+
853
+ ### Patch Changes
854
+
855
+ - ff281126: fix(ai/rsc): Remove extra reconcilation of streamUI
856
+
857
+ ## 3.1.24
858
+
859
+ ### Patch Changes
860
+
861
+ - 93cae126: fix(ai/rsc): Fix unsafe {} type in application code for StreamableValue
862
+ - 08b5c509: feat (core): add tokenUsage to streamObject result
863
+
864
+ ## 3.1.23
865
+
866
+ ### Patch Changes
867
+
868
+ - c03cafe6: chore (core, ui): rename maxAutomaticRoundtrips to maxToolRoundtrips
869
+
870
+ ## 3.1.22
871
+
872
+ ### Patch Changes
873
+
874
+ - 14bb8694: chore (ui): move maxAutomaticRoundtrips and addToolResult out of experimental
875
+
876
+ ## 3.1.21
877
+
878
+ ### Patch Changes
879
+
880
+ - 213f2411: fix (core,streams): support ResponseInit variants
881
+ - 09698bca: chore (streams): deprecate streaming helpers that have a provider replacement
882
+
883
+ ## 3.1.20
884
+
885
+ ### Patch Changes
886
+
887
+ - 0e1da476: feat (core): add maxAutomaticRoundtrips setting to generateText
888
+
889
+ ## 3.1.19
890
+
891
+ ### Patch Changes
892
+
893
+ - 9882d24b: fix (ui/svelte): send data to server
894
+ - 131bbd3e: fix (ui): remove console.log statements
895
+
896
+ ## 3.1.18
897
+
898
+ ### Patch Changes
899
+
900
+ - f9dee8ac: fix(ai/rsc): Fix types for createStreamableValue and createStreamableUI
901
+ - 1c0ebf8e: feat (core): add responseMessages to generateText result
902
+
903
+ ## 3.1.17
904
+
905
+ ### Patch Changes
906
+
907
+ - 92b993b7: ai/rsc: improve getAIState and getMutableAIState types
908
+ - 7de628e9: chore (ui): deprecate old function/tool call handling
909
+ - 7de628e9: feat (ui): add onToolCall handler to useChat
910
+
911
+ ## 3.1.16
912
+
913
+ ### Patch Changes
914
+
915
+ - f39c0dd2: feat (core, rsc): add toolChoice setting
916
+ - Updated dependencies [f39c0dd2]
917
+ - @ai-sdk/provider@0.0.8
918
+ - @ai-sdk/provider-utils@0.0.11
919
+
920
+ ## 3.1.15
921
+
922
+ ### Patch Changes
923
+
924
+ - 8e780288: feat (ai/core): add onFinish callback to streamText
925
+ - 8e780288: feat (ai/core): add text, toolCalls, and toolResults promises to StreamTextResult (matching the generateText result API with async methods)
926
+ - Updated dependencies [8e780288]
927
+ - @ai-sdk/provider@0.0.7
928
+ - @ai-sdk/provider-utils@0.0.10
929
+
930
+ ## 3.1.14
931
+
932
+ ### Patch Changes
933
+
934
+ - 6109c6a: feat (ai/react): add experimental_maxAutomaticRoundtrips to useChat
935
+
936
+ ## 3.1.13
937
+
938
+ ### Patch Changes
939
+
940
+ - 60117c9: dependencies (ai/ui): add React 18.3 and 19 support (peer dependency)
941
+ - Updated dependencies [6a50ac4]
942
+ - Updated dependencies [6a50ac4]
943
+ - @ai-sdk/provider@0.0.6
944
+ - @ai-sdk/provider-utils@0.0.9
945
+
946
+ ## 3.1.12
947
+
948
+ ### Patch Changes
949
+
950
+ - ae05fb7: feat (ai/streams): add StreamData support to streamToResponse
951
+
952
+ ## 3.1.11
953
+
954
+ ### Patch Changes
955
+
956
+ - a085d42: fix (ai/ui): decouple StreamData chunks from LLM stream
957
+
958
+ ## 3.1.10
959
+
960
+ ### Patch Changes
961
+
962
+ - 3a21030: feat (ai/core): add embedMany function
963
+
964
+ ## 3.1.9
965
+
966
+ ### Patch Changes
967
+
968
+ - 18a9655: feat (ai/svelte): add useAssistant
969
+
970
+ ## 3.1.8
971
+
972
+ ### Patch Changes
973
+
974
+ - 0f6bc4e: feat (ai/core): add embed function
975
+ - Updated dependencies [0f6bc4e]
976
+ - @ai-sdk/provider@0.0.5
977
+ - @ai-sdk/provider-utils@0.0.8
978
+
979
+ ## 3.1.7
980
+
981
+ ### Patch Changes
982
+
983
+ - f617b97: feat (ai): support client/server tool calls with useChat and streamText
984
+
985
+ ## 3.1.6
986
+
987
+ ### Patch Changes
988
+
989
+ - 2e78acb: Deprecate StreamingReactResponse (use AI SDK RSC instead).
990
+ - 8439884: ai/rsc: make RSC streamable utils chainable
991
+ - 325ca55: feat (ai/core): improve image content part error message
992
+ - Updated dependencies [325ca55]
993
+ - @ai-sdk/provider@0.0.4
994
+ - @ai-sdk/provider-utils@0.0.7
995
+
996
+ ## 3.1.5
997
+
998
+ ### Patch Changes
999
+
1000
+ - 5b01c13: feat (ai/core): add system message support in messages list
1001
+
1002
+ ## 3.1.4
1003
+
1004
+ ### Patch Changes
1005
+
1006
+ - ceb44bc: feat (ai/ui): add stop() helper to useAssistant (important: AssistantResponse now requires OpenAI SDK 4.42+)
1007
+ - 37c9d4c: feat (ai/streams): add LangChainAdapter.toAIStream()
1008
+
1009
+ ## 3.1.3
1010
+
1011
+ ### Patch Changes
1012
+
1013
+ - 970a099: fix (ai/core): streamObject fixes partial json with empty objects correctly
1014
+ - 1ac2390: feat (ai/core): add usage and finishReason to streamText result.
1015
+ - Updated dependencies [276f22b]
1016
+ - @ai-sdk/provider-utils@0.0.6
1017
+
1018
+ ## 3.1.2
1019
+
1020
+ ### Patch Changes
1021
+
1022
+ - d1b1880: fix (ai/core): allow reading streams in streamText result multiple times
1023
+
1024
+ ## 3.1.1
1025
+
1026
+ ### Patch Changes
1027
+
1028
+ - 0f77132: ai/rsc: remove experimental\_ from streamUI
1029
+
1030
+ ## 3.1.0
1031
+
1032
+ ### Minor Changes
1033
+
1034
+ - 73356a9: Move AI Core functions out of experimental (streamText, generateText, streamObject, generateObject).
1035
+
1036
+ ## 3.0.35
1037
+
1038
+ ### Patch Changes
1039
+
1040
+ - 41d5736: ai/core: re-expose language model types.
1041
+ - b4c68ec: ai/rsc: ReadableStream as provider for createStreamableValue; add .append() method
1042
+ - Updated dependencies [41d5736]
1043
+ - @ai-sdk/provider@0.0.3
1044
+ - @ai-sdk/provider-utils@0.0.5
1045
+
1046
+ ## 3.0.34
1047
+
1048
+ ### Patch Changes
1049
+
1050
+ - b9a831e: ai/rsc: add experimental_streamUI()
1051
+
1052
+ ## 3.0.33
1053
+
1054
+ ### Patch Changes
1055
+
1056
+ - 56ef84a: ai/core: fix abort handling in transformation stream
1057
+ - Updated dependencies [56ef84a]
1058
+ - @ai-sdk/provider-utils@0.0.4
1059
+
1060
+ ## 3.0.32
1061
+
1062
+ ### Patch Changes
1063
+
1064
+ - 0e0d2af: ai/core: add pipeTextStreamToResponse helper to streamText.
1065
+
1066
+ ## 3.0.31
1067
+
1068
+ ### Patch Changes
1069
+
1070
+ - 74c63b1: ai/core: add toAIStreamResponse() helper to streamText.
1071
+
1072
+ ## 3.0.30
1073
+
1074
+ ### Patch Changes
1075
+
1076
+ - e7e5898: use-assistant: fix missing message content
1077
+
1078
+ ## 3.0.29
1079
+
1080
+ ### Patch Changes
1081
+
1082
+ - 22a737e: Fix: mark useAssistant as in progress for append/submitMessage.
1083
+
1084
+ ## 3.0.28
1085
+
1086
+ ### Patch Changes
1087
+
1088
+ - d6431ae: ai/core: add logprobs support (thanks @SamStenner for the contribution)
1089
+ - 25f3350: ai/core: add support for getting raw response headers.
1090
+ - Updated dependencies [d6431ae]
1091
+ - Updated dependencies [25f3350]
1092
+ - @ai-sdk/provider@0.0.2
1093
+ - @ai-sdk/provider-utils@0.0.3
1094
+
1095
+ ## 3.0.27
1096
+
1097
+ ### Patch Changes
1098
+
1099
+ - 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.
1100
+ - Updated dependencies [eb150a6]
1101
+ - @ai-sdk/provider-utils@0.0.2
1102
+ - @ai-sdk/provider@0.0.1
1103
+
1104
+ ## 3.0.26
1105
+
1106
+ ### Patch Changes
1107
+
1108
+ - f90f6a1: ai/core: add pipeAIStreamToResponse() to streamText result.
1109
+
1110
+ ## 3.0.25
1111
+
1112
+ ### Patch Changes
1113
+
1114
+ - 1e84d6d: Fix: remove mistral lib type dependency.
1115
+ - 9c2a049: Add append() helper to useAssistant.
1116
+
1117
+ ## 3.0.24
1118
+
1119
+ ### Patch Changes
1120
+
1121
+ - e94fb32: feat(ai/rsc): Make `onSetAIState` and `onGetUIState` stable
1122
+
1123
+ ## 3.0.23
1124
+
1125
+ ### Patch Changes
1126
+
1127
+ - 66b5892: Add streamMode parameter to useChat and useCompletion.
1128
+ - Updated dependencies [7b8791d]
1129
+ - @ai-sdk/provider-utils@0.0.1
1130
+
1131
+ ## 3.0.22
1132
+
1133
+ ### Patch Changes
1134
+
1135
+ - 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.
1136
+ - ea6b0e1: Expose formatStreamPart, parseStreamPart, and readDataStream helpers.
1137
+
1138
+ ## 3.0.21
1139
+
1140
+ ### Patch Changes
1141
+
1142
+ - 87d3db5: Extracted @ai-sdk/provider package
1143
+ - 8c40f8c: ai/core: Fix openai provider streamObject for gpt-4-turbo
1144
+ - 5cd29bd: ai/core: add toTextStreamResponse() method to streamText result
1145
+
1146
+ ## 3.0.20
1147
+
1148
+ ### Patch Changes
1149
+
1150
+ - f42bbb5: Remove experimental from useAssistant and AssistantResponse.
1151
+ - 149fe26: Deprecate <Tokens/>
1152
+ - 2eb4b55: Remove experimental\_ prefix from StreamData.
1153
+ - e45fa96: Add stream support for Bedrock/Cohere.
1154
+ - 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.
1155
+
1156
+ ## 3.0.19
1157
+
1158
+ ### Patch Changes
1159
+
1160
+ - 4f4c7f5: ai/core: Anthropic tool call support
1161
+
1162
+ ## 3.0.18
1163
+
1164
+ ### Patch Changes
1165
+
1166
+ - 63d587e: Add Anthropic provider for ai/core functions (no tool calling).
1167
+ - 63d587e: Add automatic mime type detection for images in ai/core prompts.
1168
+
1169
+ ## 3.0.17
1170
+
1171
+ ### Patch Changes
1172
+
1173
+ - 2b991c4: Add Google Generative AI provider for ai/core functions.
1174
+
1175
+ ## 3.0.16
1176
+
1177
+ ### Patch Changes
1178
+
1179
+ - a54ea77: feat(ai/rsc): add `useStreamableValue`
1180
+
1181
+ ## 3.0.15
1182
+
1183
+ ### Patch Changes
1184
+
1185
+ - 4aed2a5: Add JSDoc comments for ai/core functions.
1186
+ - cf8d12f: Export experimental language model specification under `ai/spec`.
1187
+
1188
+ ## 3.0.14
1189
+
1190
+ ### Patch Changes
1191
+
1192
+ - 8088de8: fix(ai/rsc): improve typings for `StreamableValue`
1193
+ - 20007b9: feat(ai/rsc): support string diff and patch in streamable value
1194
+ - 6039460: Support Bedrock Anthropic Stream for Messages API.
1195
+ - e83bfe3: Added experimental ai/core functions (streamText, generateText, streamObject, generateObject). Add OpenAI and Mistral language model providers.
1196
+
1197
+ ## 3.0.13
1198
+
1199
+ ### Patch Changes
1200
+
1201
+ - 026d061: Expose setMessages in useAssistant hook
1202
+ - 42209be: AssistantResponse: specify forwardStream return type.
1203
+
1204
+ ## 3.0.12
1205
+
1206
+ ### Patch Changes
1207
+
1208
+ - b99b008: fix(ai/rsc): avoid appending boundary if the same reference was passed
1209
+
1210
+ ## 3.0.11
1211
+
1212
+ ### Patch Changes
1213
+
1214
+ - ce009e2: Added OpenAI assistants streaming.
1215
+ - 3f9bf3e: Updates types to OpenAI SDK 4.29.0
1216
+
1217
+ ## 3.0.10
1218
+
1219
+ ### Patch Changes
1220
+
1221
+ - 33d261a: fix(ai/rsc): Fix .append() behavior
1222
+
1223
+ ## 3.0.9
1224
+
1225
+ ### Patch Changes
1226
+
1227
+ - 81ca3d6: fix(ai/rsc): improve .done() argument type
1228
+
1229
+ ## 3.0.8
1230
+
1231
+ ### Patch Changes
1232
+
1233
+ - a94aab2: ai/rsc: optimize streamable value stream size
1234
+
1235
+ ## 3.0.7
1236
+
1237
+ ### Patch Changes
1238
+
1239
+ - 9a9ae73: feat(ai/rsc): readStreamableValue
1240
+
1241
+ ## 3.0.6
1242
+
1243
+ ### Patch Changes
1244
+
1245
+ - 1355ad0: Fix: experimental_onToolCall is called with parsed tool args
1246
+ - 9348f06: ai/rsc: improve dev error and warnings by trying to detect hanging streams
1247
+ - 8be9404: fix type resolution
1248
+
1249
+ ## 3.0.5
1250
+
1251
+ ### Patch Changes
1252
+
1253
+ - a973f1e: Support Anthropic SDK v0.15.0
1254
+ - e25f3ca: type improvements
1255
+
1256
+ ## 3.0.4
1257
+
1258
+ ### Patch Changes
1259
+
1260
+ - 7962862: fix `useActions` type inference
1261
+ - aab5324: Revert "fix(render): parse the args based on the zod schema"
1262
+ - fe55612: Bump OpenAI dependency to 4.28.4; fix type error in render
1263
+
1264
+ ## 3.0.3
1265
+
1266
+ ### Patch Changes
1267
+
1268
+ - 4d816ca: fix(render): parse the args based on the zod schema
1269
+ - d158a47: fix potential race conditions
1270
+
1271
+ ## 3.0.2
1272
+
1273
+ ### Patch Changes
1274
+
1275
+ - 73bd06e: fix(useActions): return typed object
1276
+
1277
+ ## 3.0.1
1278
+
1279
+ ### Patch Changes
1280
+
1281
+ - ac20a25: ai/rsc: fix text response and async generator
1282
+ - b88778f: Added onText callback for text tokens.
1283
+
1284
+ ## 3.0.0
1285
+
1286
+ ### Major Changes
1287
+
1288
+ - 51054a9: add ai/rsc
1289
+
1290
+ ## 2.2.37
1291
+
1292
+ ### Patch Changes
1293
+
1294
+ - a6b5764: Add support for Mistral's JavaScript SDK
1295
+
1296
+ ## 2.2.36
1297
+
1298
+ ### Patch Changes
1299
+
1300
+ - 141f0ce: Fix: onFinal callback is invoked with text from onToolCall when onToolCall returns string
1301
+
1302
+ ## 2.2.35
1303
+
1304
+ ### Patch Changes
1305
+
1306
+ - b717dad: Adding Inkeep as a stream provider
1307
+
1308
+ ## 2.2.34
1309
+
1310
+ ### Patch Changes
1311
+
1312
+ - 2c8ffdb: cohere-stream: support AsyncIterable
1313
+ - ed1e278: Message annotations handling for all Message types
1314
+
1315
+ ## 2.2.33
1316
+
1317
+ ### Patch Changes
1318
+
1319
+ - 8542ae7: react/use-assistant: add onError handler
1320
+ - 97039ff: OpenAIStream: Add support for the Azure OpenAI client library
1321
+
1322
+ ## 2.2.32
1323
+
1324
+ ### Patch Changes
1325
+
1326
+ - 7851fa0: StreamData: add `annotations` and `appendMessageAnnotation` support
1327
+
1328
+ ## 2.2.31
1329
+
1330
+ ### Patch Changes
1331
+
1332
+ - 9b89c4d: react/use-assistant: Expose setInput
1333
+ - 75751c9: ai/react: Add experimental_onToolCall to useChat.
1334
+
1335
+ ## 2.2.30
1336
+
1337
+ ### Patch Changes
1338
+
1339
+ - ac503e0: ai/solid: add chat request options to useChat
1340
+ - b78a73e: Add GoogleGenerativeAIStream for Gemini support
1341
+ - 5220336: ai/svelte: Add experimental_onToolCall to useChat.
1342
+ - ef99062: Add support for the Anthropic message API
1343
+ - 5220336: Add experimental_onToolCall to OpenAIStream.
1344
+ - ac503e0: ai/vue: add chat request options to useChat
1345
+
1346
+ ## 2.2.29
1347
+
1348
+ ### Patch Changes
1349
+
1350
+ - 5a9ae2e: ai/prompt: add `experimental_buildOpenAIMessages` to validate and cast AI SDK messages to OpenAI messages
1351
+
1352
+ ## 2.2.28
1353
+
1354
+ ### Patch Changes
1355
+
1356
+ - 07a679c: Add data message support to useAssistant & assistantResponse.
1357
+ - fbae595: ai/react: `api` functions are no longer used as a cache key in `useChat`
1358
+
1359
+ ## 2.2.27
1360
+
1361
+ ### Patch Changes
1362
+
1363
+ - 0fd1205: ai/vue: Add complex response parsing and StreamData support to useCompletion
1364
+ - a7dc746: experimental_useAssistant: Expose extra fetch options
1365
+ - 3dcf01e: ai/react Add data support to useCompletion
1366
+ - 0c3b338: ai/svelte: Add complex response parsing and StreamData support to useCompletion
1367
+ - 8284777: ai/solid: Add complex response parsing and StreamData support to useCompletion
1368
+
1369
+ ## 2.2.26
1370
+
1371
+ ### Patch Changes
1372
+
1373
+ - df1ad33: ai/vue: Add complex response parsing and StreamData support to useChat
1374
+ - 3ff8a56: Add `generateId` to use-chat params to allow overriding message ID generation
1375
+ - 6c2a49c: ai/react experimental_useAssistant() submit can be called without an event
1376
+ - 8b4f7d1: ai/react: Add complex response parsing and StreamData support to useCompletion
1377
+
1378
+ ## 2.2.25
1379
+
1380
+ ### Patch Changes
1381
+
1382
+ - 1e61c69: chore: specify the minimum react version to 18
1383
+ - 6aec2d2: Expose threadId in useAssistant
1384
+ - c2369df: Add AWS Bedrock support
1385
+ - 223fde3: ai/svelte: Add complex response parsing and StreamData support to useChat
1386
+
1387
+ ## 2.2.24
1388
+
1389
+ ### Patch Changes
1390
+
1391
+ - 69ca8f5: ai/react: add experimental_useAssistant hook and experimental_AssistantResponse
1392
+ - 3e2299e: experimental_StreamData/StreamingReactResponse: optimize parsing, improve types
1393
+ - 70bd2ac: ai/solid: add experimental_StreamData support to useChat
1394
+
1395
+ ## 2.2.23
1396
+
1397
+ ### Patch Changes
1398
+
1399
+ - 5a04321: add StreamData support to StreamingReactResponse, add client-side data API to react/use-chat
1400
+
1401
+ ## 2.2.22
1402
+
1403
+ ### Patch Changes
1404
+
1405
+ - 4529831: ai/react: Do not store initialMessages in useState
1406
+ - db5378c: experimental_StreamData: fix data type to be JSONValue
1407
+
1408
+ ## 2.2.21
1409
+
1410
+ ### Patch Changes
1411
+
1412
+ - 2c8d4bd: Support openai@4.16.0 and later
1413
+
1414
+ ## 2.2.20
1415
+
1416
+ ### Patch Changes
1417
+
1418
+ - 424d5ee: experimental_StreamData: fix trailing newline parsing bug in decoder
1419
+ - c364c6a: cohere: fix closing cohere stream, avoids response from hanging
1420
+
1421
+ ## 2.2.19
1422
+
1423
+ ### Patch Changes
1424
+
1425
+ - 699552d: add experimental_StreamingReactResponse
1426
+
1427
+ ## 2.2.18
1428
+
1429
+ ### Patch Changes
1430
+
1431
+ - 0bd27f6: react/use-chat: allow client-side handling of function call without following response
1432
+
1433
+ ## 2.2.17
1434
+
1435
+ ### Patch Changes
1436
+
1437
+ - 5ed581d: Use interface instead of type for Message to allow declaration merging
1438
+ - 9adec1e: vue and solid: fix including `function_call` and `name` fields in subsequent requests
1439
+
1440
+ ## 2.2.16
1441
+
1442
+ ### Patch Changes
1443
+
1444
+ - e569688: Fix for #637, resync interfaces
1445
+
1446
+ ## 2.2.15
1447
+
1448
+ ### Patch Changes
1449
+
1450
+ - c5d1857: fix: return complete response in onFinish when onCompletion isn't passed
1451
+ - c5d1857: replicate-stream: fix types for replicate@0.20.0+
1452
+
1453
+ ## 2.2.14
1454
+
1455
+ ### Patch Changes
1456
+
1457
+ - 6229d6b: openai: fix OpenAIStream types with openai@4.11+
1458
+
1459
+ ## 2.2.13
1460
+
1461
+ ### Patch Changes
1462
+
1463
+ - a4a997f: all providers: reset error message on (re)submission
1464
+
1465
+ ## 2.2.12
1466
+
1467
+ ### Patch Changes
1468
+
1469
+ - cb181b4: ai/vue: wrap body with unref to support reactivity
1470
+
1471
+ ## 2.2.11
1472
+
1473
+ ### Patch Changes
1474
+
1475
+ - 2470658: ai/react: fix: handle partial chunks in react getStreamedResponse when using experimental_StreamData
1476
+
1477
+ ## 2.2.10
1478
+
1479
+ ### Patch Changes
1480
+
1481
+ - 8a2cbaf: vue/use-completion: fix: don't send network request for loading state"
1482
+ - bbf4403: langchain-stream: return langchain `writer` from LangChainStream
1483
+
1484
+ ## 2.2.9
1485
+
1486
+ ### Patch Changes
1487
+
1488
+ - 3fc2b32: ai/vue: fix: make body parameter reactive
1489
+
1490
+ ## 2.2.8
1491
+
1492
+ ### Patch Changes
1493
+
1494
+ - 26bf998: ai/react: make reload/complete/append functions stable via useCallback
1495
+
1496
+ ## 2.2.7
1497
+
1498
+ ### Patch Changes
1499
+
1500
+ - 2f97630: react/use-chat: fix aborting clientside function calls too early
1501
+ - 1157340: fix: infinite loop for experimental stream data (#484)
1502
+
1503
+ ## 2.2.6
1504
+
1505
+ ### Patch Changes
1506
+
1507
+ - e5bf68d: react/use-chat: fix experimental functions returning proper function messages
1508
+
1509
+ Closes #478
1510
+
1511
+ ## 2.2.5
1512
+
1513
+ ### Patch Changes
1514
+
1515
+ - e5bf68d: react/use-chat: fix experimental functions returning proper function messages
1516
+
1517
+ Closes #478
1518
+
1519
+ ## 2.2.4
1520
+
1521
+ ### Patch Changes
1522
+
1523
+ - 7b389a7: fix: improve safety for type check in openai-stream
1524
+
1525
+ ## 2.2.3
1526
+
1527
+ ### Patch Changes
1528
+
1529
+ - 867a3f9: Fix client-side function calling (#467, #469)
1530
+
1531
+ add Completion type from the `openai` SDK to openai-stream (#472)
1532
+
1533
+ ## 2.2.2
1534
+
1535
+ ### Patch Changes
1536
+
1537
+ - 84e0cc8: Add experimental_StreamData and new opt-in wire protocol to enable streaming additional data. See https://github.com/vercel/ai/pull/425.
1538
+
1539
+ Changes `onCompletion` back to run every completion, including recursive function calls. Adds an `onFinish` callback that runs once everything has streamed.
1540
+
1541
+ If you're using experimental function handlers on the server _and_ caching via `onCompletion`,
1542
+ you may want to adjust your caching code to account for recursive calls so the same key isn't used.
1543
+
1544
+ ```
1545
+ let depth = 0
1546
+
1547
+ const stream = OpenAIStream(response, {
1548
+ async onCompletion(completion) {
1549
+ depth++
1550
+ await kv.set(key + '_' + depth, completion)
1551
+ await kv.expire(key + '_' + depth, 60 * 60)
1552
+ }
1553
+ })
1554
+ ```
1555
+
1556
+ ## 2.2.1
1557
+
1558
+ ### Patch Changes
1559
+
1560
+ - 04084a8: openai-stream: fix experimental_onFunctionCall types for OpenAI SDK v4
1561
+
1562
+ ## 2.2.0
1563
+
1564
+ ### Minor Changes
1565
+
1566
+ - dca1ed9: Update packages and examples to use OpenAI SDK v4
1567
+
1568
+ ## 2.1.34
1569
+
1570
+ ### Patch Changes
1571
+
1572
+ - c2917d3: Add support for the Anthropic SDK, newer Anthropic API versions, and improve Anthropic error handling
1573
+
1574
+ ## 2.1.33
1575
+
1576
+ ### Patch Changes
1577
+
1578
+ - 4ef8015: Prevent `isLoading` in vue integration from triggering extraneous network requests
1579
+
1580
+ ## 2.1.32
1581
+
1582
+ ### Patch Changes
1583
+
1584
+ - 5f91427: ai/svelte: fix isLoading return value
1585
+
1586
+ ## 2.1.31
1587
+
1588
+ ### Patch Changes
1589
+
1590
+ - ab2b973: fix pnpm-lock.yaml
1591
+
1592
+ ## 2.1.30
1593
+
1594
+ ### Patch Changes
1595
+
1596
+ - 4df2a49: Fix termination of ReplicateStream by removing the terminating `{}`from output
1597
+
1598
+ ## 2.1.29
1599
+
1600
+ ### Patch Changes
1601
+
1602
+ - 3929a41: Add ReplicateStream helper
1603
+
1604
+ ## 2.1.28
1605
+
1606
+ ### Patch Changes
1607
+
1608
+ - 9012e17: react/svelte/vue: fix making unnecessary SWR request to API endpoint
1609
+
1610
+ ## 2.1.27
1611
+
1612
+ ### Patch Changes
1613
+
1614
+ - 3d29799: React/Svelte/Vue: keep isLoading in sync between hooks with the same ID.
1615
+
1616
+ React: don't throw error when submitting
1617
+
1618
+ ## 2.1.26
1619
+
1620
+ ### Patch Changes
1621
+
1622
+ - f50d9ef: Add experimental_buildLlama2Prompt helper for Hugging Face
1623
+
1624
+ ## 2.1.25
1625
+
1626
+ ### Patch Changes
1627
+
1628
+ - 877c16f: ai/react: don't throw error if onError is passed
1629
+
1630
+ ## 2.1.24
1631
+
1632
+ ### Patch Changes
1633
+
1634
+ - f3f5866: Adds SolidJS support and SolidStart example
1635
+
1636
+ ## 2.1.23
1637
+
1638
+ ### Patch Changes
1639
+
1640
+ - 0ebc2f0: streams/openai-stream: don't call onStart/onCompletion when recursing
1641
+
1642
+ ## 2.1.22
1643
+
1644
+ ### Patch Changes
1645
+
1646
+ - 9320e95: Add (experimental) prompt construction helpers for StarChat and OpenAssistant
1647
+ - e3a7ec8: Support <|end|> token for StarChat beta in huggingface-stream
1648
+
1649
+ ## 2.1.21
1650
+
1651
+ ### Patch Changes
1652
+
1653
+ - 561a49a: Providing a function to `function_call` request parameter of the OpenAI Chat Completions API no longer breaks OpenAI function stream parsing.
1654
+
1655
+ ## 2.1.20
1656
+
1657
+ ### Patch Changes
1658
+
1659
+ - e361114: OpenAI functions: allow returning string in callback
1660
+
1661
+ ## 2.1.19
1662
+
1663
+ ### Patch Changes
1664
+
1665
+ - e4281ca: Add experimental server-side OpenAI function handling
1666
+
1667
+ ## 2.1.18
1668
+
1669
+ ### Patch Changes
1670
+
1671
+ - 6648b21: Add experimental client side OpenAI function calling to Svelte bindings
1672
+ - e5b983f: feat(streams): add http error handling for openai
1673
+
1674
+ ## 2.1.17
1675
+
1676
+ ### Patch Changes
1677
+
1678
+ - 3ed65bf: Remove dependency on node crypto API
1679
+
1680
+ ## 2.1.16
1681
+
1682
+ ### Patch Changes
1683
+
1684
+ - 8bfb43d: Fix svelte peer dependency version
1685
+
1686
+ ## 2.1.15
1687
+
1688
+ ### Patch Changes
1689
+
1690
+ - 4a2b978: Update cohere stream and add docs
1691
+
1692
+ ## 2.1.14
1693
+
1694
+ ### Patch Changes
1695
+
1696
+ - 3164adb: Fix regression with generated ids
1697
+
1698
+ ## 2.1.13
1699
+
1700
+ ### Patch Changes
1701
+
1702
+ - fd82961: Use rfc4122 IDs when generating chat/completion IDs
1703
+
1704
+ ## 2.1.12
1705
+
1706
+ ### Patch Changes
1707
+
1708
+ - b7b93e5: Add <Tokens> RSC to ai/react
1709
+
1710
+ ## 2.1.11
1711
+
1712
+ ### Patch Changes
1713
+
1714
+ - 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).
1715
+
1716
+ ## 2.1.10
1717
+
1718
+ ### Patch Changes
1719
+
1720
+ - a7b3d0e: Experimental support for OpenAI function calling
1721
+
1722
+ ## 2.1.9
1723
+
1724
+ ### Patch Changes
1725
+
1726
+ - 9cdf968: core/react: add Tokens react server component
1727
+
1728
+ ## 2.1.8
1729
+
1730
+ ### Patch Changes
1731
+
1732
+ - 44d9879: Support extra request options in chat and completion hooks
1733
+
1734
+ ## 2.1.7
1735
+
1736
+ ### Patch Changes
1737
+
1738
+ - bde3898: Allow an async onResponse callback in useChat/useCompletion
1739
+
1740
+ ## 2.1.6
1741
+
1742
+ ### Patch Changes
1743
+
1744
+ - 23f0899: Set stream: true when decoding streamed chunks
1745
+
1746
+ ## 2.1.5
1747
+
1748
+ ### Patch Changes
1749
+
1750
+ - 89938b0: Provider direct callback handlers in LangChain now that `CallbackManager` is deprecated.
1751
+
1752
+ ## 2.1.4
1753
+
1754
+ ### Patch Changes
1755
+
1756
+ - c16d650: Improve type saftey for AIStream. Added JSDoc comments.
1757
+
1758
+ ## 2.1.3
1759
+
1760
+ ### Patch Changes
1761
+
1762
+ - a9591fe: Add `createdAt` on `user` input message in `useChat` (it was already present in `assistant` messages)
1763
+
1764
+ ## 2.1.2
1765
+
1766
+ ### Patch Changes
1767
+
1768
+ - f37d4ec: fix bundling
1769
+
1770
+ ## 2.1.1
1771
+
1772
+ ### Patch Changes
1773
+
1774
+ - 9fdb51a: fix: add better typing for store within svelte implementation (#104)
1775
+
1776
+ ## 2.1.0
1777
+
1778
+ ### Minor Changes
1779
+
1780
+ - 71f9c51: This adds Vue support for `ai` via the `ai/vue` subpath export. Vue composables `useChat` and `useCompletion` are provided.
1781
+
1782
+ ### Patch Changes
1783
+
1784
+ - ad54c79: add tests
1785
+
1786
+ ## 2.0.1
1787
+
1788
+ ### Patch Changes
1789
+
1790
+ - be90740: - Switches `LangChainStream` helper callback `handler` to return use `handleChainEnd` instead of `handleLLMEnd` so as to work with sequential chains
1791
+
1792
+ ## 2.0.0
1793
+
1794
+ ### Major Changes
1795
+
1796
+ - 095de43: New package name!
1797
+
1798
+ ## 0.0.14
1799
+
1800
+ ### Patch Changes
1801
+
1802
+ - c6586a2: Add onError callback, include response text in error if response is not okay
1803
+
1804
+ ## 0.0.13
1805
+
1806
+ ### Patch Changes
1807
+
1808
+ - c1f4a91: Throw error when provided AI response isn't valid
1809
+
1810
+ ## 0.0.12
1811
+
1812
+ ### Patch Changes
1813
+
1814
+ - ea4e66a: improve API types
1815
+
1816
+ ## 0.0.11
1817
+
1818
+ ### Patch Changes
1819
+
1820
+ - a6bc35c: fix package exports for react and svelte subpackages
1821
+
1822
+ ## 0.0.10
1823
+
1824
+ ### Patch Changes
1825
+
1826
+ - 56f9537: add svelte apis
1827
+
1828
+ ## 0.0.9
1829
+
1830
+ ### Patch Changes
1831
+
1832
+ - 78477d3: - Create `/react` sub-package.
1833
+ - 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.
1834
+ - Also renamed `set` to `setMessages` and `setCompletion` to unify the API naming as we have `setInput` too.
1835
+ - Added an `sendExtraMessageFields` field to `useChat` that defaults to `false`, to prevent OpenAI errors when `id` is not filtered out.
1836
+ - c4c1be3: useCompletion.handleSubmit does not clear the input anymore
1837
+ - 7de2185: create /react export
1838
+
1839
+ ## 0.0.8
1840
+
1841
+ ### Patch Changes
1842
+
1843
+ - fc83e95: Implement new start-of-stream newline trimming
1844
+ - 2c6fa04: Optimize callbacks TransformStream to be more memory efficient when `onCompletion` is not specified
1845
+
1846
+ ## 0.0.7
1847
+
1848
+ ### Patch Changes
1849
+
1850
+ - fdfef52: - Splits the `EventSource` parser into a reusable helper
1851
+ - Uses a `TransformStream` for this, so the stream respects back-pressure
1852
+ - Splits the "forking" stream for callbacks into a reusable helper
1853
+ - Changes the signature for `customParser` to avoid Stringify -> Encode -> Decode -> Parse round trip
1854
+ - Uses ?.() optional call syntax for callbacks
1855
+ - Uses string.includes to perform newline checking
1856
+ - Handles the `null` `res.body` case
1857
+ - Fixes Anthropic's streaming responses
1858
+ - Anthropic returns cumulative responses, not deltas like OpenAI
1859
+ - https://github.com/hwchase17/langchain/blob/3af36943/langchain/llms/anthropic.py#L190-L193
1860
+
1861
+ ## 0.0.6
1862
+
1863
+ ### Patch Changes
1864
+
1865
+ - d70a9e7: Add streamToResponse
1866
+ - 47b85b2: Improve abortController and callbacks of `useChat`
1867
+ - 6f7b43a: Export `UseCompletionHelpers` as a TypeScript type alias
1868
+
1869
+ ## 0.0.5
1870
+
1871
+ ### Patch Changes
1872
+
1873
+ - 4405a8a: fix duplicated `'use client'` directives
1874
+
1875
+ ## 0.0.4
1876
+
1877
+ ### Patch Changes
1878
+
1879
+ - b869104: Added `LangChainStream`, `useCompletion`, and `useChat`
1880
+
1881
+ ## 0.0.3
1882
+
1883
+ ### Patch Changes
1884
+
1885
+ - 677d222: add useCompletion
1886
+
1887
+ ## 0.0.2
1888
+
1889
+ ### Patch Changes
1890
+
1891
+ - af400e2: Fix release script
1892
+
1893
+ ## 0.0.1
1894
+
1895
+ ### Patch Changes
1896
+
1897
+ - b7e227d: Add `useChat` hook
1898
+
1899
+ ## 0.0.2
1900
+
1901
+ ### Patch Changes
1902
+
1903
+ - 9a8a845: Testing out release