@ai-sdk/xai 0.0.0-1c33ba03-20260114162300

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,1891 @@
1
+ # @ai-sdk/xai
2
+
3
+ ## 0.0.0-1c33ba03-20260114162300
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [261c011]
8
+ - @ai-sdk/provider-utils@0.0.0-1c33ba03-20260114162300
9
+ - @ai-sdk/openai-compatible@0.0.0-1c33ba03-20260114162300
10
+
11
+ ## 3.0.23
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [1b11dcb]
16
+ - @ai-sdk/provider-utils@4.0.6
17
+ - @ai-sdk/provider@3.0.3
18
+ - @ai-sdk/openai-compatible@2.0.10
19
+
20
+ ## 3.0.22
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [bc02a3c]
25
+ - @ai-sdk/openai-compatible@2.0.9
26
+
27
+ ## 3.0.21
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [78fcb18]
32
+ - @ai-sdk/openai-compatible@2.0.8
33
+
34
+ ## 3.0.20
35
+
36
+ ### Patch Changes
37
+
38
+ - Updated dependencies [cd7bb0e]
39
+ - @ai-sdk/openai-compatible@2.0.7
40
+
41
+ ## 3.0.19
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [34d1c8a]
46
+ - @ai-sdk/provider-utils@4.0.5
47
+ - @ai-sdk/openai-compatible@2.0.6
48
+
49
+ ## 3.0.18
50
+
51
+ ### Patch Changes
52
+
53
+ - 9ed771c: feat(provider/xai): add image support to responses api
54
+
55
+ ## 3.0.17
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [d54c380]
60
+ - @ai-sdk/openai-compatible@2.0.5
61
+
62
+ ## 3.0.16
63
+
64
+ ### Patch Changes
65
+
66
+ - f446e23: fix(provider/xai): make streaming providerMetadata structure consistent with non-streaming
67
+
68
+ ## 3.0.15
69
+
70
+ ### Patch Changes
71
+
72
+ - ed1587d: feat (provider/xai): add support for encrypted reasoning content
73
+
74
+ ## 3.0.14
75
+
76
+ ### Patch Changes
77
+
78
+ - 0a081cb: fix (provider/xai): set response format to allow object generation
79
+
80
+ ## 3.0.13
81
+
82
+ ### Patch Changes
83
+
84
+ - 7ac2437: fix(provider/xai): send reasoning-end before text-start in streaming
85
+
86
+ ## 3.0.12
87
+
88
+ ### Patch Changes
89
+
90
+ - e7bdbc7: fix(provider/xai): handle error responses returned with 200 status
91
+
92
+ ## 3.0.11
93
+
94
+ ### Patch Changes
95
+
96
+ - 9a53f59: fix (provider/xai): no duplicate text delta in responses api
97
+
98
+ ## 3.0.10
99
+
100
+ ### Patch Changes
101
+
102
+ - 659c53d: fixed streaming tool input for custom_tool_call types (x_search, view_x_video) which were incorrectly returning empty input values
103
+
104
+ ## 3.0.9
105
+
106
+ ### Patch Changes
107
+
108
+ - 173dcfd: added support for streaming custom tool input chunks in xAI
109
+
110
+ ## 3.0.8
111
+
112
+ ### Patch Changes
113
+
114
+ - Updated dependencies [d937c8f]
115
+ - @ai-sdk/provider@3.0.2
116
+ - @ai-sdk/openai-compatible@2.0.4
117
+ - @ai-sdk/provider-utils@4.0.4
118
+
119
+ ## 3.0.7
120
+
121
+ ### Patch Changes
122
+
123
+ - 23179aa: fix (provider/xai): use correct format for function tools
124
+
125
+ ## 3.0.6
126
+
127
+ ### Patch Changes
128
+
129
+ - 77012ef: fix(xai): correct token counting for reasoning models to prevent negative text_output_tokens
130
+
131
+ ## 3.0.5
132
+
133
+ ### Patch Changes
134
+
135
+ - e7f0a6f: fix(xai): add missing stream response schema and provider tool name parsing
136
+
137
+ ## 3.0.4
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [0b429d4]
142
+ - @ai-sdk/provider-utils@4.0.3
143
+ - @ai-sdk/openai-compatible@2.0.3
144
+
145
+ ## 3.0.3
146
+
147
+ ### Patch Changes
148
+
149
+ - 863d34f: fix: trigger release to update `@latest`
150
+ - Updated dependencies [863d34f]
151
+ - @ai-sdk/openai-compatible@2.0.2
152
+ - @ai-sdk/provider@3.0.1
153
+ - @ai-sdk/provider-utils@4.0.2
154
+
155
+ ## 3.0.2
156
+
157
+ ### Patch Changes
158
+
159
+ - 2761f04: feat (provider/xai): fix chat usage output token computation
160
+
161
+ ## 3.0.1
162
+
163
+ ### Patch Changes
164
+
165
+ - Updated dependencies [29264a3]
166
+ - @ai-sdk/provider-utils@4.0.1
167
+ - @ai-sdk/openai-compatible@2.0.1
168
+
169
+ ## 3.0.0
170
+
171
+ ### Major Changes
172
+
173
+ - dee8b05: ai SDK 6 beta
174
+
175
+ ### Minor Changes
176
+
177
+ - 78928cb: release: start 5.1 beta
178
+
179
+ ### Patch Changes
180
+
181
+ - 0c3b58b: fix(provider): add specificationVersion to ProviderV3
182
+ - 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
183
+
184
+ Before
185
+
186
+ ```ts
187
+ model.textEmbeddingModel('my-model-id');
188
+ ```
189
+
190
+ After
191
+
192
+ ```ts
193
+ model.embeddingModel('my-model-id');
194
+ ```
195
+
196
+ - 2625a04: feat(openai); update spec for mcp approval
197
+ - b9e5b77: feat(xai): Support `parallel_function_calling` provider option for XAI provider
198
+ - 95f65c2: chore: use import \* from zod/v4
199
+ - 954c356: feat(openai): allow custom names for provider-defined tools
200
+ - 544d4e8: chore(specification): rename v3 provider defined tool to provider tool
201
+ - e8109d3: feat: tool execution approval
202
+ - ed329cb: feat: `Provider-V3`
203
+ - 3bd2689: feat: extended token usage
204
+ - 1cad0ab: feat: add provider version to user-agent header
205
+ - 8a2c18e: fix(provider/xai): remove json schema unsupported warning
206
+ - 8dac895: feat: `LanguageModelV3`
207
+ - 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings
208
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
209
+ - 248b540: fix(xai): responses model fixes
210
+ - 4616b86: chore: update zod peer depenedency version
211
+ - b39ec2c: Fix Responses API validation errors for server-side tools (web_search, x_search, code_execution). Add missing custom_tool_call type and streaming event schemas.
212
+ - 8514146: add grok-4-1 model IDs
213
+ - 5ad1bbe: feat: xai server-side tool calling
214
+ - 522f6b8: feat: `ImageModelV3`
215
+ - 1861f6f: feat(xai) add grok-4-fast model ids
216
+ - cbf52cd: feat: expose raw finish reason
217
+ - 10c1322: fix: moved dependency `@ai-sdk/test-server` to devDependencies
218
+ - 4b4c37b: fix(xai): add cache input tokens
219
+ - 9cded0d: fix(provider/xai): correct sources format in searchParameters
220
+ - 47c0ac0: fix(xai): use correct parameter names for maxOutputTokens
221
+ - Updated dependencies
222
+ - @ai-sdk/openai-compatible@2.0.0
223
+ - @ai-sdk/provider@3.0.0
224
+ - @ai-sdk/provider-utils@4.0.0
225
+
226
+ ## 3.0.0-beta.69
227
+
228
+ ### Patch Changes
229
+
230
+ - Updated dependencies [475189e]
231
+ - @ai-sdk/provider@3.0.0-beta.32
232
+ - @ai-sdk/openai-compatible@2.0.0-beta.60
233
+ - @ai-sdk/provider-utils@4.0.0-beta.59
234
+
235
+ ## 3.0.0-beta.68
236
+
237
+ ### Patch Changes
238
+
239
+ - 2625a04: feat(openai); update spec for mcp approval
240
+ - Updated dependencies [2625a04]
241
+ - @ai-sdk/openai-compatible@2.0.0-beta.59
242
+ - @ai-sdk/provider@3.0.0-beta.31
243
+ - @ai-sdk/provider-utils@4.0.0-beta.58
244
+
245
+ ## 3.0.0-beta.67
246
+
247
+ ### Patch Changes
248
+
249
+ - cbf52cd: feat: expose raw finish reason
250
+ - Updated dependencies [cbf52cd]
251
+ - @ai-sdk/openai-compatible@2.0.0-beta.58
252
+ - @ai-sdk/provider@3.0.0-beta.30
253
+ - @ai-sdk/provider-utils@4.0.0-beta.57
254
+
255
+ ## 3.0.0-beta.66
256
+
257
+ ### Patch Changes
258
+
259
+ - Updated dependencies [9549c9e]
260
+ - @ai-sdk/provider@3.0.0-beta.29
261
+ - @ai-sdk/openai-compatible@2.0.0-beta.57
262
+ - @ai-sdk/provider-utils@4.0.0-beta.56
263
+
264
+ ## 3.0.0-beta.65
265
+
266
+ ### Patch Changes
267
+
268
+ - Updated dependencies [50b70d6]
269
+ - @ai-sdk/provider-utils@4.0.0-beta.55
270
+ - @ai-sdk/openai-compatible@2.0.0-beta.56
271
+
272
+ ## 3.0.0-beta.64
273
+
274
+ ### Patch Changes
275
+
276
+ - 9cded0d: fix(provider/xai): correct sources format in searchParameters
277
+
278
+ ## 3.0.0-beta.63
279
+
280
+ ### Patch Changes
281
+
282
+ - Updated dependencies [9061dc0]
283
+ - @ai-sdk/openai-compatible@2.0.0-beta.55
284
+ - @ai-sdk/provider-utils@4.0.0-beta.54
285
+ - @ai-sdk/provider@3.0.0-beta.28
286
+
287
+ ## 3.0.0-beta.62
288
+
289
+ ### Patch Changes
290
+
291
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
292
+ - Updated dependencies [366f50b]
293
+ - @ai-sdk/openai-compatible@2.0.0-beta.54
294
+ - @ai-sdk/provider@3.0.0-beta.27
295
+ - @ai-sdk/provider-utils@4.0.0-beta.53
296
+
297
+ ## 3.0.0-beta.61
298
+
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies [763d04a]
302
+ - @ai-sdk/provider-utils@4.0.0-beta.52
303
+ - @ai-sdk/openai-compatible@2.0.0-beta.53
304
+
305
+ ## 3.0.0-beta.60
306
+
307
+ ### Patch Changes
308
+
309
+ - 47c0ac0: fix(xai): use correct parameter names for maxOutputTokens
310
+
311
+ ## 3.0.0-beta.59
312
+
313
+ ### Patch Changes
314
+
315
+ - Updated dependencies [c1efac4]
316
+ - @ai-sdk/provider-utils@4.0.0-beta.51
317
+ - @ai-sdk/openai-compatible@2.0.0-beta.52
318
+
319
+ ## 3.0.0-beta.58
320
+
321
+ ### Patch Changes
322
+
323
+ - Updated dependencies [32223c8]
324
+ - @ai-sdk/provider-utils@4.0.0-beta.50
325
+ - @ai-sdk/openai-compatible@2.0.0-beta.51
326
+
327
+ ## 3.0.0-beta.57
328
+
329
+ ### Patch Changes
330
+
331
+ - Updated dependencies [83e5744]
332
+ - @ai-sdk/provider-utils@4.0.0-beta.49
333
+ - @ai-sdk/openai-compatible@2.0.0-beta.50
334
+
335
+ ## 3.0.0-beta.56
336
+
337
+ ### Patch Changes
338
+
339
+ - Updated dependencies [960ec8f]
340
+ - @ai-sdk/provider-utils@4.0.0-beta.48
341
+ - @ai-sdk/openai-compatible@2.0.0-beta.49
342
+
343
+ ## 3.0.0-beta.55
344
+
345
+ ### Patch Changes
346
+
347
+ - Updated dependencies [e9e157f]
348
+ - @ai-sdk/provider-utils@4.0.0-beta.47
349
+ - @ai-sdk/openai-compatible@2.0.0-beta.48
350
+
351
+ ## 3.0.0-beta.54
352
+
353
+ ### Patch Changes
354
+
355
+ - Updated dependencies [81e29ab]
356
+ - @ai-sdk/provider-utils@4.0.0-beta.46
357
+ - @ai-sdk/openai-compatible@2.0.0-beta.47
358
+
359
+ ## 3.0.0-beta.53
360
+
361
+ ### Patch Changes
362
+
363
+ - 3bd2689: feat: extended token usage
364
+ - Updated dependencies [3bd2689]
365
+ - @ai-sdk/openai-compatible@2.0.0-beta.46
366
+ - @ai-sdk/provider@3.0.0-beta.26
367
+ - @ai-sdk/provider-utils@4.0.0-beta.45
368
+
369
+ ## 3.0.0-beta.52
370
+
371
+ ### Patch Changes
372
+
373
+ - Updated dependencies [53f3368]
374
+ - @ai-sdk/provider@3.0.0-beta.25
375
+ - @ai-sdk/openai-compatible@2.0.0-beta.45
376
+ - @ai-sdk/provider-utils@4.0.0-beta.44
377
+
378
+ ## 3.0.0-beta.51
379
+
380
+ ### Patch Changes
381
+
382
+ - Updated dependencies [dce03c4]
383
+ - @ai-sdk/provider-utils@4.0.0-beta.43
384
+ - @ai-sdk/provider@3.0.0-beta.24
385
+ - @ai-sdk/openai-compatible@2.0.0-beta.44
386
+
387
+ ## 3.0.0-beta.50
388
+
389
+ ### Patch Changes
390
+
391
+ - Updated dependencies [3ed5519]
392
+ - @ai-sdk/provider-utils@4.0.0-beta.42
393
+ - @ai-sdk/openai-compatible@2.0.0-beta.43
394
+
395
+ ## 3.0.0-beta.49
396
+
397
+ ### Patch Changes
398
+
399
+ - Updated dependencies [1bd7d32]
400
+ - @ai-sdk/openai-compatible@2.0.0-beta.42
401
+ - @ai-sdk/provider-utils@4.0.0-beta.41
402
+ - @ai-sdk/provider@3.0.0-beta.23
403
+
404
+ ## 3.0.0-beta.48
405
+
406
+ ### Patch Changes
407
+
408
+ - 544d4e8: chore(specification): rename v3 provider defined tool to provider tool
409
+ - Updated dependencies [544d4e8]
410
+ - @ai-sdk/openai-compatible@2.0.0-beta.41
411
+ - @ai-sdk/provider-utils@4.0.0-beta.40
412
+ - @ai-sdk/provider@3.0.0-beta.22
413
+
414
+ ## 3.0.0-beta.47
415
+
416
+ ### Patch Changes
417
+
418
+ - 954c356: feat(openai): allow custom names for provider-defined tools
419
+ - Updated dependencies [954c356]
420
+ - @ai-sdk/provider-utils@4.0.0-beta.39
421
+ - @ai-sdk/provider@3.0.0-beta.21
422
+ - @ai-sdk/openai-compatible@2.0.0-beta.40
423
+
424
+ ## 3.0.0-beta.46
425
+
426
+ ### Patch Changes
427
+
428
+ - Updated dependencies [03849b0]
429
+ - @ai-sdk/provider-utils@4.0.0-beta.38
430
+ - @ai-sdk/openai-compatible@2.0.0-beta.39
431
+
432
+ ## 3.0.0-beta.45
433
+
434
+ ### Patch Changes
435
+
436
+ - 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings
437
+ - Updated dependencies [457318b]
438
+ - @ai-sdk/openai-compatible@2.0.0-beta.38
439
+ - @ai-sdk/provider@3.0.0-beta.20
440
+ - @ai-sdk/provider-utils@4.0.0-beta.37
441
+
442
+ ## 3.0.0-beta.44
443
+
444
+ ### Patch Changes
445
+
446
+ - 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
447
+
448
+ Before
449
+
450
+ ```ts
451
+ model.textEmbeddingModel('my-model-id');
452
+ ```
453
+
454
+ After
455
+
456
+ ```ts
457
+ model.embeddingModel('my-model-id');
458
+ ```
459
+
460
+ - 8514146: add grok-4-1 model IDs
461
+ - Updated dependencies [8d9e8ad]
462
+ - @ai-sdk/openai-compatible@2.0.0-beta.37
463
+ - @ai-sdk/provider@3.0.0-beta.19
464
+ - @ai-sdk/provider-utils@4.0.0-beta.36
465
+
466
+ ## 3.0.0-beta.43
467
+
468
+ ### Patch Changes
469
+
470
+ - Updated dependencies [10d819b]
471
+ - @ai-sdk/provider@3.0.0-beta.18
472
+ - @ai-sdk/openai-compatible@2.0.0-beta.36
473
+ - @ai-sdk/provider-utils@4.0.0-beta.35
474
+
475
+ ## 3.0.0-beta.42
476
+
477
+ ### Patch Changes
478
+
479
+ - b39ec2c: Fix Responses API validation errors for server-side tools (web_search, x_search, code_execution). Add missing custom_tool_call type and streaming event schemas.
480
+
481
+ ## 3.0.0-beta.41
482
+
483
+ ### Patch Changes
484
+
485
+ - 248b540: fix(xai): responses model fixes
486
+
487
+ ## 3.0.0-beta.40
488
+
489
+ ### Patch Changes
490
+
491
+ - Updated dependencies [db913bd]
492
+ - @ai-sdk/provider@3.0.0-beta.17
493
+ - @ai-sdk/openai-compatible@2.0.0-beta.35
494
+ - @ai-sdk/provider-utils@4.0.0-beta.34
495
+
496
+ ## 3.0.0-beta.39
497
+
498
+ ### Patch Changes
499
+
500
+ - 4b4c37b: fix(xai): add cache input tokens
501
+
502
+ ## 3.0.0-beta.38
503
+
504
+ ### Patch Changes
505
+
506
+ - 8a2c18e: fix(provider/xai): remove json schema unsupported warning
507
+
508
+ ## 3.0.0-beta.37
509
+
510
+ ### Patch Changes
511
+
512
+ - Updated dependencies [b681d7d]
513
+ - @ai-sdk/provider@3.0.0-beta.16
514
+ - @ai-sdk/openai-compatible@2.0.0-beta.34
515
+ - @ai-sdk/provider-utils@4.0.0-beta.33
516
+
517
+ ## 3.0.0-beta.36
518
+
519
+ ### Patch Changes
520
+
521
+ - Updated dependencies [32d8dbb]
522
+ - @ai-sdk/provider-utils@4.0.0-beta.32
523
+ - @ai-sdk/openai-compatible@2.0.0-beta.33
524
+
525
+ ## 3.0.0-beta.35
526
+
527
+ ### Patch Changes
528
+
529
+ - Updated dependencies [bb36798]
530
+ - @ai-sdk/provider@3.0.0-beta.15
531
+ - @ai-sdk/openai-compatible@2.0.0-beta.32
532
+ - @ai-sdk/provider-utils@4.0.0-beta.31
533
+
534
+ ## 3.0.0-beta.34
535
+
536
+ ### Patch Changes
537
+
538
+ - 5ad1bbe: feat: xai server-side tool calling
539
+
540
+ ## 3.0.0-beta.33
541
+
542
+ ### Patch Changes
543
+
544
+ - Updated dependencies [4f16c37]
545
+ - @ai-sdk/provider-utils@4.0.0-beta.30
546
+ - @ai-sdk/openai-compatible@2.0.0-beta.31
547
+
548
+ ## 3.0.0-beta.32
549
+
550
+ ### Patch Changes
551
+
552
+ - Updated dependencies [af3780b]
553
+ - @ai-sdk/provider@3.0.0-beta.14
554
+ - @ai-sdk/openai-compatible@2.0.0-beta.30
555
+ - @ai-sdk/provider-utils@4.0.0-beta.29
556
+
557
+ ## 3.0.0-beta.31
558
+
559
+ ### Patch Changes
560
+
561
+ - Updated dependencies [016b111]
562
+ - @ai-sdk/provider-utils@4.0.0-beta.28
563
+ - @ai-sdk/openai-compatible@2.0.0-beta.29
564
+
565
+ ## 3.0.0-beta.30
566
+
567
+ ### Patch Changes
568
+
569
+ - Updated dependencies [37c58a0]
570
+ - @ai-sdk/provider@3.0.0-beta.13
571
+ - @ai-sdk/openai-compatible@2.0.0-beta.28
572
+ - @ai-sdk/provider-utils@4.0.0-beta.27
573
+
574
+ ## 3.0.0-beta.29
575
+
576
+ ### Patch Changes
577
+
578
+ - Updated dependencies [d1bdadb]
579
+ - @ai-sdk/provider@3.0.0-beta.12
580
+ - @ai-sdk/openai-compatible@2.0.0-beta.27
581
+ - @ai-sdk/provider-utils@4.0.0-beta.26
582
+
583
+ ## 3.0.0-beta.28
584
+
585
+ ### Patch Changes
586
+
587
+ - Updated dependencies [4c44a5b]
588
+ - @ai-sdk/provider@3.0.0-beta.11
589
+ - @ai-sdk/openai-compatible@2.0.0-beta.26
590
+ - @ai-sdk/provider-utils@4.0.0-beta.25
591
+
592
+ ## 3.0.0-beta.27
593
+
594
+ ### Patch Changes
595
+
596
+ - 0c3b58b: fix(provider): add specificationVersion to ProviderV3
597
+ - Updated dependencies [0c3b58b]
598
+ - @ai-sdk/openai-compatible@2.0.0-beta.25
599
+ - @ai-sdk/provider@3.0.0-beta.10
600
+ - @ai-sdk/provider-utils@4.0.0-beta.24
601
+
602
+ ## 3.0.0-beta.26
603
+
604
+ ### Patch Changes
605
+
606
+ - Updated dependencies [a755db5]
607
+ - @ai-sdk/provider@3.0.0-beta.9
608
+ - @ai-sdk/openai-compatible@2.0.0-beta.24
609
+ - @ai-sdk/provider-utils@4.0.0-beta.23
610
+
611
+ ## 3.0.0-beta.25
612
+
613
+ ### Patch Changes
614
+
615
+ - Updated dependencies [58920e0]
616
+ - @ai-sdk/provider-utils@4.0.0-beta.22
617
+ - @ai-sdk/openai-compatible@2.0.0-beta.23
618
+
619
+ ## 3.0.0-beta.24
620
+
621
+ ### Patch Changes
622
+
623
+ - Updated dependencies [293a6b7]
624
+ - @ai-sdk/provider-utils@4.0.0-beta.21
625
+ - @ai-sdk/openai-compatible@2.0.0-beta.22
626
+
627
+ ## 3.0.0-beta.23
628
+
629
+ ### Patch Changes
630
+
631
+ - b9e5b77: feat(xai): Support `parallel_function_calling` provider option for XAI provider
632
+
633
+ ## 3.0.0-beta.22
634
+
635
+ ### Patch Changes
636
+
637
+ - Updated dependencies [fca786b]
638
+ - @ai-sdk/provider-utils@4.0.0-beta.20
639
+ - @ai-sdk/openai-compatible@2.0.0-beta.21
640
+
641
+ ## 3.0.0-beta.21
642
+
643
+ ### Patch Changes
644
+
645
+ - Updated dependencies [3794514]
646
+ - @ai-sdk/provider-utils@4.0.0-beta.19
647
+ - @ai-sdk/provider@3.0.0-beta.8
648
+ - @ai-sdk/openai-compatible@2.0.0-beta.20
649
+
650
+ ## 3.0.0-beta.20
651
+
652
+ ### Patch Changes
653
+
654
+ - Updated dependencies [81d4308]
655
+ - @ai-sdk/provider@3.0.0-beta.7
656
+ - @ai-sdk/openai-compatible@2.0.0-beta.19
657
+ - @ai-sdk/provider-utils@4.0.0-beta.18
658
+
659
+ ## 3.0.0-beta.19
660
+
661
+ ### Patch Changes
662
+
663
+ - Updated dependencies [703459a]
664
+ - @ai-sdk/provider-utils@4.0.0-beta.17
665
+ - @ai-sdk/openai-compatible@2.0.0-beta.18
666
+
667
+ ## 3.0.0-beta.18
668
+
669
+ ### Patch Changes
670
+
671
+ - Updated dependencies [b689220]
672
+ - @ai-sdk/openai-compatible@2.0.0-beta.17
673
+
674
+ ## 3.0.0-beta.17
675
+
676
+ ### Patch Changes
677
+
678
+ - Updated dependencies [6306603]
679
+ - @ai-sdk/provider-utils@4.0.0-beta.16
680
+ - @ai-sdk/openai-compatible@2.0.0-beta.16
681
+
682
+ ## 3.0.0-beta.16
683
+
684
+ ### Patch Changes
685
+
686
+ - Updated dependencies [f0b2157]
687
+ - @ai-sdk/provider-utils@4.0.0-beta.15
688
+ - @ai-sdk/openai-compatible@2.0.0-beta.15
689
+
690
+ ## 3.0.0-beta.15
691
+
692
+ ### Patch Changes
693
+
694
+ - Updated dependencies [3b1d015]
695
+ - @ai-sdk/provider-utils@4.0.0-beta.14
696
+ - @ai-sdk/openai-compatible@2.0.0-beta.14
697
+
698
+ ## 3.0.0-beta.14
699
+
700
+ ### Patch Changes
701
+
702
+ - Updated dependencies [d116b4b]
703
+ - @ai-sdk/provider-utils@4.0.0-beta.13
704
+ - @ai-sdk/openai-compatible@2.0.0-beta.13
705
+
706
+ ## 3.0.0-beta.13
707
+
708
+ ### Patch Changes
709
+
710
+ - Updated dependencies [7e32fea]
711
+ - @ai-sdk/provider-utils@4.0.0-beta.12
712
+ - @ai-sdk/openai-compatible@2.0.0-beta.12
713
+
714
+ ## 3.0.0-beta.12
715
+
716
+ ### Patch Changes
717
+
718
+ - 95f65c2: chore: use import \* from zod/v4
719
+ - Updated dependencies
720
+ - @ai-sdk/openai-compatible@2.0.0-beta.11
721
+ - @ai-sdk/provider-utils@4.0.0-beta.11
722
+
723
+ ## 3.0.0-beta.11
724
+
725
+ ### Major Changes
726
+
727
+ - dee8b05: ai SDK 6 beta
728
+
729
+ ### Patch Changes
730
+
731
+ - Updated dependencies [dee8b05]
732
+ - @ai-sdk/openai-compatible@2.0.0-beta.10
733
+ - @ai-sdk/provider@3.0.0-beta.6
734
+ - @ai-sdk/provider-utils@4.0.0-beta.10
735
+
736
+ ## 2.1.0-beta.10
737
+
738
+ ### Patch Changes
739
+
740
+ - Updated dependencies [521c537]
741
+ - @ai-sdk/provider-utils@3.1.0-beta.9
742
+ - @ai-sdk/openai-compatible@1.1.0-beta.9
743
+
744
+ ## 2.1.0-beta.9
745
+
746
+ ### Patch Changes
747
+
748
+ - Updated dependencies [e06565c]
749
+ - @ai-sdk/provider-utils@3.1.0-beta.8
750
+ - @ai-sdk/openai-compatible@1.1.0-beta.8
751
+
752
+ ## 2.1.0-beta.8
753
+
754
+ ### Patch Changes
755
+
756
+ - e8109d3: feat: tool execution approval
757
+ - Updated dependencies
758
+ - @ai-sdk/provider@2.1.0-beta.5
759
+ - @ai-sdk/openai-compatible@1.1.0-beta.7
760
+ - @ai-sdk/provider-utils@3.1.0-beta.7
761
+
762
+ ## 2.1.0-beta.7
763
+
764
+ ### Patch Changes
765
+
766
+ - Updated dependencies
767
+ - @ai-sdk/openai-compatible@1.1.0-beta.6
768
+ - @ai-sdk/provider-utils@3.1.0-beta.6
769
+ - @ai-sdk/provider@2.1.0-beta.4
770
+
771
+ ## 2.1.0-beta.6
772
+
773
+ ### Patch Changes
774
+
775
+ - 8dac895: feat: `LanguageModelV3`
776
+ - 10c1322: fix: moved dependency `@ai-sdk/test-server` to devDependencies
777
+ - Updated dependencies
778
+ - @ai-sdk/openai-compatible@1.1.0-beta.5
779
+ - @ai-sdk/provider-utils@3.1.0-beta.5
780
+ - @ai-sdk/provider@2.1.0-beta.3
781
+
782
+ ## 2.1.0-beta.5
783
+
784
+ ### Patch Changes
785
+
786
+ - 4616b86: chore: update zod peer depenedency version
787
+ - Updated dependencies [4616b86]
788
+ - @ai-sdk/openai-compatible@1.1.0-beta.4
789
+ - @ai-sdk/provider-utils@3.1.0-beta.4
790
+
791
+ ## 2.1.0-beta.4
792
+
793
+ ### Patch Changes
794
+
795
+ - ed329cb: feat: `Provider-V3`
796
+ - 522f6b8: feat: `ImageModelV3`
797
+ - Updated dependencies
798
+ - @ai-sdk/openai-compatible@1.1.0-beta.3
799
+ - @ai-sdk/provider@2.1.0-beta.2
800
+ - @ai-sdk/provider-utils@3.1.0-beta.3
801
+
802
+ ## 2.1.0-beta.3
803
+
804
+ ### Patch Changes
805
+
806
+ - 1cad0ab: feat: add provider version to user-agent header
807
+ - Updated dependencies [0c4822d]
808
+ - @ai-sdk/openai-compatible@1.1.0-beta.2
809
+ - @ai-sdk/provider@2.1.0-beta.1
810
+ - @ai-sdk/provider-utils@3.1.0-beta.2
811
+
812
+ ## 2.1.0-beta.2
813
+
814
+ ### Patch Changes
815
+
816
+ - 1861f6f: feat(xai) add grok-4-fast model ids
817
+
818
+ ## 2.1.0-beta.1
819
+
820
+ ### Patch Changes
821
+
822
+ - Updated dependencies
823
+ - @ai-sdk/test-server@1.0.0-beta.0
824
+ - @ai-sdk/provider-utils@3.1.0-beta.1
825
+ - @ai-sdk/openai-compatible@1.1.0-beta.1
826
+
827
+ ## 2.1.0-beta.0
828
+
829
+ ### Minor Changes
830
+
831
+ - 78928cb: release: start 5.1 beta
832
+
833
+ ### Patch Changes
834
+
835
+ - Updated dependencies [78928cb]
836
+ - @ai-sdk/openai-compatible@1.1.0-beta.0
837
+ - @ai-sdk/provider@2.1.0-beta.0
838
+ - @ai-sdk/provider-utils@3.1.0-beta.0
839
+
840
+ ## 2.0.20
841
+
842
+ ### Patch Changes
843
+
844
+ - 3a10095: added new xai x live search fields
845
+
846
+ ## 2.0.19
847
+
848
+ ### Patch Changes
849
+
850
+ - Updated dependencies [28363da]
851
+ - @ai-sdk/openai-compatible@1.0.18
852
+
853
+ ## 2.0.18
854
+
855
+ ### Patch Changes
856
+
857
+ - Updated dependencies [3aed04c]
858
+ - @ai-sdk/openai-compatible@1.0.17
859
+
860
+ ## 2.0.17
861
+
862
+ ### Patch Changes
863
+
864
+ - Updated dependencies [0294b58]
865
+ - @ai-sdk/provider-utils@3.0.9
866
+ - @ai-sdk/openai-compatible@1.0.16
867
+
868
+ ## 2.0.16
869
+
870
+ ### Patch Changes
871
+
872
+ - Updated dependencies [99964ed]
873
+ - @ai-sdk/provider-utils@3.0.8
874
+ - @ai-sdk/openai-compatible@1.0.15
875
+
876
+ ## 2.0.15
877
+
878
+ ### Patch Changes
879
+
880
+ - Updated dependencies [818f021]
881
+ - @ai-sdk/openai-compatible@1.0.14
882
+
883
+ ## 2.0.14
884
+
885
+ ### Patch Changes
886
+
887
+ - ddb70ed: feat(xai) add grok-code-fast-1 model id
888
+
889
+ ## 2.0.13
890
+
891
+ ### Patch Changes
892
+
893
+ - Updated dependencies [886e7cd]
894
+ - @ai-sdk/provider-utils@3.0.7
895
+ - @ai-sdk/openai-compatible@1.0.13
896
+
897
+ ## 2.0.12
898
+
899
+ ### Patch Changes
900
+
901
+ - Updated dependencies [1b5a3d3]
902
+ - @ai-sdk/provider-utils@3.0.6
903
+ - @ai-sdk/openai-compatible@1.0.12
904
+
905
+ ## 2.0.11
906
+
907
+ ### Patch Changes
908
+
909
+ - Updated dependencies [0857788]
910
+ - @ai-sdk/provider-utils@3.0.5
911
+ - @ai-sdk/openai-compatible@1.0.11
912
+
913
+ ## 2.0.10
914
+
915
+ ### Patch Changes
916
+
917
+ - Updated dependencies [7ca3aee]
918
+ - @ai-sdk/openai-compatible@1.0.10
919
+
920
+ ## 2.0.9
921
+
922
+ ### Patch Changes
923
+
924
+ - Updated dependencies [68751f9]
925
+ - @ai-sdk/provider-utils@3.0.4
926
+ - @ai-sdk/openai-compatible@1.0.9
927
+
928
+ ## 2.0.8
929
+
930
+ ### Patch Changes
931
+
932
+ - Updated dependencies [515c891]
933
+ - @ai-sdk/openai-compatible@1.0.8
934
+
935
+ ## 2.0.7
936
+
937
+ ### Patch Changes
938
+
939
+ - Updated dependencies
940
+ - @ai-sdk/provider-utils@3.0.3
941
+ - @ai-sdk/openai-compatible@1.0.7
942
+
943
+ ## 2.0.6
944
+
945
+ ### Patch Changes
946
+
947
+ - Updated dependencies [38ac190]
948
+ - @ai-sdk/provider-utils@3.0.2
949
+ - @ai-sdk/openai-compatible@1.0.6
950
+
951
+ ## 2.0.5
952
+
953
+ ### Patch Changes
954
+
955
+ - Updated dependencies
956
+ - @ai-sdk/openai-compatible@1.0.5
957
+
958
+ ## 2.0.4
959
+
960
+ ### Patch Changes
961
+
962
+ - Updated dependencies
963
+ - @ai-sdk/openai-compatible@1.0.4
964
+
965
+ ## 2.0.3
966
+
967
+ ### Patch Changes
968
+
969
+ - Updated dependencies [a0934f8]
970
+ - @ai-sdk/openai-compatible@1.0.3
971
+
972
+ ## 2.0.2
973
+
974
+ ### Patch Changes
975
+
976
+ - Updated dependencies
977
+ - @ai-sdk/openai-compatible@1.0.2
978
+ - @ai-sdk/provider-utils@3.0.1
979
+
980
+ ## 2.0.1
981
+
982
+ ### Patch Changes
983
+
984
+ - Updated dependencies [0e8ed8e]
985
+ - @ai-sdk/openai-compatible@1.0.1
986
+
987
+ ## 2.0.0
988
+
989
+ ### Major Changes
990
+
991
+ - d5f588f: AI SDK 5
992
+ - 516be5b: ### Move Image Model Settings into generate options
993
+
994
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
995
+
996
+ Before
997
+
998
+ ```js
999
+ await generateImage({
1000
+ model: luma.image('photon-flash-1', {
1001
+ maxImagesPerCall: 5,
1002
+ pollIntervalMillis: 500,
1003
+ }),
1004
+ prompt,
1005
+ n: 10,
1006
+ });
1007
+ ```
1008
+
1009
+ After
1010
+
1011
+ ```js
1012
+ await generateImage({
1013
+ model: luma.image('photon-flash-1'),
1014
+ prompt,
1015
+ n: 10,
1016
+ maxImagesPerCall: 5,
1017
+ providerOptions: {
1018
+ luma: { pollIntervalMillis: 5 },
1019
+ },
1020
+ });
1021
+ ```
1022
+
1023
+ Pull Request: https://github.com/vercel/ai/pull/6180
1024
+
1025
+ ### Minor Changes
1026
+
1027
+ - b94b4ed: add live search
1028
+
1029
+ ### Patch Changes
1030
+
1031
+ - 41cab5c: fix(providers/xai): edit supported models for structured output
1032
+ - fa49207: feat(providers/openai-compatible): convert to providerOptions
1033
+ - cf8280e: fix(providers/xai): return actual usage when streaming instead of NaN
1034
+ - e2aceaf: feat: add raw chunk support
1035
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
1036
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
1037
+ - 6d835a7: fix (provider/grok): filter duplicated reasoning chunks
1038
+ - d9b26f2: chore (providers/xai): update grok-3 model aliases
1039
+ - 66b9661: feat (provider/xai): export XaiProviderOptions
1040
+ - 9e986f7: feat (provider/xai): add grok-4 model id
1041
+ - d1a034f: feature: using Zod 4 for internal stuff
1042
+ - 107cd62: Add native XAI chat language model implementation
1043
+ - 205077b: fix: improve Zod compatibility
1044
+ - a7d3fbd: feat (providers/xai): add grok-3 models
1045
+ - Updated dependencies
1046
+ - @ai-sdk/provider-utils@3.0.0
1047
+ - @ai-sdk/provider@2.0.0
1048
+ - @ai-sdk/openai-compatible@1.0.0
1049
+
1050
+ ## 2.0.0-beta.15
1051
+
1052
+ ### Patch Changes
1053
+
1054
+ - Updated dependencies [88a8ee5]
1055
+ - @ai-sdk/provider-utils@3.0.0-beta.10
1056
+ - @ai-sdk/openai-compatible@1.0.0-beta.13
1057
+
1058
+ ## 2.0.0-beta.14
1059
+
1060
+ ### Patch Changes
1061
+
1062
+ - Updated dependencies [27deb4d]
1063
+ - @ai-sdk/provider@2.0.0-beta.2
1064
+ - @ai-sdk/openai-compatible@1.0.0-beta.12
1065
+ - @ai-sdk/provider-utils@3.0.0-beta.9
1066
+
1067
+ ## 2.0.0-beta.13
1068
+
1069
+ ### Patch Changes
1070
+
1071
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
1072
+ - Updated dependencies [dd5fd43]
1073
+ - @ai-sdk/provider-utils@3.0.0-beta.8
1074
+ - @ai-sdk/openai-compatible@1.0.0-beta.11
1075
+
1076
+ ## 2.0.0-beta.12
1077
+
1078
+ ### Patch Changes
1079
+
1080
+ - Updated dependencies [e7fcc86]
1081
+ - @ai-sdk/provider-utils@3.0.0-beta.7
1082
+ - @ai-sdk/openai-compatible@1.0.0-beta.10
1083
+
1084
+ ## 2.0.0-beta.11
1085
+
1086
+ ### Patch Changes
1087
+
1088
+ - Updated dependencies
1089
+ - @ai-sdk/openai-compatible@1.0.0-beta.9
1090
+ - @ai-sdk/provider-utils@3.0.0-beta.6
1091
+
1092
+ ## 2.0.0-beta.10
1093
+
1094
+ ### Patch Changes
1095
+
1096
+ - Updated dependencies
1097
+ - @ai-sdk/provider-utils@3.0.0-beta.5
1098
+ - @ai-sdk/openai-compatible@1.0.0-beta.8
1099
+
1100
+ ## 2.0.0-beta.9
1101
+
1102
+ ### Patch Changes
1103
+
1104
+ - 205077b: fix: improve Zod compatibility
1105
+ - Updated dependencies [205077b]
1106
+ - @ai-sdk/openai-compatible@1.0.0-beta.7
1107
+ - @ai-sdk/provider-utils@3.0.0-beta.4
1108
+
1109
+ ## 2.0.0-beta.8
1110
+
1111
+ ### Patch Changes
1112
+
1113
+ - 6d835a7: fix (provider/grok): filter duplicated reasoning chunks
1114
+
1115
+ ## 2.0.0-beta.7
1116
+
1117
+ ### Patch Changes
1118
+
1119
+ - Updated dependencies [281bb1c]
1120
+ - @ai-sdk/openai-compatible@1.0.0-beta.6
1121
+
1122
+ ## 2.0.0-beta.6
1123
+
1124
+ ### Patch Changes
1125
+
1126
+ - Updated dependencies [05d2819]
1127
+ - @ai-sdk/provider-utils@3.0.0-beta.3
1128
+ - @ai-sdk/openai-compatible@1.0.0-beta.5
1129
+
1130
+ ## 2.0.0-beta.5
1131
+
1132
+ ### Patch Changes
1133
+
1134
+ - 66b9661: feat (provider/xai): export XaiProviderOptions
1135
+ - Updated dependencies [1b101e1]
1136
+ - @ai-sdk/openai-compatible@1.0.0-beta.4
1137
+
1138
+ ## 2.0.0-beta.4
1139
+
1140
+ ### Patch Changes
1141
+
1142
+ - 9e986f7: feat (provider/xai): add grok-4 model id
1143
+
1144
+ ## 2.0.0-beta.3
1145
+
1146
+ ### Patch Changes
1147
+
1148
+ - Updated dependencies [7b069ed]
1149
+ - @ai-sdk/openai-compatible@1.0.0-beta.3
1150
+
1151
+ ## 2.0.0-beta.2
1152
+
1153
+ ### Patch Changes
1154
+
1155
+ - d1a034f: feature: using Zod 4 for internal stuff
1156
+ - Updated dependencies
1157
+ - @ai-sdk/provider-utils@3.0.0-beta.2
1158
+ - @ai-sdk/openai-compatible@1.0.0-beta.2
1159
+
1160
+ ## 2.0.0-beta.1
1161
+
1162
+ ### Patch Changes
1163
+
1164
+ - Updated dependencies
1165
+ - @ai-sdk/provider@2.0.0-beta.1
1166
+ - @ai-sdk/provider-utils@3.0.0-beta.1
1167
+ - @ai-sdk/openai-compatible@1.0.0-beta.1
1168
+
1169
+ ## 2.0.0-alpha.15
1170
+
1171
+ ### Patch Changes
1172
+
1173
+ - Updated dependencies
1174
+ - @ai-sdk/provider@2.0.0-alpha.15
1175
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
1176
+ - @ai-sdk/openai-compatible@1.0.0-alpha.15
1177
+
1178
+ ## 2.0.0-alpha.14
1179
+
1180
+ ### Patch Changes
1181
+
1182
+ - Updated dependencies
1183
+ - @ai-sdk/provider@2.0.0-alpha.14
1184
+ - @ai-sdk/openai-compatible@1.0.0-alpha.14
1185
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
1186
+
1187
+ ## 2.0.0-alpha.13
1188
+
1189
+ ### Patch Changes
1190
+
1191
+ - Updated dependencies [68ecf2f]
1192
+ - @ai-sdk/provider@2.0.0-alpha.13
1193
+ - @ai-sdk/openai-compatible@1.0.0-alpha.13
1194
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
1195
+
1196
+ ## 2.0.0-alpha.12
1197
+
1198
+ ### Patch Changes
1199
+
1200
+ - e2aceaf: feat: add raw chunk support
1201
+ - Updated dependencies [e2aceaf]
1202
+ - @ai-sdk/openai-compatible@1.0.0-alpha.12
1203
+ - @ai-sdk/provider@2.0.0-alpha.12
1204
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
1205
+
1206
+ ## 2.0.0-alpha.11
1207
+
1208
+ ### Patch Changes
1209
+
1210
+ - Updated dependencies [c1e6647]
1211
+ - @ai-sdk/provider@2.0.0-alpha.11
1212
+ - @ai-sdk/openai-compatible@1.0.0-alpha.11
1213
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
1214
+
1215
+ ## 2.0.0-alpha.10
1216
+
1217
+ ### Patch Changes
1218
+
1219
+ - Updated dependencies [c4df419]
1220
+ - @ai-sdk/provider@2.0.0-alpha.10
1221
+ - @ai-sdk/openai-compatible@1.0.0-alpha.10
1222
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
1223
+
1224
+ ## 2.0.0-alpha.9
1225
+
1226
+ ### Minor Changes
1227
+
1228
+ - b94b4ed: add live search
1229
+
1230
+ ### Patch Changes
1231
+
1232
+ - 107cd62: Add native XAI chat language model implementation
1233
+ - Updated dependencies [811dff3]
1234
+ - @ai-sdk/provider@2.0.0-alpha.9
1235
+ - @ai-sdk/openai-compatible@1.0.0-alpha.9
1236
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
1237
+
1238
+ ## 2.0.0-alpha.8
1239
+
1240
+ ### Patch Changes
1241
+
1242
+ - Updated dependencies
1243
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
1244
+ - @ai-sdk/provider@2.0.0-alpha.8
1245
+ - @ai-sdk/openai-compatible@1.0.0-alpha.8
1246
+
1247
+ ## 2.0.0-alpha.7
1248
+
1249
+ ### Patch Changes
1250
+
1251
+ - Updated dependencies [5c56081]
1252
+ - @ai-sdk/provider@2.0.0-alpha.7
1253
+ - @ai-sdk/openai-compatible@1.0.0-alpha.7
1254
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
1255
+
1256
+ ## 2.0.0-alpha.6
1257
+
1258
+ ### Patch Changes
1259
+
1260
+ - Updated dependencies [0d2c085]
1261
+ - @ai-sdk/provider@2.0.0-alpha.6
1262
+ - @ai-sdk/openai-compatible@1.0.0-alpha.6
1263
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
1264
+
1265
+ ## 2.0.0-alpha.4
1266
+
1267
+ ### Patch Changes
1268
+
1269
+ - Updated dependencies [dc714f3]
1270
+ - @ai-sdk/provider@2.0.0-alpha.4
1271
+ - @ai-sdk/openai-compatible@1.0.0-alpha.4
1272
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
1273
+
1274
+ ## 2.0.0-alpha.3
1275
+
1276
+ ### Patch Changes
1277
+
1278
+ - Updated dependencies [6b98118]
1279
+ - @ai-sdk/provider@2.0.0-alpha.3
1280
+ - @ai-sdk/openai-compatible@1.0.0-alpha.3
1281
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
1282
+
1283
+ ## 2.0.0-alpha.2
1284
+
1285
+ ### Patch Changes
1286
+
1287
+ - Updated dependencies [26535e0]
1288
+ - @ai-sdk/provider@2.0.0-alpha.2
1289
+ - @ai-sdk/openai-compatible@1.0.0-alpha.2
1290
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
1291
+
1292
+ ## 2.0.0-alpha.1
1293
+
1294
+ ### Patch Changes
1295
+
1296
+ - Updated dependencies [3f2f00c]
1297
+ - @ai-sdk/provider@2.0.0-alpha.1
1298
+ - @ai-sdk/openai-compatible@1.0.0-alpha.1
1299
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
1300
+
1301
+ ## 2.0.0-canary.19
1302
+
1303
+ ### Patch Changes
1304
+
1305
+ - Updated dependencies [faf8446]
1306
+ - @ai-sdk/provider-utils@3.0.0-canary.19
1307
+ - @ai-sdk/openai-compatible@1.0.0-canary.19
1308
+
1309
+ ## 2.0.0-canary.18
1310
+
1311
+ ### Patch Changes
1312
+
1313
+ - Updated dependencies [40acf9b]
1314
+ - @ai-sdk/provider-utils@3.0.0-canary.18
1315
+ - @ai-sdk/openai-compatible@1.0.0-canary.18
1316
+
1317
+ ## 2.0.0-canary.17
1318
+
1319
+ ### Major Changes
1320
+
1321
+ - 516be5b: ### Move Image Model Settings into generate options
1322
+
1323
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
1324
+
1325
+ Before
1326
+
1327
+ ```js
1328
+ await generateImage({
1329
+ model: luma.image('photon-flash-1', {
1330
+ maxImagesPerCall: 5,
1331
+ pollIntervalMillis: 500,
1332
+ }),
1333
+ prompt,
1334
+ n: 10,
1335
+ });
1336
+ ```
1337
+
1338
+ After
1339
+
1340
+ ```js
1341
+ await generateImage({
1342
+ model: luma.image('photon-flash-1'),
1343
+ prompt,
1344
+ n: 10,
1345
+ maxImagesPerCall: 5,
1346
+ providerOptions: {
1347
+ luma: { pollIntervalMillis: 5 },
1348
+ },
1349
+ });
1350
+ ```
1351
+
1352
+ Pull Request: https://github.com/vercel/ai/pull/6180
1353
+
1354
+ ### Patch Changes
1355
+
1356
+ - Updated dependencies
1357
+ - @ai-sdk/openai-compatible@1.0.0-canary.17
1358
+ - @ai-sdk/provider-utils@3.0.0-canary.17
1359
+
1360
+ ## 2.0.0-canary.16
1361
+
1362
+ ### Patch Changes
1363
+
1364
+ - Updated dependencies [87b828f]
1365
+ - @ai-sdk/provider-utils@3.0.0-canary.16
1366
+ - @ai-sdk/openai-compatible@1.0.0-canary.16
1367
+
1368
+ ## 2.0.0-canary.15
1369
+
1370
+ ### Patch Changes
1371
+
1372
+ - Updated dependencies
1373
+ - @ai-sdk/provider-utils@3.0.0-canary.15
1374
+ - @ai-sdk/provider@2.0.0-canary.14
1375
+ - @ai-sdk/openai-compatible@1.0.0-canary.15
1376
+
1377
+ ## 2.0.0-canary.14
1378
+
1379
+ ### Patch Changes
1380
+
1381
+ - Updated dependencies
1382
+ - @ai-sdk/provider-utils@3.0.0-canary.14
1383
+ - @ai-sdk/provider@2.0.0-canary.13
1384
+ - @ai-sdk/openai-compatible@1.0.0-canary.14
1385
+
1386
+ ## 2.0.0-canary.13
1387
+
1388
+ ### Patch Changes
1389
+
1390
+ - Updated dependencies
1391
+ - @ai-sdk/provider@2.0.0-canary.12
1392
+ - @ai-sdk/openai-compatible@1.0.0-canary.13
1393
+ - @ai-sdk/provider-utils@3.0.0-canary.13
1394
+
1395
+ ## 2.0.0-canary.12
1396
+
1397
+ ### Patch Changes
1398
+
1399
+ - Updated dependencies
1400
+ - @ai-sdk/provider@2.0.0-canary.11
1401
+ - @ai-sdk/openai-compatible@1.0.0-canary.12
1402
+ - @ai-sdk/provider-utils@3.0.0-canary.12
1403
+
1404
+ ## 2.0.0-canary.11
1405
+
1406
+ ### Patch Changes
1407
+
1408
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
1409
+ - Updated dependencies
1410
+ - @ai-sdk/openai-compatible@1.0.0-canary.11
1411
+ - @ai-sdk/provider-utils@3.0.0-canary.11
1412
+ - @ai-sdk/provider@2.0.0-canary.10
1413
+
1414
+ ## 2.0.0-canary.10
1415
+
1416
+ ### Patch Changes
1417
+
1418
+ - cf8280e: fix(providers/xai): return actual usage when streaming instead of NaN
1419
+ - Updated dependencies
1420
+ - @ai-sdk/openai-compatible@1.0.0-canary.10
1421
+ - @ai-sdk/provider@2.0.0-canary.9
1422
+ - @ai-sdk/provider-utils@3.0.0-canary.10
1423
+
1424
+ ## 2.0.0-canary.9
1425
+
1426
+ ### Patch Changes
1427
+
1428
+ - Updated dependencies
1429
+ - @ai-sdk/provider@2.0.0-canary.8
1430
+ - @ai-sdk/openai-compatible@1.0.0-canary.9
1431
+ - @ai-sdk/provider-utils@3.0.0-canary.9
1432
+
1433
+ ## 2.0.0-canary.8
1434
+
1435
+ ### Patch Changes
1436
+
1437
+ - Updated dependencies
1438
+ - @ai-sdk/provider-utils@3.0.0-canary.8
1439
+ - @ai-sdk/provider@2.0.0-canary.7
1440
+ - @ai-sdk/openai-compatible@1.0.0-canary.8
1441
+
1442
+ ## 2.0.0-canary.7
1443
+
1444
+ ### Patch Changes
1445
+
1446
+ - 41cab5c: fix(providers/xai): edit supported models for structured output
1447
+ - fa49207: feat(providers/openai-compatible): convert to providerOptions
1448
+ - d9b26f2: chore (providers/xai): update grok-3 model aliases
1449
+ - Updated dependencies
1450
+ - @ai-sdk/openai-compatible@1.0.0-canary.7
1451
+ - @ai-sdk/provider@2.0.0-canary.6
1452
+ - @ai-sdk/provider-utils@3.0.0-canary.7
1453
+
1454
+ ## 2.0.0-canary.6
1455
+
1456
+ ### Patch Changes
1457
+
1458
+ - Updated dependencies
1459
+ - @ai-sdk/openai-compatible@1.0.0-canary.6
1460
+ - @ai-sdk/provider@2.0.0-canary.5
1461
+ - @ai-sdk/provider-utils@3.0.0-canary.6
1462
+
1463
+ ## 2.0.0-canary.5
1464
+
1465
+ ### Patch Changes
1466
+
1467
+ - a7d3fbd: feat (providers/xai): add grok-3 models
1468
+ - Updated dependencies [6f6bb89]
1469
+ - @ai-sdk/provider@2.0.0-canary.4
1470
+ - @ai-sdk/openai-compatible@1.0.0-canary.5
1471
+ - @ai-sdk/provider-utils@3.0.0-canary.5
1472
+
1473
+ ## 2.0.0-canary.4
1474
+
1475
+ ### Patch Changes
1476
+
1477
+ - Updated dependencies [d1a1aa1]
1478
+ - @ai-sdk/provider@2.0.0-canary.3
1479
+ - @ai-sdk/openai-compatible@1.0.0-canary.4
1480
+ - @ai-sdk/provider-utils@3.0.0-canary.4
1481
+
1482
+ ## 2.0.0-canary.3
1483
+
1484
+ ### Patch Changes
1485
+
1486
+ - Updated dependencies
1487
+ - @ai-sdk/provider-utils@3.0.0-canary.3
1488
+ - @ai-sdk/provider@2.0.0-canary.2
1489
+ - @ai-sdk/openai-compatible@1.0.0-canary.3
1490
+
1491
+ ## 2.0.0-canary.2
1492
+
1493
+ ### Patch Changes
1494
+
1495
+ - Updated dependencies
1496
+ - @ai-sdk/provider@2.0.0-canary.1
1497
+ - @ai-sdk/openai-compatible@1.0.0-canary.2
1498
+ - @ai-sdk/provider-utils@3.0.0-canary.2
1499
+
1500
+ ## 2.0.0-canary.1
1501
+
1502
+ ### Patch Changes
1503
+
1504
+ - Updated dependencies
1505
+ - @ai-sdk/provider-utils@3.0.0-canary.1
1506
+ - @ai-sdk/openai-compatible@1.0.0-canary.1
1507
+
1508
+ ## 2.0.0-canary.0
1509
+
1510
+ ### Major Changes
1511
+
1512
+ - d5f588f: AI SDK 5
1513
+
1514
+ ### Patch Changes
1515
+
1516
+ - Updated dependencies [d5f588f]
1517
+ - @ai-sdk/provider-utils@3.0.0-canary.0
1518
+ - @ai-sdk/openai-compatible@1.0.0-canary.0
1519
+ - @ai-sdk/provider@2.0.0-canary.0
1520
+
1521
+ ## 1.2.6
1522
+
1523
+ ### Patch Changes
1524
+
1525
+ - Updated dependencies [d186cca]
1526
+ - @ai-sdk/openai-compatible@0.2.5
1527
+
1528
+ ## 1.2.5
1529
+
1530
+ ### Patch Changes
1531
+
1532
+ - Updated dependencies [28be004]
1533
+ - @ai-sdk/provider-utils@2.2.3
1534
+ - @ai-sdk/openai-compatible@0.2.4
1535
+
1536
+ ## 1.2.4
1537
+
1538
+ ### Patch Changes
1539
+
1540
+ - Updated dependencies [b01120e]
1541
+ - @ai-sdk/provider-utils@2.2.2
1542
+ - @ai-sdk/openai-compatible@0.2.3
1543
+
1544
+ ## 1.2.3
1545
+
1546
+ ### Patch Changes
1547
+
1548
+ - a6b55cc: feat (providers/openai-compatible): add openai-compatible image model and use as xai image model base
1549
+ - Updated dependencies [a6b55cc]
1550
+ - @ai-sdk/openai-compatible@0.2.2
1551
+
1552
+ ## 1.2.2
1553
+
1554
+ ### Patch Changes
1555
+
1556
+ - Updated dependencies [f10f0fa]
1557
+ - @ai-sdk/provider-utils@2.2.1
1558
+ - @ai-sdk/openai-compatible@0.2.1
1559
+
1560
+ ## 1.2.1
1561
+
1562
+ ### Patch Changes
1563
+
1564
+ - 82b5620: fix (providers/xai): handle raw b64 image response data
1565
+
1566
+ ## 1.2.0
1567
+
1568
+ ### Minor Changes
1569
+
1570
+ - 5bc638d: AI SDK 4.2
1571
+
1572
+ ### Patch Changes
1573
+
1574
+ - Updated dependencies [5bc638d]
1575
+ - @ai-sdk/openai-compatible@0.2.0
1576
+ - @ai-sdk/provider@1.1.0
1577
+ - @ai-sdk/provider-utils@2.2.0
1578
+
1579
+ ## 1.1.18
1580
+
1581
+ ### Patch Changes
1582
+
1583
+ - 6f0e741: feat (providers/xai): add xai image model support
1584
+
1585
+ ## 1.1.17
1586
+
1587
+ ### Patch Changes
1588
+
1589
+ - Updated dependencies [d0c4659]
1590
+ - @ai-sdk/provider-utils@2.1.15
1591
+ - @ai-sdk/openai-compatible@0.1.17
1592
+
1593
+ ## 1.1.16
1594
+
1595
+ ### Patch Changes
1596
+
1597
+ - Updated dependencies [0bd5bc6]
1598
+ - @ai-sdk/provider@1.0.12
1599
+ - @ai-sdk/openai-compatible@0.1.16
1600
+ - @ai-sdk/provider-utils@2.1.14
1601
+
1602
+ ## 1.1.15
1603
+
1604
+ ### Patch Changes
1605
+
1606
+ - Updated dependencies [2e1101a]
1607
+ - @ai-sdk/provider@1.0.11
1608
+ - @ai-sdk/openai-compatible@0.1.15
1609
+ - @ai-sdk/provider-utils@2.1.13
1610
+
1611
+ ## 1.1.14
1612
+
1613
+ ### Patch Changes
1614
+
1615
+ - Updated dependencies [1531959]
1616
+ - @ai-sdk/provider-utils@2.1.12
1617
+ - @ai-sdk/openai-compatible@0.1.14
1618
+
1619
+ ## 1.1.13
1620
+
1621
+ ### Patch Changes
1622
+
1623
+ - Updated dependencies [e1d3d42]
1624
+ - @ai-sdk/openai-compatible@0.1.13
1625
+ - @ai-sdk/provider@1.0.10
1626
+ - @ai-sdk/provider-utils@2.1.11
1627
+
1628
+ ## 1.1.12
1629
+
1630
+ ### Patch Changes
1631
+
1632
+ - Updated dependencies [ddf9740]
1633
+ - @ai-sdk/provider@1.0.9
1634
+ - @ai-sdk/openai-compatible@0.1.12
1635
+ - @ai-sdk/provider-utils@2.1.10
1636
+
1637
+ ## 1.1.11
1638
+
1639
+ ### Patch Changes
1640
+
1641
+ - Updated dependencies [2761f06]
1642
+ - @ai-sdk/provider@1.0.8
1643
+ - @ai-sdk/openai-compatible@0.1.11
1644
+ - @ai-sdk/provider-utils@2.1.9
1645
+
1646
+ ## 1.1.10
1647
+
1648
+ ### Patch Changes
1649
+
1650
+ - Updated dependencies [2e898b4]
1651
+ - @ai-sdk/provider-utils@2.1.8
1652
+ - @ai-sdk/openai-compatible@0.1.10
1653
+
1654
+ ## 1.1.9
1655
+
1656
+ ### Patch Changes
1657
+
1658
+ - Updated dependencies [3ff4ef8]
1659
+ - @ai-sdk/provider-utils@2.1.7
1660
+ - @ai-sdk/openai-compatible@0.1.9
1661
+
1662
+ ## 1.1.8
1663
+
1664
+ ### Patch Changes
1665
+
1666
+ - Updated dependencies [d89c3b9]
1667
+ - @ai-sdk/provider@1.0.7
1668
+ - @ai-sdk/openai-compatible@0.1.8
1669
+ - @ai-sdk/provider-utils@2.1.6
1670
+
1671
+ ## 1.1.7
1672
+
1673
+ ### Patch Changes
1674
+
1675
+ - Updated dependencies [f2c6c37]
1676
+ - @ai-sdk/openai-compatible@0.1.7
1677
+
1678
+ ## 1.1.6
1679
+
1680
+ ### Patch Changes
1681
+
1682
+ - Updated dependencies [3a602ca]
1683
+ - @ai-sdk/provider-utils@2.1.5
1684
+ - @ai-sdk/openai-compatible@0.1.6
1685
+
1686
+ ## 1.1.5
1687
+
1688
+ ### Patch Changes
1689
+
1690
+ - Updated dependencies [066206e]
1691
+ - @ai-sdk/provider-utils@2.1.4
1692
+ - @ai-sdk/openai-compatible@0.1.5
1693
+
1694
+ ## 1.1.4
1695
+
1696
+ ### Patch Changes
1697
+
1698
+ - Updated dependencies [39e5c1f]
1699
+ - @ai-sdk/provider-utils@2.1.3
1700
+ - @ai-sdk/openai-compatible@0.1.4
1701
+
1702
+ ## 1.1.3
1703
+
1704
+ ### Patch Changes
1705
+
1706
+ - Updated dependencies [361fd08]
1707
+ - @ai-sdk/openai-compatible@0.1.3
1708
+
1709
+ ## 1.1.2
1710
+
1711
+ ### Patch Changes
1712
+
1713
+ - Updated dependencies
1714
+ - @ai-sdk/openai-compatible@0.1.2
1715
+ - @ai-sdk/provider-utils@2.1.2
1716
+ - @ai-sdk/provider@1.0.6
1717
+
1718
+ ## 1.1.1
1719
+
1720
+ ### Patch Changes
1721
+
1722
+ - Updated dependencies
1723
+ - @ai-sdk/provider-utils@2.1.1
1724
+ - @ai-sdk/openai-compatible@0.1.1
1725
+ - @ai-sdk/provider@1.0.5
1726
+
1727
+ ## 1.1.0
1728
+
1729
+ ### Minor Changes
1730
+
1731
+ - 62ba5ad: release: AI SDK 4.1
1732
+
1733
+ ### Patch Changes
1734
+
1735
+ - Updated dependencies [62ba5ad]
1736
+ - @ai-sdk/openai-compatible@0.1.0
1737
+ - @ai-sdk/provider-utils@2.1.0
1738
+
1739
+ ## 1.0.19
1740
+
1741
+ ### Patch Changes
1742
+
1743
+ - Updated dependencies [00114c5]
1744
+ - @ai-sdk/provider-utils@2.0.8
1745
+ - @ai-sdk/openai-compatible@0.0.18
1746
+
1747
+ ## 1.0.18
1748
+
1749
+ ### Patch Changes
1750
+
1751
+ - Updated dependencies [ae57beb]
1752
+ - @ai-sdk/openai-compatible@0.0.17
1753
+
1754
+ ## 1.0.17
1755
+
1756
+ ### Patch Changes
1757
+
1758
+ - 7611964: feat (provider/xai): Support structured output for latest models.
1759
+ - Updated dependencies [7611964]
1760
+ - @ai-sdk/openai-compatible@0.0.16
1761
+
1762
+ ## 1.0.16
1763
+
1764
+ ### Patch Changes
1765
+
1766
+ - Updated dependencies
1767
+ - @ai-sdk/provider-utils@2.0.7
1768
+ - @ai-sdk/openai-compatible@0.0.15
1769
+
1770
+ ## 1.0.15
1771
+
1772
+ ### Patch Changes
1773
+
1774
+ - Updated dependencies
1775
+ - @ai-sdk/provider@1.0.4
1776
+ - @ai-sdk/provider-utils@2.0.6
1777
+ - @ai-sdk/openai-compatible@0.0.14
1778
+
1779
+ ## 1.0.14
1780
+
1781
+ ### Patch Changes
1782
+
1783
+ - Updated dependencies [6564812]
1784
+ - @ai-sdk/openai-compatible@0.0.13
1785
+
1786
+ ## 1.0.13
1787
+
1788
+ ### Patch Changes
1789
+
1790
+ - Updated dependencies [70003b8]
1791
+ - @ai-sdk/openai-compatible@0.0.12
1792
+
1793
+ ## 1.0.12
1794
+
1795
+ ### Patch Changes
1796
+
1797
+ - 5ed5e45: chore (config): Use ts-library.json tsconfig for no-UI libs.
1798
+ - Updated dependencies
1799
+ - @ai-sdk/openai-compatible@0.0.11
1800
+ - @ai-sdk/provider-utils@2.0.5
1801
+ - @ai-sdk/provider@1.0.3
1802
+
1803
+ ## 1.0.11
1804
+
1805
+ ### Patch Changes
1806
+
1807
+ - Updated dependencies [baae8f4]
1808
+ - @ai-sdk/openai-compatible@0.0.10
1809
+
1810
+ ## 1.0.10
1811
+
1812
+ ### Patch Changes
1813
+
1814
+ - Updated dependencies [9c7653b]
1815
+ - @ai-sdk/openai-compatible@0.0.9
1816
+
1817
+ ## 1.0.9
1818
+
1819
+ ### Patch Changes
1820
+
1821
+ - Updated dependencies [6faab13]
1822
+ - @ai-sdk/openai-compatible@0.0.8
1823
+
1824
+ ## 1.0.8
1825
+
1826
+ ### Patch Changes
1827
+
1828
+ - 50821de: feat (docs): Use new grok-2 model in xai example code.
1829
+
1830
+ ## 1.0.7
1831
+
1832
+ ### Patch Changes
1833
+
1834
+ - 4e9032c: feat (provider/xai): Add grok-2 models, use openai-compatible base impl.
1835
+
1836
+ ## 1.0.6
1837
+
1838
+ ### Patch Changes
1839
+
1840
+ - Updated dependencies [09a9cab]
1841
+ - @ai-sdk/provider@1.0.2
1842
+ - @ai-sdk/provider-utils@2.0.4
1843
+
1844
+ ## 1.0.5
1845
+
1846
+ ### Patch Changes
1847
+
1848
+ - Updated dependencies [0984f0b]
1849
+ - @ai-sdk/provider-utils@2.0.3
1850
+
1851
+ ## 1.0.4
1852
+
1853
+ ### Patch Changes
1854
+
1855
+ - b1f31da: chore (providers): Remove obsolete 'internal' from several packages.
1856
+
1857
+ ## 1.0.3
1858
+
1859
+ ### Patch Changes
1860
+
1861
+ - Updated dependencies [b446ae5]
1862
+ - @ai-sdk/provider@1.0.1
1863
+ - @ai-sdk/provider-utils@2.0.2
1864
+
1865
+ ## 1.0.2
1866
+
1867
+ ### Patch Changes
1868
+
1869
+ - Updated dependencies [c3ab5de]
1870
+ - @ai-sdk/provider-utils@2.0.1
1871
+
1872
+ ## 1.0.1
1873
+
1874
+ ### Patch Changes
1875
+
1876
+ - 870c09e: feat (provider/xai): add groq-vision-beta support
1877
+
1878
+ ## 1.0.0
1879
+
1880
+ ### Patch Changes
1881
+
1882
+ - 75d0065: feat (providers/xai): Initial xAI provider.
1883
+ - Updated dependencies
1884
+ - @ai-sdk/provider-utils@2.0.0
1885
+ - @ai-sdk/provider@1.0.0
1886
+
1887
+ ## 1.0.0-canary.1
1888
+
1889
+ ### Patch Changes
1890
+
1891
+ - 75d0065: feat (providers/xai): Initial xAI provider.