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