@ai-sdk/openai 0.0.0-013d7476-20250808163325

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,1814 @@
1
+ # @ai-sdk/openai
2
+
3
+ ## 0.0.0-013d7476-20250808163325
4
+
5
+ ### Patch Changes
6
+
7
+ - 4738f18: feat(openai): add flex processing support for gpt-5 models
8
+ - 013d747: feat(openai): add verbosity parameter support for responses api
9
+ - 35feee8: feat(openai): add priority processing support for gpt-5 models
10
+
11
+ ## 2.0.6
12
+
13
+ ### Patch Changes
14
+
15
+ - ad2255f: chore(docs): added gpt 5 models + removed deprecated models
16
+ - 64bcb66: feat(provider/openai): models ids on chat
17
+ - 1d42ff2: feat(provider/openai): models ids
18
+
19
+ ## 2.0.5
20
+
21
+ ### Patch Changes
22
+
23
+ - 6753a2e: feat(examples): add gpt-5 model examples and e2e tests
24
+ - 6cba06a: feat (provider/openai): add reasoning model config
25
+
26
+ ## 2.0.4
27
+
28
+ ### Patch Changes
29
+
30
+ - c9e0f52: Files from the OpenAI Files API are now supported, mirroring functionality of OpenAI Chat and Responses API, respectively. Also, the AI SDK supports URLs for PDFs in the responses API the same way it did for completions.
31
+
32
+ ## 2.0.3
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [90d212f]
37
+ - @ai-sdk/provider-utils@3.0.1
38
+
39
+ ## 2.0.2
40
+
41
+ ### Patch Changes
42
+
43
+ - 63e2016: fix(openai): missing url citations from web search tools
44
+
45
+ ## 2.0.1
46
+
47
+ ### Patch Changes
48
+
49
+ - bc45e29: feat(openai): add file_search_call support to responses api
50
+
51
+ ## 2.0.0
52
+
53
+ ### Major Changes
54
+
55
+ - d5f588f: AI SDK 5
56
+ - cc62234: chore (provider/openai): switch default to openai responses api
57
+ - 516be5b: ### Move Image Model Settings into generate options
58
+
59
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
60
+
61
+ Before
62
+
63
+ ```js
64
+ await generateImage({
65
+ model: luma.image('photon-flash-1', {
66
+ maxImagesPerCall: 5,
67
+ pollIntervalMillis: 500,
68
+ }),
69
+ prompt,
70
+ n: 10,
71
+ });
72
+ ```
73
+
74
+ After
75
+
76
+ ```js
77
+ await generateImage({
78
+ model: luma.image('photon-flash-1'),
79
+ prompt,
80
+ n: 10,
81
+ maxImagesPerCall: 5,
82
+ providerOptions: {
83
+ luma: { pollIntervalMillis: 5 },
84
+ },
85
+ });
86
+ ```
87
+
88
+ Pull Request: https://github.com/vercel/ai/pull/6180
89
+
90
+ - efc3a62: fix (provider/openai): default strict mode to false
91
+
92
+ ### Patch Changes
93
+
94
+ - 948b755: chore(providers/openai): convert to providerOptions
95
+ - d63bcbc: feat (provider/openai): o4 updates for responses api
96
+ - 3bd3c0b: chore(providers/openai): update embedding model to use providerOptions
97
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
98
+ - 0eee6a8: Fix streaming and reconstruction of reasoning summary parts
99
+ - 177526b: chore(providers/openai-transcription): switch to providerOptions
100
+ - 2f542fa: Add reasoning-part-finish parts for reasoning models in the responses API
101
+ - c15dfbf: feat (providers/openai): add gpt-image-1 model id to image settings
102
+ - 3b1ea10: adding support for gpt-4o-search-preview and handling unsupported parameters
103
+ - e2aceaf: feat: add raw chunk support
104
+ - d2af019: feat (providers/openai): add gpt-4.1 models
105
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
106
+ - 209256d: Add missing file_search tool support to OpenAI Responses API
107
+ - faea29f: fix (provider/openai): multi-step reasoning with text
108
+ - 7032dc5: feat(openai): add priority processing service tier support
109
+ - 870c5c0: feat (providers/openai): add o3 and o4-mini models
110
+ - db72adc: chore(providers/openai): update completion model to use providerOptions
111
+ - a166433: feat: add transcription with experimental_transcribe
112
+ - 26735b5: chore(embedding-model): add v2 interface
113
+ - 443d8ec: feat(embedding-model-v2): add response body field
114
+ - 8d12da5: feat(provider/openai): add serviceTier option for flex processing
115
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
116
+ - d521cda: feat(openai): add file_search filters and update field names
117
+ - 66962ed: fix(packages): export node10 compatible types
118
+ - 442be08: fix: propagate openai transcription fixes
119
+ - 0059ee2: fix(openai): update file_search fields to match API changes
120
+ - 8493141: feat (providers/openai): add support for reasoning summaries
121
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
122
+ - 0a87932: core (ai): change transcription model mimeType to mediaType
123
+ - 8aa9e20: feat: add speech with experimental_generateSpeech
124
+ - 4617fab: chore(embedding-models): remove remaining settings
125
+ - b5a0e32: fix (provider/openai): correct default for chat model strict mode
126
+ - 136819b: chore(providers/openai): re-introduce logprobs as providerMetadata
127
+ - 52ce942: chore(providers/openai): remove & enable strict compatibility by default
128
+ - db64cbe: fix (provider/openai): multi-step reasoning with tool calls
129
+ - b3c3450: feat (provider/openai): add support for encrypted_reasoning to responses api
130
+ - 48249c4: Do not warn if empty text is the first part of a reasoning sequence
131
+ - c7d3b2e: fix (provider/openai): push first reasoning chunk in output item added event
132
+ - ad2a3d5: feat(provider/openai): add missing reasoning models to responses API
133
+ - 9943464: feat(openai): add file_search_call.results support to include parameter
134
+ - 0fa7414: chore (provider/openai): standardize on itemId in provider metadata
135
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
136
+
137
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
138
+
139
+ ```js
140
+ const prompt = 'Santa Claus driving a Cadillac';
141
+
142
+ const { providerMetadata } = await experimental_generateImage({
143
+ model: openai.image('dall-e-3'),
144
+ prompt,
145
+ });
146
+
147
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
148
+
149
+ console.log({
150
+ prompt,
151
+ revisedPrompt,
152
+ });
153
+ ```
154
+
155
+ - fa758ea: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
156
+ - d1a034f: feature: using Zod 4 for internal stuff
157
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
158
+ - e497698: fix (provider/openai): handle responses api errors
159
+ - 928fadf: fix(providers/openai): logprobs for stream alongside completion model
160
+ - 0a87932: fix (provider/openai): increase transcription model resilience
161
+ - 5147e6e: chore(openai): remove simulateStreaming
162
+ - 06bac05: fix (openai): structure output for responses model
163
+ - 205077b: fix: improve Zod compatibility
164
+ - c2b92cc: chore(openai): remove legacy function calling
165
+ - 284353f: fix(providers/openai): zod parse error with function
166
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
167
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
168
+ - 4af5233: Fix PDF file parts when passed as a string url or Uint8Array
169
+ - 7df7a25: feat (providers/openai): support gpt-image-1 image generation
170
+ - Updated dependencies [a571d6e]
171
+ - Updated dependencies [742b7be]
172
+ - Updated dependencies [e7fcc86]
173
+ - Updated dependencies [7cddb72]
174
+ - Updated dependencies [ccce59b]
175
+ - Updated dependencies [e2b9e4b]
176
+ - Updated dependencies [95857aa]
177
+ - Updated dependencies [45c1ea2]
178
+ - Updated dependencies [6f6bb89]
179
+ - Updated dependencies [060370c]
180
+ - Updated dependencies [dc714f3]
181
+ - Updated dependencies [b5da06a]
182
+ - Updated dependencies [d1a1aa1]
183
+ - Updated dependencies [63f9e9b]
184
+ - Updated dependencies [5d142ab]
185
+ - Updated dependencies [d5f588f]
186
+ - Updated dependencies [e025824]
187
+ - Updated dependencies [0571b98]
188
+ - Updated dependencies [b6b43c7]
189
+ - Updated dependencies [4fef487]
190
+ - Updated dependencies [48d257a]
191
+ - Updated dependencies [0c0c0b3]
192
+ - Updated dependencies [0d2c085]
193
+ - Updated dependencies [40acf9b]
194
+ - Updated dependencies [9222aeb]
195
+ - Updated dependencies [e2aceaf]
196
+ - Updated dependencies [411e483]
197
+ - Updated dependencies [8ba77a7]
198
+ - Updated dependencies [7b3ae3f]
199
+ - Updated dependencies [a166433]
200
+ - Updated dependencies [26735b5]
201
+ - Updated dependencies [443d8ec]
202
+ - Updated dependencies [a8c8bd5]
203
+ - Updated dependencies [abf9a79]
204
+ - Updated dependencies [14c9410]
205
+ - Updated dependencies [e86be6f]
206
+ - Updated dependencies [9bf7291]
207
+ - Updated dependencies [2e13791]
208
+ - Updated dependencies [9f95b35]
209
+ - Updated dependencies [66962ed]
210
+ - Updated dependencies [0d06df6]
211
+ - Updated dependencies [472524a]
212
+ - Updated dependencies [dd3ff01]
213
+ - Updated dependencies [d9c98f4]
214
+ - Updated dependencies [05d2819]
215
+ - Updated dependencies [9301f86]
216
+ - Updated dependencies [0a87932]
217
+ - Updated dependencies [c4a2fec]
218
+ - Updated dependencies [957b739]
219
+ - Updated dependencies [79457bd]
220
+ - Updated dependencies [a3f768e]
221
+ - Updated dependencies [7435eb5]
222
+ - Updated dependencies [8aa9e20]
223
+ - Updated dependencies [4617fab]
224
+ - Updated dependencies [ac34802]
225
+ - Updated dependencies [0054544]
226
+ - Updated dependencies [cb68df0]
227
+ - Updated dependencies [ad80501]
228
+ - Updated dependencies [68ecf2f]
229
+ - Updated dependencies [9e9c809]
230
+ - Updated dependencies [32831c6]
231
+ - Updated dependencies [6dc848c]
232
+ - Updated dependencies [6b98118]
233
+ - Updated dependencies [d0f9495]
234
+ - Updated dependencies [63d791d]
235
+ - Updated dependencies [87b828f]
236
+ - Updated dependencies [3f2f00c]
237
+ - Updated dependencies [bfdca8d]
238
+ - Updated dependencies [0ff02bb]
239
+ - Updated dependencies [7979f7f]
240
+ - Updated dependencies [39a4fab]
241
+ - Updated dependencies [44f4aba]
242
+ - Updated dependencies [9bd5ab5]
243
+ - Updated dependencies [57edfcb]
244
+ - Updated dependencies [faf8446]
245
+ - Updated dependencies [7ea4132]
246
+ - Updated dependencies [d1a034f]
247
+ - Updated dependencies [5c56081]
248
+ - Updated dependencies [fd65bc6]
249
+ - Updated dependencies [023ba40]
250
+ - Updated dependencies [ea7a7c9]
251
+ - Updated dependencies [26535e0]
252
+ - Updated dependencies [e030615]
253
+ - Updated dependencies [5e57fae]
254
+ - Updated dependencies [393138b]
255
+ - Updated dependencies [c57e248]
256
+ - Updated dependencies [88a8ee5]
257
+ - Updated dependencies [41fa418]
258
+ - Updated dependencies [205077b]
259
+ - Updated dependencies [71f938d]
260
+ - Updated dependencies [3795467]
261
+ - Updated dependencies [28a5ed5]
262
+ - Updated dependencies [7182d14]
263
+ - Updated dependencies [c1e6647]
264
+ - Updated dependencies [1766ede]
265
+ - Updated dependencies [811dff3]
266
+ - Updated dependencies [f10304b]
267
+ - Updated dependencies [dd5fd43]
268
+ - Updated dependencies [33f4a6a]
269
+ - Updated dependencies [383cbfa]
270
+ - Updated dependencies [27deb4d]
271
+ - Updated dependencies [c4df419]
272
+ - @ai-sdk/provider-utils@3.0.0
273
+ - @ai-sdk/provider@2.0.0
274
+
275
+ ## 2.0.0-beta.16
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies [88a8ee5]
280
+ - @ai-sdk/provider-utils@3.0.0-beta.10
281
+
282
+ ## 2.0.0-beta.15
283
+
284
+ ### Patch Changes
285
+
286
+ - 9943464: feat(openai): add file_search_call.results support to include parameter
287
+ - Updated dependencies [27deb4d]
288
+ - @ai-sdk/provider@2.0.0-beta.2
289
+ - @ai-sdk/provider-utils@3.0.0-beta.9
290
+
291
+ ## 2.0.0-beta.14
292
+
293
+ ### Patch Changes
294
+
295
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
296
+ - 7032dc5: feat(openai): add priority processing service tier support
297
+ - Updated dependencies [dd5fd43]
298
+ - @ai-sdk/provider-utils@3.0.0-beta.8
299
+
300
+ ## 2.0.0-beta.13
301
+
302
+ ### Patch Changes
303
+
304
+ - Updated dependencies [e7fcc86]
305
+ - @ai-sdk/provider-utils@3.0.0-beta.7
306
+
307
+ ## 2.0.0-beta.12
308
+
309
+ ### Patch Changes
310
+
311
+ - d521cda: feat(openai): add file_search filters and update field names
312
+ - 0059ee2: fix(openai): update file_search fields to match API changes
313
+ - Updated dependencies [ac34802]
314
+ - @ai-sdk/provider-utils@3.0.0-beta.6
315
+
316
+ ## 2.0.0-beta.11
317
+
318
+ ### Patch Changes
319
+
320
+ - Updated dependencies [57edfcb]
321
+ - Updated dependencies [383cbfa]
322
+ - @ai-sdk/provider-utils@3.0.0-beta.5
323
+
324
+ ## 2.0.0-beta.10
325
+
326
+ ### Patch Changes
327
+
328
+ - 0fa7414: chore (provider/openai): standardize on itemId in provider metadata
329
+ - 205077b: fix: improve Zod compatibility
330
+ - Updated dependencies [205077b]
331
+ - @ai-sdk/provider-utils@3.0.0-beta.4
332
+
333
+ ## 2.0.0-beta.9
334
+
335
+ ### Patch Changes
336
+
337
+ - faea29f: fix (provider/openai): multi-step reasoning with text
338
+
339
+ ## 2.0.0-beta.8
340
+
341
+ ### Patch Changes
342
+
343
+ - db64cbe: fix (provider/openai): multi-step reasoning with tool calls
344
+ - Updated dependencies [05d2819]
345
+ - @ai-sdk/provider-utils@3.0.0-beta.3
346
+
347
+ ## 2.0.0-beta.7
348
+
349
+ ### Patch Changes
350
+
351
+ - 209256d: Add missing file_search tool support to OpenAI Responses API
352
+
353
+ ## 2.0.0-beta.6
354
+
355
+ ### Patch Changes
356
+
357
+ - 0eee6a8: Fix streaming and reconstruction of reasoning summary parts
358
+ - b5a0e32: fix (provider/openai): correct default for chat model strict mode
359
+ - c7d3b2e: fix (provider/openai): push first reasoning chunk in output item added event
360
+
361
+ ## 2.0.0-beta.5
362
+
363
+ ### Patch Changes
364
+
365
+ - 48249c4: Do not warn if empty text is the first part of a reasoning sequence
366
+ - e497698: fix (provider/openai): handle responses api errors
367
+
368
+ ## 2.0.0-beta.4
369
+
370
+ ### Patch Changes
371
+
372
+ - b3c3450: feat (provider/openai): add support for encrypted_reasoning to responses api
373
+ - ad2a3d5: feat(provider/openai): add missing reasoning models to responses API
374
+
375
+ ## 2.0.0-beta.3
376
+
377
+ ### Major Changes
378
+
379
+ - efc3a62: fix (provider/openai): default strict mode to false
380
+
381
+ ## 2.0.0-beta.2
382
+
383
+ ### Patch Changes
384
+
385
+ - d1a034f: feature: using Zod 4 for internal stuff
386
+ - Updated dependencies [0571b98]
387
+ - Updated dependencies [39a4fab]
388
+ - Updated dependencies [d1a034f]
389
+ - @ai-sdk/provider-utils@3.0.0-beta.2
390
+
391
+ ## 2.0.0-beta.1
392
+
393
+ ### Major Changes
394
+
395
+ - cc62234: chore (provider/openai): switch default to openai responses api
396
+
397
+ ### Patch Changes
398
+
399
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
400
+ - Updated dependencies [742b7be]
401
+ - Updated dependencies [7cddb72]
402
+ - Updated dependencies [ccce59b]
403
+ - Updated dependencies [e2b9e4b]
404
+ - Updated dependencies [45c1ea2]
405
+ - Updated dependencies [e025824]
406
+ - Updated dependencies [0d06df6]
407
+ - Updated dependencies [472524a]
408
+ - Updated dependencies [dd3ff01]
409
+ - Updated dependencies [7435eb5]
410
+ - Updated dependencies [cb68df0]
411
+ - Updated dependencies [bfdca8d]
412
+ - Updated dependencies [44f4aba]
413
+ - Updated dependencies [023ba40]
414
+ - Updated dependencies [5e57fae]
415
+ - Updated dependencies [71f938d]
416
+ - Updated dependencies [28a5ed5]
417
+ - @ai-sdk/provider@2.0.0-beta.1
418
+ - @ai-sdk/provider-utils@3.0.0-beta.1
419
+
420
+ ## 2.0.0-alpha.15
421
+
422
+ ### Patch Changes
423
+
424
+ - Updated dependencies [48d257a]
425
+ - Updated dependencies [8ba77a7]
426
+ - @ai-sdk/provider@2.0.0-alpha.15
427
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
428
+
429
+ ## 2.0.0-alpha.14
430
+
431
+ ### Patch Changes
432
+
433
+ - Updated dependencies [b5da06a]
434
+ - Updated dependencies [63f9e9b]
435
+ - Updated dependencies [2e13791]
436
+ - @ai-sdk/provider@2.0.0-alpha.14
437
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
438
+
439
+ ## 2.0.0-alpha.13
440
+
441
+ ### Patch Changes
442
+
443
+ - Updated dependencies [68ecf2f]
444
+ - @ai-sdk/provider@2.0.0-alpha.13
445
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
446
+
447
+ ## 2.0.0-alpha.12
448
+
449
+ ### Patch Changes
450
+
451
+ - 2f542fa: Add reasoning-part-finish parts for reasoning models in the responses API
452
+ - e2aceaf: feat: add raw chunk support
453
+ - Updated dependencies [e2aceaf]
454
+ - @ai-sdk/provider@2.0.0-alpha.12
455
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
456
+
457
+ ## 2.0.0-alpha.11
458
+
459
+ ### Patch Changes
460
+
461
+ - 8d12da5: feat(provider/openai): add serviceTier option for flex processing
462
+ - Updated dependencies [c1e6647]
463
+ - @ai-sdk/provider@2.0.0-alpha.11
464
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
465
+
466
+ ## 2.0.0-alpha.10
467
+
468
+ ### Patch Changes
469
+
470
+ - Updated dependencies [c4df419]
471
+ - @ai-sdk/provider@2.0.0-alpha.10
472
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
473
+
474
+ ## 2.0.0-alpha.9
475
+
476
+ ### Patch Changes
477
+
478
+ - Updated dependencies [811dff3]
479
+ - @ai-sdk/provider@2.0.0-alpha.9
480
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
481
+
482
+ ## 2.0.0-alpha.8
483
+
484
+ ### Patch Changes
485
+
486
+ - 4af5233: Fix PDF file parts when passed as a string url or Uint8Array
487
+ - Updated dependencies [4fef487]
488
+ - Updated dependencies [9222aeb]
489
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
490
+ - @ai-sdk/provider@2.0.0-alpha.8
491
+
492
+ ## 2.0.0-alpha.7
493
+
494
+ ### Patch Changes
495
+
496
+ - Updated dependencies [5c56081]
497
+ - @ai-sdk/provider@2.0.0-alpha.7
498
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
499
+
500
+ ## 2.0.0-alpha.6
501
+
502
+ ### Patch Changes
503
+
504
+ - Updated dependencies [0d2c085]
505
+ - @ai-sdk/provider@2.0.0-alpha.6
506
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
507
+
508
+ ## 2.0.0-alpha.4
509
+
510
+ ### Patch Changes
511
+
512
+ - Updated dependencies [dc714f3]
513
+ - @ai-sdk/provider@2.0.0-alpha.4
514
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
515
+
516
+ ## 2.0.0-alpha.3
517
+
518
+ ### Patch Changes
519
+
520
+ - Updated dependencies [6b98118]
521
+ - @ai-sdk/provider@2.0.0-alpha.3
522
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
523
+
524
+ ## 2.0.0-alpha.2
525
+
526
+ ### Patch Changes
527
+
528
+ - Updated dependencies [26535e0]
529
+ - @ai-sdk/provider@2.0.0-alpha.2
530
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
531
+
532
+ ## 2.0.0-alpha.1
533
+
534
+ ### Patch Changes
535
+
536
+ - Updated dependencies [3f2f00c]
537
+ - @ai-sdk/provider@2.0.0-alpha.1
538
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
539
+
540
+ ## 2.0.0-canary.20
541
+
542
+ ### Patch Changes
543
+
544
+ - Updated dependencies [faf8446]
545
+ - @ai-sdk/provider-utils@3.0.0-canary.19
546
+
547
+ ## 2.0.0-canary.19
548
+
549
+ ### Patch Changes
550
+
551
+ - Updated dependencies [40acf9b]
552
+ - @ai-sdk/provider-utils@3.0.0-canary.18
553
+
554
+ ## 2.0.0-canary.18
555
+
556
+ ### Major Changes
557
+
558
+ - 516be5b: ### Move Image Model Settings into generate options
559
+
560
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
561
+
562
+ Before
563
+
564
+ ```js
565
+ await generateImage({
566
+ model: luma.image('photon-flash-1', {
567
+ maxImagesPerCall: 5,
568
+ pollIntervalMillis: 500,
569
+ }),
570
+ prompt,
571
+ n: 10,
572
+ });
573
+ ```
574
+
575
+ After
576
+
577
+ ```js
578
+ await generateImage({
579
+ model: luma.image('photon-flash-1'),
580
+ prompt,
581
+ n: 10,
582
+ maxImagesPerCall: 5,
583
+ providerOptions: {
584
+ luma: { pollIntervalMillis: 5 },
585
+ },
586
+ });
587
+ ```
588
+
589
+ Pull Request: https://github.com/vercel/ai/pull/6180
590
+
591
+ ### Patch Changes
592
+
593
+ - Updated dependencies [ea7a7c9]
594
+ - @ai-sdk/provider-utils@3.0.0-canary.17
595
+
596
+ ## 2.0.0-canary.17
597
+
598
+ ### Patch Changes
599
+
600
+ - 52ce942: chore(providers/openai): remove & enable strict compatibility by default
601
+ - Updated dependencies [87b828f]
602
+ - @ai-sdk/provider-utils@3.0.0-canary.16
603
+
604
+ ## 2.0.0-canary.16
605
+
606
+ ### Patch Changes
607
+
608
+ - 928fadf: fix(providers/openai): logprobs for stream alongside completion model
609
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
610
+ - Updated dependencies [a571d6e]
611
+ - Updated dependencies [a8c8bd5]
612
+ - Updated dependencies [7979f7f]
613
+ - Updated dependencies [41fa418]
614
+ - @ai-sdk/provider-utils@3.0.0-canary.15
615
+ - @ai-sdk/provider@2.0.0-canary.14
616
+
617
+ ## 2.0.0-canary.15
618
+
619
+ ### Patch Changes
620
+
621
+ - 136819b: chore(providers/openai): re-introduce logprobs as providerMetadata
622
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
623
+
624
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
625
+
626
+ ```js
627
+ const prompt = 'Santa Claus driving a Cadillac';
628
+
629
+ const { providerMetadata } = await experimental_generateImage({
630
+ model: openai.image('dall-e-3'),
631
+ prompt,
632
+ });
633
+
634
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
635
+
636
+ console.log({
637
+ prompt,
638
+ revisedPrompt,
639
+ });
640
+ ```
641
+
642
+ - 284353f: fix(providers/openai): zod parse error with function
643
+ - Updated dependencies [957b739]
644
+ - Updated dependencies [9bd5ab5]
645
+ - @ai-sdk/provider-utils@3.0.0-canary.14
646
+ - @ai-sdk/provider@2.0.0-canary.13
647
+
648
+ ## 2.0.0-canary.14
649
+
650
+ ### Patch Changes
651
+
652
+ - fa758ea: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
653
+ - Updated dependencies [7b3ae3f]
654
+ - Updated dependencies [0ff02bb]
655
+ - @ai-sdk/provider@2.0.0-canary.12
656
+ - @ai-sdk/provider-utils@3.0.0-canary.13
657
+
658
+ ## 2.0.0-canary.13
659
+
660
+ ### Patch Changes
661
+
662
+ - 177526b: chore(providers/openai-transcription): switch to providerOptions
663
+ - c15dfbf: feat (providers/openai): add gpt-image-1 model id to image settings
664
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
665
+ - 4617fab: chore(embedding-models): remove remaining settings
666
+ - Updated dependencies [9bf7291]
667
+ - Updated dependencies [4617fab]
668
+ - Updated dependencies [e030615]
669
+ - @ai-sdk/provider@2.0.0-canary.11
670
+ - @ai-sdk/provider-utils@3.0.0-canary.12
671
+
672
+ ## 2.0.0-canary.12
673
+
674
+ ### Patch Changes
675
+
676
+ - db72adc: chore(providers/openai): update completion model to use providerOptions
677
+ - 66962ed: fix(packages): export node10 compatible types
678
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
679
+ - 7df7a25: feat (providers/openai): support gpt-image-1 image generation
680
+ - Updated dependencies [66962ed]
681
+ - Updated dependencies [9301f86]
682
+ - Updated dependencies [a3f768e]
683
+ - @ai-sdk/provider-utils@3.0.0-canary.11
684
+ - @ai-sdk/provider@2.0.0-canary.10
685
+
686
+ ## 2.0.0-canary.11
687
+
688
+ ### Patch Changes
689
+
690
+ - 8493141: feat (providers/openai): add support for reasoning summaries
691
+ - Updated dependencies [e86be6f]
692
+ - @ai-sdk/provider@2.0.0-canary.9
693
+ - @ai-sdk/provider-utils@3.0.0-canary.10
694
+
695
+ ## 2.0.0-canary.10
696
+
697
+ ### Patch Changes
698
+
699
+ - 3bd3c0b: chore(providers/openai): update embedding model to use providerOptions
700
+ - Updated dependencies [95857aa]
701
+ - Updated dependencies [7ea4132]
702
+ - @ai-sdk/provider@2.0.0-canary.8
703
+ - @ai-sdk/provider-utils@3.0.0-canary.9
704
+
705
+ ## 2.0.0-canary.9
706
+
707
+ ### Patch Changes
708
+
709
+ - d63bcbc: feat (provider/openai): o4 updates for responses api
710
+ - d2af019: feat (providers/openai): add gpt-4.1 models
711
+ - 870c5c0: feat (providers/openai): add o3 and o4-mini models
712
+ - 06bac05: fix (openai): structure output for responses model
713
+
714
+ ## 2.0.0-canary.8
715
+
716
+ ### Patch Changes
717
+
718
+ - 8aa9e20: feat: add speech with experimental_generateSpeech
719
+ - Updated dependencies [5d142ab]
720
+ - Updated dependencies [b6b43c7]
721
+ - Updated dependencies [8aa9e20]
722
+ - Updated dependencies [3795467]
723
+ - @ai-sdk/provider-utils@3.0.0-canary.8
724
+ - @ai-sdk/provider@2.0.0-canary.7
725
+
726
+ ## 2.0.0-canary.7
727
+
728
+ ### Patch Changes
729
+
730
+ - 26735b5: chore(embedding-model): add v2 interface
731
+ - 443d8ec: feat(embedding-model-v2): add response body field
732
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
733
+ - Updated dependencies [26735b5]
734
+ - Updated dependencies [443d8ec]
735
+ - Updated dependencies [14c9410]
736
+ - Updated dependencies [d9c98f4]
737
+ - Updated dependencies [c4a2fec]
738
+ - Updated dependencies [0054544]
739
+ - Updated dependencies [9e9c809]
740
+ - Updated dependencies [32831c6]
741
+ - Updated dependencies [d0f9495]
742
+ - Updated dependencies [fd65bc6]
743
+ - Updated dependencies [393138b]
744
+ - Updated dependencies [7182d14]
745
+ - @ai-sdk/provider@2.0.0-canary.6
746
+ - @ai-sdk/provider-utils@3.0.0-canary.7
747
+
748
+ ## 2.0.0-canary.6
749
+
750
+ ### Patch Changes
751
+
752
+ - 948b755: chore(providers/openai): convert to providerOptions
753
+ - 3b1ea10: adding support for gpt-4o-search-preview and handling unsupported parameters
754
+ - 442be08: fix: propagate openai transcription fixes
755
+ - 5147e6e: chore(openai): remove simulateStreaming
756
+ - c2b92cc: chore(openai): remove legacy function calling
757
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
758
+ - Updated dependencies [411e483]
759
+ - Updated dependencies [79457bd]
760
+ - Updated dependencies [ad80501]
761
+ - Updated dependencies [1766ede]
762
+ - Updated dependencies [f10304b]
763
+ - @ai-sdk/provider@2.0.0-canary.5
764
+ - @ai-sdk/provider-utils@3.0.0-canary.6
765
+
766
+ ## 2.0.0-canary.5
767
+
768
+ ### Patch Changes
769
+
770
+ - Updated dependencies [6f6bb89]
771
+ - @ai-sdk/provider@2.0.0-canary.4
772
+ - @ai-sdk/provider-utils@3.0.0-canary.5
773
+
774
+ ## 2.0.0-canary.4
775
+
776
+ ### Patch Changes
777
+
778
+ - Updated dependencies [d1a1aa1]
779
+ - @ai-sdk/provider@2.0.0-canary.3
780
+ - @ai-sdk/provider-utils@3.0.0-canary.4
781
+
782
+ ## 2.0.0-canary.3
783
+
784
+ ### Patch Changes
785
+
786
+ - a166433: feat: add transcription with experimental_transcribe
787
+ - 0a87932: core (ai): change transcription model mimeType to mediaType
788
+ - 0a87932: fix (provider/openai): increase transcription model resilience
789
+ - Updated dependencies [a166433]
790
+ - Updated dependencies [abf9a79]
791
+ - Updated dependencies [9f95b35]
792
+ - Updated dependencies [0a87932]
793
+ - Updated dependencies [6dc848c]
794
+ - @ai-sdk/provider-utils@3.0.0-canary.3
795
+ - @ai-sdk/provider@2.0.0-canary.2
796
+
797
+ ## 2.0.0-canary.2
798
+
799
+ ### Patch Changes
800
+
801
+ - Updated dependencies [c57e248]
802
+ - Updated dependencies [33f4a6a]
803
+ - @ai-sdk/provider@2.0.0-canary.1
804
+ - @ai-sdk/provider-utils@3.0.0-canary.2
805
+
806
+ ## 2.0.0-canary.1
807
+
808
+ ### Patch Changes
809
+
810
+ - Updated dependencies [060370c]
811
+ - Updated dependencies [0c0c0b3]
812
+ - Updated dependencies [63d791d]
813
+ - @ai-sdk/provider-utils@3.0.0-canary.1
814
+
815
+ ## 2.0.0-canary.0
816
+
817
+ ### Major Changes
818
+
819
+ - d5f588f: AI SDK 5
820
+
821
+ ### Patch Changes
822
+
823
+ - Updated dependencies [d5f588f]
824
+ - @ai-sdk/provider-utils@3.0.0-canary.0
825
+ - @ai-sdk/provider@2.0.0-canary.0
826
+
827
+ ## 1.3.6
828
+
829
+ ### Patch Changes
830
+
831
+ - Updated dependencies [28be004]
832
+ - @ai-sdk/provider-utils@2.2.3
833
+
834
+ ## 1.3.5
835
+
836
+ ### Patch Changes
837
+
838
+ - 52ed95f: fix (provider/openai): force web search tool
839
+ - Updated dependencies [b01120e]
840
+ - @ai-sdk/provider-utils@2.2.2
841
+
842
+ ## 1.3.4
843
+
844
+ ### Patch Changes
845
+
846
+ - b520dba: feat (provider/openai): add chatgpt-4o-latest model
847
+
848
+ ## 1.3.3
849
+
850
+ ### Patch Changes
851
+
852
+ - 24befd8: feat (provider/openai): add instructions to providerOptions
853
+
854
+ ## 1.3.2
855
+
856
+ ### Patch Changes
857
+
858
+ - db15028: feat (provider/openai): expose type for validating OpenAI responses provider options
859
+
860
+ ## 1.3.1
861
+
862
+ ### Patch Changes
863
+
864
+ - Updated dependencies [f10f0fa]
865
+ - @ai-sdk/provider-utils@2.2.1
866
+
867
+ ## 1.3.0
868
+
869
+ ### Minor Changes
870
+
871
+ - 5bc638d: AI SDK 4.2
872
+
873
+ ### Patch Changes
874
+
875
+ - Updated dependencies [5bc638d]
876
+ - @ai-sdk/provider@1.1.0
877
+ - @ai-sdk/provider-utils@2.2.0
878
+
879
+ ## 1.2.8
880
+
881
+ ### Patch Changes
882
+
883
+ - 9f4f1bc: feat (provider/openai): pdf support for chat language models
884
+
885
+ ## 1.2.7
886
+
887
+ ### Patch Changes
888
+
889
+ - Updated dependencies [d0c4659]
890
+ - @ai-sdk/provider-utils@2.1.15
891
+
892
+ ## 1.2.6
893
+
894
+ ### Patch Changes
895
+
896
+ - Updated dependencies [0bd5bc6]
897
+ - @ai-sdk/provider@1.0.12
898
+ - @ai-sdk/provider-utils@2.1.14
899
+
900
+ ## 1.2.5
901
+
902
+ ### Patch Changes
903
+
904
+ - 2e1101a: feat (provider/openai): pdf input support
905
+ - Updated dependencies [2e1101a]
906
+ - @ai-sdk/provider@1.0.11
907
+ - @ai-sdk/provider-utils@2.1.13
908
+
909
+ ## 1.2.4
910
+
911
+ ### Patch Changes
912
+
913
+ - 523f128: feat (provider/openai): add strictSchemas option to responses model
914
+
915
+ ## 1.2.3
916
+
917
+ ### Patch Changes
918
+
919
+ - Updated dependencies [1531959]
920
+ - @ai-sdk/provider-utils@2.1.12
921
+
922
+ ## 1.2.2
923
+
924
+ ### Patch Changes
925
+
926
+ - e3a389e: feat (provider/openai): support responses api
927
+
928
+ ## 1.2.1
929
+
930
+ ### Patch Changes
931
+
932
+ - e1d3d42: feat (ai): expose raw response body in generateText and generateObject
933
+ - Updated dependencies [e1d3d42]
934
+ - @ai-sdk/provider@1.0.10
935
+ - @ai-sdk/provider-utils@2.1.11
936
+
937
+ ## 1.2.0
938
+
939
+ ### Minor Changes
940
+
941
+ - ede6d1b: feat (provider/azure): Add Azure image model support
942
+
943
+ ## 1.1.15
944
+
945
+ ### Patch Changes
946
+
947
+ - d8216f8: feat (provider/openai): add gpt-4.5-preview to model id set
948
+
949
+ ## 1.1.14
950
+
951
+ ### Patch Changes
952
+
953
+ - Updated dependencies [ddf9740]
954
+ - @ai-sdk/provider@1.0.9
955
+ - @ai-sdk/provider-utils@2.1.10
956
+
957
+ ## 1.1.13
958
+
959
+ ### Patch Changes
960
+
961
+ - Updated dependencies [2761f06]
962
+ - @ai-sdk/provider@1.0.8
963
+ - @ai-sdk/provider-utils@2.1.9
964
+
965
+ ## 1.1.12
966
+
967
+ ### Patch Changes
968
+
969
+ - ea159cb: chore (provider/openai): remove default streaming simulation for o1
970
+
971
+ ## 1.1.11
972
+
973
+ ### Patch Changes
974
+
975
+ - Updated dependencies [2e898b4]
976
+ - @ai-sdk/provider-utils@2.1.8
977
+
978
+ ## 1.1.10
979
+
980
+ ### Patch Changes
981
+
982
+ - Updated dependencies [3ff4ef8]
983
+ - @ai-sdk/provider-utils@2.1.7
984
+
985
+ ## 1.1.9
986
+
987
+ ### Patch Changes
988
+
989
+ - c55b81a: fix (provider/openai): fix o3-mini streaming
990
+
991
+ ## 1.1.8
992
+
993
+ ### Patch Changes
994
+
995
+ - 161be90: fix (provider/openai): fix model id typo
996
+
997
+ ## 1.1.7
998
+
999
+ ### Patch Changes
1000
+
1001
+ - 0a2f026: feat (provider/openai): add o3-mini
1002
+
1003
+ ## 1.1.6
1004
+
1005
+ ### Patch Changes
1006
+
1007
+ - d89c3b9: feat (provider): add image model support to provider specification
1008
+ - Updated dependencies [d89c3b9]
1009
+ - @ai-sdk/provider@1.0.7
1010
+ - @ai-sdk/provider-utils@2.1.6
1011
+
1012
+ ## 1.1.5
1013
+
1014
+ ### Patch Changes
1015
+
1016
+ - Updated dependencies [3a602ca]
1017
+ - @ai-sdk/provider-utils@2.1.5
1018
+
1019
+ ## 1.1.4
1020
+
1021
+ ### Patch Changes
1022
+
1023
+ - Updated dependencies [066206e]
1024
+ - @ai-sdk/provider-utils@2.1.4
1025
+
1026
+ ## 1.1.3
1027
+
1028
+ ### Patch Changes
1029
+
1030
+ - Updated dependencies [39e5c1f]
1031
+ - @ai-sdk/provider-utils@2.1.3
1032
+
1033
+ ## 1.1.2
1034
+
1035
+ ### Patch Changes
1036
+
1037
+ - 3a58a2e: feat (ai/core): throw NoImageGeneratedError from generateImage when no predictions are returned.
1038
+ - Updated dependencies [ed012d2]
1039
+ - Updated dependencies [3a58a2e]
1040
+ - @ai-sdk/provider-utils@2.1.2
1041
+ - @ai-sdk/provider@1.0.6
1042
+
1043
+ ## 1.1.1
1044
+
1045
+ ### Patch Changes
1046
+
1047
+ - e7a9ec9: feat (provider-utils): include raw value in json parse results
1048
+ - Updated dependencies [e7a9ec9]
1049
+ - Updated dependencies [0a699f1]
1050
+ - @ai-sdk/provider-utils@2.1.1
1051
+ - @ai-sdk/provider@1.0.5
1052
+
1053
+ ## 1.1.0
1054
+
1055
+ ### Minor Changes
1056
+
1057
+ - 62ba5ad: release: AI SDK 4.1
1058
+
1059
+ ### Patch Changes
1060
+
1061
+ - Updated dependencies [62ba5ad]
1062
+ - @ai-sdk/provider-utils@2.1.0
1063
+
1064
+ ## 1.0.20
1065
+
1066
+ ### Patch Changes
1067
+
1068
+ - Updated dependencies [00114c5]
1069
+ - @ai-sdk/provider-utils@2.0.8
1070
+
1071
+ ## 1.0.19
1072
+
1073
+ ### Patch Changes
1074
+
1075
+ - 218d001: feat (provider): Add maxImagesPerCall setting to all image providers.
1076
+
1077
+ ## 1.0.18
1078
+
1079
+ ### Patch Changes
1080
+
1081
+ - fe816e4: fix (provider/openai): streamObject with o1
1082
+
1083
+ ## 1.0.17
1084
+
1085
+ ### Patch Changes
1086
+
1087
+ - ba62cf2: feat (provider/openai): automatically map maxTokens to max_completion_tokens for reasoning models
1088
+ - 3c3fae8: fix (provider/openai): add o1-mini-2024-09-12 and o1-preview-2024-09-12 configurations
1089
+
1090
+ ## 1.0.16
1091
+
1092
+ ### Patch Changes
1093
+
1094
+ - Updated dependencies [90fb95a]
1095
+ - Updated dependencies [e6dfef4]
1096
+ - Updated dependencies [6636db6]
1097
+ - @ai-sdk/provider-utils@2.0.7
1098
+
1099
+ ## 1.0.15
1100
+
1101
+ ### Patch Changes
1102
+
1103
+ - f8c6acb: feat (provider/openai): automatically simulate streaming for reasoning models
1104
+ - d0041f7: feat (provider/openai): improved system message support for reasoning models
1105
+ - 4d2f97b: feat (provider/openai): improve automatic setting removal for reasoning models
1106
+
1107
+ ## 1.0.14
1108
+
1109
+ ### Patch Changes
1110
+
1111
+ - 19a2ce7: feat (ai/core): add aspectRatio and seed options to generateImage
1112
+ - 6337688: feat: change image generation errors to warnings
1113
+ - Updated dependencies [19a2ce7]
1114
+ - Updated dependencies [19a2ce7]
1115
+ - Updated dependencies [6337688]
1116
+ - @ai-sdk/provider@1.0.4
1117
+ - @ai-sdk/provider-utils@2.0.6
1118
+
1119
+ ## 1.0.13
1120
+
1121
+ ### Patch Changes
1122
+
1123
+ - b19aa82: feat (provider/openai): add predicted outputs token usage
1124
+
1125
+ ## 1.0.12
1126
+
1127
+ ### Patch Changes
1128
+
1129
+ - a4241ff: feat (provider/openai): add o3 reasoning model support
1130
+
1131
+ ## 1.0.11
1132
+
1133
+ ### Patch Changes
1134
+
1135
+ - 5ed5e45: chore (config): Use ts-library.json tsconfig for no-UI libs.
1136
+ - Updated dependencies [5ed5e45]
1137
+ - @ai-sdk/provider-utils@2.0.5
1138
+ - @ai-sdk/provider@1.0.3
1139
+
1140
+ ## 1.0.10
1141
+
1142
+ ### Patch Changes
1143
+
1144
+ - d4fad4e: fix (provider/openai): fix reasoning model detection
1145
+
1146
+ ## 1.0.9
1147
+
1148
+ ### Patch Changes
1149
+
1150
+ - 3fab0fb: feat (provider/openai): support reasoning_effort setting
1151
+ - e956eed: feat (provider/openai): update model list and add o1
1152
+ - 6faab13: feat (provider/openai): simulated streaming setting
1153
+
1154
+ ## 1.0.8
1155
+
1156
+ ### Patch Changes
1157
+
1158
+ - 09a9cab: feat (ai/core): add experimental generateImage function
1159
+ - Updated dependencies [09a9cab]
1160
+ - @ai-sdk/provider@1.0.2
1161
+ - @ai-sdk/provider-utils@2.0.4
1162
+
1163
+ ## 1.0.7
1164
+
1165
+ ### Patch Changes
1166
+
1167
+ - Updated dependencies [0984f0b]
1168
+ - @ai-sdk/provider-utils@2.0.3
1169
+
1170
+ ## 1.0.6
1171
+
1172
+ ### Patch Changes
1173
+
1174
+ - a9a19cb: fix (provider/openai,groq): prevent sending duplicate tool calls
1175
+
1176
+ ## 1.0.5
1177
+
1178
+ ### Patch Changes
1179
+
1180
+ - fc18132: feat (ai/core): experimental output for generateText
1181
+
1182
+ ## 1.0.4
1183
+
1184
+ ### Patch Changes
1185
+
1186
+ - Updated dependencies [b446ae5]
1187
+ - @ai-sdk/provider@1.0.1
1188
+ - @ai-sdk/provider-utils@2.0.2
1189
+
1190
+ ## 1.0.3
1191
+
1192
+ ### Patch Changes
1193
+
1194
+ - b748dfb: feat (providers): update model lists
1195
+
1196
+ ## 1.0.2
1197
+
1198
+ ### Patch Changes
1199
+
1200
+ - Updated dependencies [c3ab5de]
1201
+ - @ai-sdk/provider-utils@2.0.1
1202
+
1203
+ ## 1.0.1
1204
+
1205
+ ### Patch Changes
1206
+
1207
+ - 5e6419a: feat (provider/openai): support streaming for reasoning models
1208
+
1209
+ ## 1.0.0
1210
+
1211
+ ### Major Changes
1212
+
1213
+ - 66060f7: chore (release): bump major version to 4.0
1214
+ - 79644e9: chore (provider/openai): remove OpenAI facade
1215
+ - 0d3d3f5: chore (providers): remove baseUrl option
1216
+
1217
+ ### Patch Changes
1218
+
1219
+ - Updated dependencies [b469a7e]
1220
+ - Updated dependencies [dce4158]
1221
+ - Updated dependencies [c0ddc24]
1222
+ - Updated dependencies [b1da952]
1223
+ - Updated dependencies [dce4158]
1224
+ - Updated dependencies [8426f55]
1225
+ - Updated dependencies [db46ce5]
1226
+ - @ai-sdk/provider-utils@2.0.0
1227
+ - @ai-sdk/provider@1.0.0
1228
+
1229
+ ## 1.0.0-canary.3
1230
+
1231
+ ### Patch Changes
1232
+
1233
+ - Updated dependencies [8426f55]
1234
+ - @ai-sdk/provider-utils@2.0.0-canary.3
1235
+
1236
+ ## 1.0.0-canary.2
1237
+
1238
+ ### Patch Changes
1239
+
1240
+ - Updated dependencies [dce4158]
1241
+ - Updated dependencies [dce4158]
1242
+ - @ai-sdk/provider-utils@2.0.0-canary.2
1243
+
1244
+ ## 1.0.0-canary.1
1245
+
1246
+ ### Major Changes
1247
+
1248
+ - 79644e9: chore (provider/openai): remove OpenAI facade
1249
+ - 0d3d3f5: chore (providers): remove baseUrl option
1250
+
1251
+ ### Patch Changes
1252
+
1253
+ - Updated dependencies [b1da952]
1254
+ - @ai-sdk/provider-utils@2.0.0-canary.1
1255
+
1256
+ ## 1.0.0-canary.0
1257
+
1258
+ ### Major Changes
1259
+
1260
+ - 66060f7: chore (release): bump major version to 4.0
1261
+
1262
+ ### Patch Changes
1263
+
1264
+ - Updated dependencies [b469a7e]
1265
+ - Updated dependencies [c0ddc24]
1266
+ - Updated dependencies [db46ce5]
1267
+ - @ai-sdk/provider-utils@2.0.0-canary.0
1268
+ - @ai-sdk/provider@1.0.0-canary.0
1269
+
1270
+ ## 0.0.72
1271
+
1272
+ ### Patch Changes
1273
+
1274
+ - 0bc4115: feat (provider/openai): support predicted outputs
1275
+
1276
+ ## 0.0.71
1277
+
1278
+ ### Patch Changes
1279
+
1280
+ - 54a3a59: fix (provider/openai): support object-json mode without schema
1281
+
1282
+ ## 0.0.70
1283
+
1284
+ ### Patch Changes
1285
+
1286
+ - 3b1b69a: feat: provider-defined tools
1287
+ - Updated dependencies [aa98cdb]
1288
+ - Updated dependencies [1486128]
1289
+ - Updated dependencies [7b937c5]
1290
+ - Updated dependencies [3b1b69a]
1291
+ - Updated dependencies [811a317]
1292
+ - @ai-sdk/provider-utils@1.0.22
1293
+ - @ai-sdk/provider@0.0.26
1294
+
1295
+ ## 0.0.69
1296
+
1297
+ ### Patch Changes
1298
+
1299
+ - b9b0d7b: feat (ai): access raw request body
1300
+ - Updated dependencies [b9b0d7b]
1301
+ - @ai-sdk/provider@0.0.25
1302
+ - @ai-sdk/provider-utils@1.0.21
1303
+
1304
+ ## 0.0.68
1305
+
1306
+ ### Patch Changes
1307
+
1308
+ - 741ca51: feat (provider/openai): support mp3 and wav audio inputs
1309
+
1310
+ ## 0.0.67
1311
+
1312
+ ### Patch Changes
1313
+
1314
+ - 39fccee: feat (provider/openai): provider name can be changed for 3rd party openai compatible providers
1315
+
1316
+ ## 0.0.66
1317
+
1318
+ ### Patch Changes
1319
+
1320
+ - 3f29c10: feat (provider/openai): support metadata field for distillation
1321
+
1322
+ ## 0.0.65
1323
+
1324
+ ### Patch Changes
1325
+
1326
+ - e8aed44: Add OpenAI cached prompt tokens to experimental_providerMetadata for generateText and streamText
1327
+
1328
+ ## 0.0.64
1329
+
1330
+ ### Patch Changes
1331
+
1332
+ - 5aa576d: feat (provider/openai): support store parameter for distillation
1333
+
1334
+ ## 0.0.63
1335
+
1336
+ ### Patch Changes
1337
+
1338
+ - Updated dependencies [d595d0d]
1339
+ - @ai-sdk/provider@0.0.24
1340
+ - @ai-sdk/provider-utils@1.0.20
1341
+
1342
+ ## 0.0.62
1343
+
1344
+ ### Patch Changes
1345
+
1346
+ - 7efa867: feat (provider/openai): simulated streaming for reasoning models
1347
+
1348
+ ## 0.0.61
1349
+
1350
+ ### Patch Changes
1351
+
1352
+ - 8132a60: feat (provider/openai): support reasoning token usage and max_completion_tokens
1353
+
1354
+ ## 0.0.60
1355
+
1356
+ ### Patch Changes
1357
+
1358
+ - Updated dependencies [273f696]
1359
+ - @ai-sdk/provider-utils@1.0.19
1360
+
1361
+ ## 0.0.59
1362
+
1363
+ ### Patch Changes
1364
+
1365
+ - a0991ec: feat (provider/openai): add o1-preview and o1-mini models
1366
+
1367
+ ## 0.0.58
1368
+
1369
+ ### Patch Changes
1370
+
1371
+ - e0c36bd: feat (provider/openai): support image detail
1372
+
1373
+ ## 0.0.57
1374
+
1375
+ ### Patch Changes
1376
+
1377
+ - d1aaeae: feat (provider/openai): support ai sdk image download
1378
+
1379
+ ## 0.0.56
1380
+
1381
+ ### Patch Changes
1382
+
1383
+ - 03313cd: feat (ai): expose response id, response model, response timestamp in telemetry and api
1384
+ - Updated dependencies [03313cd]
1385
+ - Updated dependencies [3be7c1c]
1386
+ - @ai-sdk/provider-utils@1.0.18
1387
+ - @ai-sdk/provider@0.0.23
1388
+
1389
+ ## 0.0.55
1390
+
1391
+ ### Patch Changes
1392
+
1393
+ - 28cbf2e: fix (provider/openai): support tool call deltas when arguments are sent in the first chunk
1394
+
1395
+ ## 0.0.54
1396
+
1397
+ ### Patch Changes
1398
+
1399
+ - 26515cb: feat (ai/provider): introduce ProviderV1 specification
1400
+ - Updated dependencies [26515cb]
1401
+ - @ai-sdk/provider@0.0.22
1402
+ - @ai-sdk/provider-utils@1.0.17
1403
+
1404
+ ## 0.0.53
1405
+
1406
+ ### Patch Changes
1407
+
1408
+ - Updated dependencies [09f895f]
1409
+ - @ai-sdk/provider-utils@1.0.16
1410
+
1411
+ ## 0.0.52
1412
+
1413
+ ### Patch Changes
1414
+
1415
+ - d5b6a15: feat (provider/openai): support partial usage information
1416
+
1417
+ ## 0.0.51
1418
+
1419
+ ### Patch Changes
1420
+
1421
+ - Updated dependencies [d67fa9c]
1422
+ - @ai-sdk/provider-utils@1.0.15
1423
+
1424
+ ## 0.0.50
1425
+
1426
+ ### Patch Changes
1427
+
1428
+ - Updated dependencies [f2c025e]
1429
+ - @ai-sdk/provider@0.0.21
1430
+ - @ai-sdk/provider-utils@1.0.14
1431
+
1432
+ ## 0.0.49
1433
+
1434
+ ### Patch Changes
1435
+
1436
+ - f42d9bd: fix (provider/openai): support OpenRouter streaming errors
1437
+
1438
+ ## 0.0.48
1439
+
1440
+ ### Patch Changes
1441
+
1442
+ - Updated dependencies [6ac355e]
1443
+ - @ai-sdk/provider@0.0.20
1444
+ - @ai-sdk/provider-utils@1.0.13
1445
+
1446
+ ## 0.0.47
1447
+
1448
+ ### Patch Changes
1449
+
1450
+ - 4ffbaee: fix (provider/openai): fix strict flag for structured outputs with tools
1451
+ - dd712ac: fix: use FetchFunction type to prevent self-reference
1452
+ - Updated dependencies [dd712ac]
1453
+ - @ai-sdk/provider-utils@1.0.12
1454
+
1455
+ ## 0.0.46
1456
+
1457
+ ### Patch Changes
1458
+
1459
+ - 89b18ca: fix (ai/provider): send finish reason 'unknown' by default
1460
+ - Updated dependencies [dd4a0f5]
1461
+ - @ai-sdk/provider@0.0.19
1462
+ - @ai-sdk/provider-utils@1.0.11
1463
+
1464
+ ## 0.0.45
1465
+
1466
+ ### Patch Changes
1467
+
1468
+ - Updated dependencies [4bd27a9]
1469
+ - Updated dependencies [845754b]
1470
+ - @ai-sdk/provider-utils@1.0.10
1471
+ - @ai-sdk/provider@0.0.18
1472
+
1473
+ ## 0.0.44
1474
+
1475
+ ### Patch Changes
1476
+
1477
+ - 029af4c: feat (ai/core): support schema name & description in generateObject & streamObject
1478
+ - Updated dependencies [029af4c]
1479
+ - @ai-sdk/provider@0.0.17
1480
+ - @ai-sdk/provider-utils@1.0.9
1481
+
1482
+ ## 0.0.43
1483
+
1484
+ ### Patch Changes
1485
+
1486
+ - d58517b: feat (ai/openai): structured outputs
1487
+ - c0a73ee: feat (provider/openai): add gpt-4o-2024-08-06 to list of supported models
1488
+ - Updated dependencies [d58517b]
1489
+ - @ai-sdk/provider@0.0.16
1490
+ - @ai-sdk/provider-utils@1.0.8
1491
+
1492
+ ## 0.0.42
1493
+
1494
+ ### Patch Changes
1495
+
1496
+ - Updated dependencies [96aed25]
1497
+ - @ai-sdk/provider@0.0.15
1498
+ - @ai-sdk/provider-utils@1.0.7
1499
+
1500
+ ## 0.0.41
1501
+
1502
+ ### Patch Changes
1503
+
1504
+ - 7a2eb27: feat (provider/openai): make role nullish to enhance provider support
1505
+ - Updated dependencies [9614584]
1506
+ - Updated dependencies [0762a22]
1507
+ - @ai-sdk/provider-utils@1.0.6
1508
+
1509
+ ## 0.0.40
1510
+
1511
+ ### Patch Changes
1512
+
1513
+ - Updated dependencies [a8d1c9e9]
1514
+ - @ai-sdk/provider-utils@1.0.5
1515
+ - @ai-sdk/provider@0.0.14
1516
+
1517
+ ## 0.0.39
1518
+
1519
+ ### Patch Changes
1520
+
1521
+ - Updated dependencies [4f88248f]
1522
+ - @ai-sdk/provider-utils@1.0.4
1523
+
1524
+ ## 0.0.38
1525
+
1526
+ ### Patch Changes
1527
+
1528
+ - 2b9da0f0: feat (core): support stopSequences setting.
1529
+ - 909b9d27: feat (ai/openai): Support legacy function calls
1530
+ - a5b58845: feat (core): support topK setting
1531
+ - 4aa8deb3: feat (provider): support responseFormat setting in provider api
1532
+ - 13b27ec6: chore (ai/core): remove grammar mode
1533
+ - Updated dependencies [2b9da0f0]
1534
+ - Updated dependencies [a5b58845]
1535
+ - Updated dependencies [4aa8deb3]
1536
+ - Updated dependencies [13b27ec6]
1537
+ - @ai-sdk/provider@0.0.13
1538
+ - @ai-sdk/provider-utils@1.0.3
1539
+
1540
+ ## 0.0.37
1541
+
1542
+ ### Patch Changes
1543
+
1544
+ - 89947fc5: chore (provider/openai): update model list for type-ahead support
1545
+
1546
+ ## 0.0.36
1547
+
1548
+ ### Patch Changes
1549
+
1550
+ - b7290943: feat (ai/core): add token usage to embed and embedMany
1551
+ - Updated dependencies [b7290943]
1552
+ - @ai-sdk/provider@0.0.12
1553
+ - @ai-sdk/provider-utils@1.0.2
1554
+
1555
+ ## 0.0.35
1556
+
1557
+ ### Patch Changes
1558
+
1559
+ - Updated dependencies [d481729f]
1560
+ - @ai-sdk/provider-utils@1.0.1
1561
+
1562
+ ## 0.0.34
1563
+
1564
+ ### Patch Changes
1565
+
1566
+ - 5edc6110: feat (ai/core): add custom request header support
1567
+ - Updated dependencies [5edc6110]
1568
+ - Updated dependencies [5edc6110]
1569
+ - Updated dependencies [5edc6110]
1570
+ - @ai-sdk/provider@0.0.11
1571
+ - @ai-sdk/provider-utils@1.0.0
1572
+
1573
+ ## 0.0.33
1574
+
1575
+ ### Patch Changes
1576
+
1577
+ - Updated dependencies [02f6a088]
1578
+ - @ai-sdk/provider-utils@0.0.16
1579
+
1580
+ ## 0.0.32
1581
+
1582
+ ### Patch Changes
1583
+
1584
+ - 1b37b8b9: fix (@ai-sdk/openai): only send logprobs settings when logprobs are requested
1585
+
1586
+ ## 0.0.31
1587
+
1588
+ ### Patch Changes
1589
+
1590
+ - eba071dd: feat (@ai-sdk/azure): add azure openai completion support
1591
+ - 1ea890fe: feat (@ai-sdk/azure): add azure openai completion support
1592
+
1593
+ ## 0.0.30
1594
+
1595
+ ### Patch Changes
1596
+
1597
+ - Updated dependencies [85712895]
1598
+ - Updated dependencies [85712895]
1599
+ - @ai-sdk/provider-utils@0.0.15
1600
+
1601
+ ## 0.0.29
1602
+
1603
+ ### Patch Changes
1604
+
1605
+ - 4728c37f: feat (core): add text embedding model support to provider registry
1606
+ - 7910ae84: feat (providers): support custom fetch implementations
1607
+ - Updated dependencies [7910ae84]
1608
+ - @ai-sdk/provider-utils@0.0.14
1609
+
1610
+ ## 0.0.28
1611
+
1612
+ ### Patch Changes
1613
+
1614
+ - f9db8fd6: feat (@ai-sdk/openai): add parallelToolCalls setting
1615
+
1616
+ ## 0.0.27
1617
+
1618
+ ### Patch Changes
1619
+
1620
+ - fc9552ec: fix (@ai-sdk/azure): allow for nullish delta
1621
+
1622
+ ## 0.0.26
1623
+
1624
+ ### Patch Changes
1625
+
1626
+ - 7530f861: fix (@ai-sdk/openai): add internal dist to bundle
1627
+
1628
+ ## 0.0.25
1629
+
1630
+ ### Patch Changes
1631
+
1632
+ - 8b1362a7: chore (@ai-sdk/openai): expose models under /internal for reuse in other providers
1633
+
1634
+ ## 0.0.24
1635
+
1636
+ ### Patch Changes
1637
+
1638
+ - 0e78960c: fix (@ai-sdk/openai): make function name and arguments nullish
1639
+
1640
+ ## 0.0.23
1641
+
1642
+ ### Patch Changes
1643
+
1644
+ - a68fe74a: fix (@ai-sdk/openai): allow null tool_calls value.
1645
+
1646
+ ## 0.0.22
1647
+
1648
+ ### Patch Changes
1649
+
1650
+ - Updated dependencies [102ca22f]
1651
+ - @ai-sdk/provider@0.0.10
1652
+ - @ai-sdk/provider-utils@0.0.13
1653
+
1654
+ ## 0.0.21
1655
+
1656
+ ### Patch Changes
1657
+
1658
+ - fca7d026: feat (provider/openai): support streaming tool calls that are sent in one chunk
1659
+ - Updated dependencies [09295e2e]
1660
+ - Updated dependencies [09295e2e]
1661
+ - Updated dependencies [043a5de2]
1662
+ - @ai-sdk/provider@0.0.9
1663
+ - @ai-sdk/provider-utils@0.0.12
1664
+
1665
+ ## 0.0.20
1666
+
1667
+ ### Patch Changes
1668
+
1669
+ - a1d08f3e: fix (provider/openai): handle error chunks when streaming
1670
+
1671
+ ## 0.0.19
1672
+
1673
+ ### Patch Changes
1674
+
1675
+ - beb8b739: fix (provider/openai): return unknown finish reasons as unknown
1676
+
1677
+ ## 0.0.18
1678
+
1679
+ ### Patch Changes
1680
+
1681
+ - fb42e760: feat (provider/openai): send user message content as text when possible
1682
+
1683
+ ## 0.0.17
1684
+
1685
+ ### Patch Changes
1686
+
1687
+ - f39c0dd2: feat (provider): implement toolChoice support
1688
+ - Updated dependencies [f39c0dd2]
1689
+ - @ai-sdk/provider@0.0.8
1690
+ - @ai-sdk/provider-utils@0.0.11
1691
+
1692
+ ## 0.0.16
1693
+
1694
+ ### Patch Changes
1695
+
1696
+ - 2b18fa11: fix (provider/openai): remove object type validation
1697
+
1698
+ ## 0.0.15
1699
+
1700
+ ### Patch Changes
1701
+
1702
+ - 24683b72: fix (providers): Zod is required dependency
1703
+ - Updated dependencies [8e780288]
1704
+ - @ai-sdk/provider@0.0.7
1705
+ - @ai-sdk/provider-utils@0.0.10
1706
+
1707
+ ## 0.0.14
1708
+
1709
+ ### Patch Changes
1710
+
1711
+ - Updated dependencies [6a50ac4]
1712
+ - Updated dependencies [6a50ac4]
1713
+ - @ai-sdk/provider@0.0.6
1714
+ - @ai-sdk/provider-utils@0.0.9
1715
+
1716
+ ## 0.0.13
1717
+
1718
+ ### Patch Changes
1719
+
1720
+ - 4e3c922: fix (provider/openai): introduce compatibility mode in which "stream_options" are not sent
1721
+
1722
+ ## 0.0.12
1723
+
1724
+ ### Patch Changes
1725
+
1726
+ - 6f48839: feat (provider/openai): add gpt-4o to the list of supported models
1727
+ - 1009594: feat (provider/openai): set stream_options/include_usage to true when streaming
1728
+ - 0f6bc4e: feat (ai/core): add embed function
1729
+ - Updated dependencies [0f6bc4e]
1730
+ - @ai-sdk/provider@0.0.5
1731
+ - @ai-sdk/provider-utils@0.0.8
1732
+
1733
+ ## 0.0.11
1734
+
1735
+ ### Patch Changes
1736
+
1737
+ - Updated dependencies [325ca55]
1738
+ - @ai-sdk/provider@0.0.4
1739
+ - @ai-sdk/provider-utils@0.0.7
1740
+
1741
+ ## 0.0.10
1742
+
1743
+ ### Patch Changes
1744
+
1745
+ - Updated dependencies [276f22b]
1746
+ - @ai-sdk/provider-utils@0.0.6
1747
+
1748
+ ## 0.0.9
1749
+
1750
+ ### Patch Changes
1751
+
1752
+ - Updated dependencies [41d5736]
1753
+ - @ai-sdk/provider@0.0.3
1754
+ - @ai-sdk/provider-utils@0.0.5
1755
+
1756
+ ## 0.0.8
1757
+
1758
+ ### Patch Changes
1759
+
1760
+ - Updated dependencies [56ef84a]
1761
+ - @ai-sdk/provider-utils@0.0.4
1762
+
1763
+ ## 0.0.7
1764
+
1765
+ ### Patch Changes
1766
+
1767
+ - 0833e19: Allow optional content to support Fireworks function calling.
1768
+
1769
+ ## 0.0.6
1770
+
1771
+ ### Patch Changes
1772
+
1773
+ - d6431ae: ai/core: add logprobs support (thanks @SamStenner for the contribution)
1774
+ - 25f3350: ai/core: add support for getting raw response headers.
1775
+ - Updated dependencies [d6431ae]
1776
+ - Updated dependencies [25f3350]
1777
+ - @ai-sdk/provider@0.0.2
1778
+ - @ai-sdk/provider-utils@0.0.3
1779
+
1780
+ ## 0.0.5
1781
+
1782
+ ### Patch Changes
1783
+
1784
+ - 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.
1785
+ - Updated dependencies [eb150a6]
1786
+ - @ai-sdk/provider-utils@0.0.2
1787
+ - @ai-sdk/provider@0.0.1
1788
+
1789
+ ## 0.0.4
1790
+
1791
+ ### Patch Changes
1792
+
1793
+ - c6fc35b: Add custom header and OpenAI project support.
1794
+
1795
+ ## 0.0.3
1796
+
1797
+ ### Patch Changes
1798
+
1799
+ - ab60b18: Simplified model construction by directly calling provider functions. Add create... functions to create provider instances.
1800
+
1801
+ ## 0.0.2
1802
+
1803
+ ### Patch Changes
1804
+
1805
+ - 2bff460: Fix build for release.
1806
+
1807
+ ## 0.0.1
1808
+
1809
+ ### Patch Changes
1810
+
1811
+ - 7b8791d: Support streams with 'chat.completion' objects.
1812
+ - 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.
1813
+ - Updated dependencies [7b8791d]
1814
+ - @ai-sdk/provider-utils@0.0.1