@ai-sdk/openai 2.0.0-canary.9 → 2.0.1

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 CHANGED
@@ -1,5 +1,665 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - bc45e29: feat(openai): add file_search_call support to responses api
8
+
9
+ ## 2.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - d5f588f: AI SDK 5
14
+ - cc62234: chore (provider/openai): switch default to openai responses api
15
+ - 516be5b: ### Move Image Model Settings into generate options
16
+
17
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
18
+
19
+ Before
20
+
21
+ ```js
22
+ await generateImage({
23
+ model: luma.image('photon-flash-1', {
24
+ maxImagesPerCall: 5,
25
+ pollIntervalMillis: 500,
26
+ }),
27
+ prompt,
28
+ n: 10,
29
+ });
30
+ ```
31
+
32
+ After
33
+
34
+ ```js
35
+ await generateImage({
36
+ model: luma.image('photon-flash-1'),
37
+ prompt,
38
+ n: 10,
39
+ maxImagesPerCall: 5,
40
+ providerOptions: {
41
+ luma: { pollIntervalMillis: 5 },
42
+ },
43
+ });
44
+ ```
45
+
46
+ Pull Request: https://github.com/vercel/ai/pull/6180
47
+
48
+ - efc3a62: fix (provider/openai): default strict mode to false
49
+
50
+ ### Patch Changes
51
+
52
+ - 948b755: chore(providers/openai): convert to providerOptions
53
+ - d63bcbc: feat (provider/openai): o4 updates for responses api
54
+ - 3bd3c0b: chore(providers/openai): update embedding model to use providerOptions
55
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
56
+ - 0eee6a8: Fix streaming and reconstruction of reasoning summary parts
57
+ - 177526b: chore(providers/openai-transcription): switch to providerOptions
58
+ - 2f542fa: Add reasoning-part-finish parts for reasoning models in the responses API
59
+ - c15dfbf: feat (providers/openai): add gpt-image-1 model id to image settings
60
+ - 3b1ea10: adding support for gpt-4o-search-preview and handling unsupported parameters
61
+ - e2aceaf: feat: add raw chunk support
62
+ - d2af019: feat (providers/openai): add gpt-4.1 models
63
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
64
+ - 209256d: Add missing file_search tool support to OpenAI Responses API
65
+ - faea29f: fix (provider/openai): multi-step reasoning with text
66
+ - 7032dc5: feat(openai): add priority processing service tier support
67
+ - 870c5c0: feat (providers/openai): add o3 and o4-mini models
68
+ - db72adc: chore(providers/openai): update completion model to use providerOptions
69
+ - a166433: feat: add transcription with experimental_transcribe
70
+ - 26735b5: chore(embedding-model): add v2 interface
71
+ - 443d8ec: feat(embedding-model-v2): add response body field
72
+ - 8d12da5: feat(provider/openai): add serviceTier option for flex processing
73
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
74
+ - d521cda: feat(openai): add file_search filters and update field names
75
+ - 66962ed: fix(packages): export node10 compatible types
76
+ - 442be08: fix: propagate openai transcription fixes
77
+ - 0059ee2: fix(openai): update file_search fields to match API changes
78
+ - 8493141: feat (providers/openai): add support for reasoning summaries
79
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
80
+ - 0a87932: core (ai): change transcription model mimeType to mediaType
81
+ - 8aa9e20: feat: add speech with experimental_generateSpeech
82
+ - 4617fab: chore(embedding-models): remove remaining settings
83
+ - b5a0e32: fix (provider/openai): correct default for chat model strict mode
84
+ - 136819b: chore(providers/openai): re-introduce logprobs as providerMetadata
85
+ - 52ce942: chore(providers/openai): remove & enable strict compatibility by default
86
+ - db64cbe: fix (provider/openai): multi-step reasoning with tool calls
87
+ - b3c3450: feat (provider/openai): add support for encrypted_reasoning to responses api
88
+ - 48249c4: Do not warn if empty text is the first part of a reasoning sequence
89
+ - c7d3b2e: fix (provider/openai): push first reasoning chunk in output item added event
90
+ - ad2a3d5: feat(provider/openai): add missing reasoning models to responses API
91
+ - 9943464: feat(openai): add file_search_call.results support to include parameter
92
+ - 0fa7414: chore (provider/openai): standardize on itemId in provider metadata
93
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
94
+
95
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
96
+
97
+ ```js
98
+ const prompt = 'Santa Claus driving a Cadillac';
99
+
100
+ const { providerMetadata } = await experimental_generateImage({
101
+ model: openai.image('dall-e-3'),
102
+ prompt,
103
+ });
104
+
105
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
106
+
107
+ console.log({
108
+ prompt,
109
+ revisedPrompt,
110
+ });
111
+ ```
112
+
113
+ - fa758ea: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
114
+ - d1a034f: feature: using Zod 4 for internal stuff
115
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
116
+ - e497698: fix (provider/openai): handle responses api errors
117
+ - 928fadf: fix(providers/openai): logprobs for stream alongside completion model
118
+ - 0a87932: fix (provider/openai): increase transcription model resilience
119
+ - 5147e6e: chore(openai): remove simulateStreaming
120
+ - 06bac05: fix (openai): structure output for responses model
121
+ - 205077b: fix: improve Zod compatibility
122
+ - c2b92cc: chore(openai): remove legacy function calling
123
+ - 284353f: fix(providers/openai): zod parse error with function
124
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
125
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
126
+ - 4af5233: Fix PDF file parts when passed as a string url or Uint8Array
127
+ - 7df7a25: feat (providers/openai): support gpt-image-1 image generation
128
+ - Updated dependencies [a571d6e]
129
+ - Updated dependencies [742b7be]
130
+ - Updated dependencies [e7fcc86]
131
+ - Updated dependencies [7cddb72]
132
+ - Updated dependencies [ccce59b]
133
+ - Updated dependencies [e2b9e4b]
134
+ - Updated dependencies [95857aa]
135
+ - Updated dependencies [45c1ea2]
136
+ - Updated dependencies [6f6bb89]
137
+ - Updated dependencies [060370c]
138
+ - Updated dependencies [dc714f3]
139
+ - Updated dependencies [b5da06a]
140
+ - Updated dependencies [d1a1aa1]
141
+ - Updated dependencies [63f9e9b]
142
+ - Updated dependencies [5d142ab]
143
+ - Updated dependencies [d5f588f]
144
+ - Updated dependencies [e025824]
145
+ - Updated dependencies [0571b98]
146
+ - Updated dependencies [b6b43c7]
147
+ - Updated dependencies [4fef487]
148
+ - Updated dependencies [48d257a]
149
+ - Updated dependencies [0c0c0b3]
150
+ - Updated dependencies [0d2c085]
151
+ - Updated dependencies [40acf9b]
152
+ - Updated dependencies [9222aeb]
153
+ - Updated dependencies [e2aceaf]
154
+ - Updated dependencies [411e483]
155
+ - Updated dependencies [8ba77a7]
156
+ - Updated dependencies [7b3ae3f]
157
+ - Updated dependencies [a166433]
158
+ - Updated dependencies [26735b5]
159
+ - Updated dependencies [443d8ec]
160
+ - Updated dependencies [a8c8bd5]
161
+ - Updated dependencies [abf9a79]
162
+ - Updated dependencies [14c9410]
163
+ - Updated dependencies [e86be6f]
164
+ - Updated dependencies [9bf7291]
165
+ - Updated dependencies [2e13791]
166
+ - Updated dependencies [9f95b35]
167
+ - Updated dependencies [66962ed]
168
+ - Updated dependencies [0d06df6]
169
+ - Updated dependencies [472524a]
170
+ - Updated dependencies [dd3ff01]
171
+ - Updated dependencies [d9c98f4]
172
+ - Updated dependencies [05d2819]
173
+ - Updated dependencies [9301f86]
174
+ - Updated dependencies [0a87932]
175
+ - Updated dependencies [c4a2fec]
176
+ - Updated dependencies [957b739]
177
+ - Updated dependencies [79457bd]
178
+ - Updated dependencies [a3f768e]
179
+ - Updated dependencies [7435eb5]
180
+ - Updated dependencies [8aa9e20]
181
+ - Updated dependencies [4617fab]
182
+ - Updated dependencies [ac34802]
183
+ - Updated dependencies [0054544]
184
+ - Updated dependencies [cb68df0]
185
+ - Updated dependencies [ad80501]
186
+ - Updated dependencies [68ecf2f]
187
+ - Updated dependencies [9e9c809]
188
+ - Updated dependencies [32831c6]
189
+ - Updated dependencies [6dc848c]
190
+ - Updated dependencies [6b98118]
191
+ - Updated dependencies [d0f9495]
192
+ - Updated dependencies [63d791d]
193
+ - Updated dependencies [87b828f]
194
+ - Updated dependencies [3f2f00c]
195
+ - Updated dependencies [bfdca8d]
196
+ - Updated dependencies [0ff02bb]
197
+ - Updated dependencies [7979f7f]
198
+ - Updated dependencies [39a4fab]
199
+ - Updated dependencies [44f4aba]
200
+ - Updated dependencies [9bd5ab5]
201
+ - Updated dependencies [57edfcb]
202
+ - Updated dependencies [faf8446]
203
+ - Updated dependencies [7ea4132]
204
+ - Updated dependencies [d1a034f]
205
+ - Updated dependencies [5c56081]
206
+ - Updated dependencies [fd65bc6]
207
+ - Updated dependencies [023ba40]
208
+ - Updated dependencies [ea7a7c9]
209
+ - Updated dependencies [26535e0]
210
+ - Updated dependencies [e030615]
211
+ - Updated dependencies [5e57fae]
212
+ - Updated dependencies [393138b]
213
+ - Updated dependencies [c57e248]
214
+ - Updated dependencies [88a8ee5]
215
+ - Updated dependencies [41fa418]
216
+ - Updated dependencies [205077b]
217
+ - Updated dependencies [71f938d]
218
+ - Updated dependencies [3795467]
219
+ - Updated dependencies [28a5ed5]
220
+ - Updated dependencies [7182d14]
221
+ - Updated dependencies [c1e6647]
222
+ - Updated dependencies [1766ede]
223
+ - Updated dependencies [811dff3]
224
+ - Updated dependencies [f10304b]
225
+ - Updated dependencies [dd5fd43]
226
+ - Updated dependencies [33f4a6a]
227
+ - Updated dependencies [383cbfa]
228
+ - Updated dependencies [27deb4d]
229
+ - Updated dependencies [c4df419]
230
+ - @ai-sdk/provider-utils@3.0.0
231
+ - @ai-sdk/provider@2.0.0
232
+
233
+ ## 2.0.0-beta.16
234
+
235
+ ### Patch Changes
236
+
237
+ - Updated dependencies [88a8ee5]
238
+ - @ai-sdk/provider-utils@3.0.0-beta.10
239
+
240
+ ## 2.0.0-beta.15
241
+
242
+ ### Patch Changes
243
+
244
+ - 9943464: feat(openai): add file_search_call.results support to include parameter
245
+ - Updated dependencies [27deb4d]
246
+ - @ai-sdk/provider@2.0.0-beta.2
247
+ - @ai-sdk/provider-utils@3.0.0-beta.9
248
+
249
+ ## 2.0.0-beta.14
250
+
251
+ ### Patch Changes
252
+
253
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
254
+ - 7032dc5: feat(openai): add priority processing service tier support
255
+ - Updated dependencies [dd5fd43]
256
+ - @ai-sdk/provider-utils@3.0.0-beta.8
257
+
258
+ ## 2.0.0-beta.13
259
+
260
+ ### Patch Changes
261
+
262
+ - Updated dependencies [e7fcc86]
263
+ - @ai-sdk/provider-utils@3.0.0-beta.7
264
+
265
+ ## 2.0.0-beta.12
266
+
267
+ ### Patch Changes
268
+
269
+ - d521cda: feat(openai): add file_search filters and update field names
270
+ - 0059ee2: fix(openai): update file_search fields to match API changes
271
+ - Updated dependencies [ac34802]
272
+ - @ai-sdk/provider-utils@3.0.0-beta.6
273
+
274
+ ## 2.0.0-beta.11
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies [57edfcb]
279
+ - Updated dependencies [383cbfa]
280
+ - @ai-sdk/provider-utils@3.0.0-beta.5
281
+
282
+ ## 2.0.0-beta.10
283
+
284
+ ### Patch Changes
285
+
286
+ - 0fa7414: chore (provider/openai): standardize on itemId in provider metadata
287
+ - 205077b: fix: improve Zod compatibility
288
+ - Updated dependencies [205077b]
289
+ - @ai-sdk/provider-utils@3.0.0-beta.4
290
+
291
+ ## 2.0.0-beta.9
292
+
293
+ ### Patch Changes
294
+
295
+ - faea29f: fix (provider/openai): multi-step reasoning with text
296
+
297
+ ## 2.0.0-beta.8
298
+
299
+ ### Patch Changes
300
+
301
+ - db64cbe: fix (provider/openai): multi-step reasoning with tool calls
302
+ - Updated dependencies [05d2819]
303
+ - @ai-sdk/provider-utils@3.0.0-beta.3
304
+
305
+ ## 2.0.0-beta.7
306
+
307
+ ### Patch Changes
308
+
309
+ - 209256d: Add missing file_search tool support to OpenAI Responses API
310
+
311
+ ## 2.0.0-beta.6
312
+
313
+ ### Patch Changes
314
+
315
+ - 0eee6a8: Fix streaming and reconstruction of reasoning summary parts
316
+ - b5a0e32: fix (provider/openai): correct default for chat model strict mode
317
+ - c7d3b2e: fix (provider/openai): push first reasoning chunk in output item added event
318
+
319
+ ## 2.0.0-beta.5
320
+
321
+ ### Patch Changes
322
+
323
+ - 48249c4: Do not warn if empty text is the first part of a reasoning sequence
324
+ - e497698: fix (provider/openai): handle responses api errors
325
+
326
+ ## 2.0.0-beta.4
327
+
328
+ ### Patch Changes
329
+
330
+ - b3c3450: feat (provider/openai): add support for encrypted_reasoning to responses api
331
+ - ad2a3d5: feat(provider/openai): add missing reasoning models to responses API
332
+
333
+ ## 2.0.0-beta.3
334
+
335
+ ### Major Changes
336
+
337
+ - efc3a62: fix (provider/openai): default strict mode to false
338
+
339
+ ## 2.0.0-beta.2
340
+
341
+ ### Patch Changes
342
+
343
+ - d1a034f: feature: using Zod 4 for internal stuff
344
+ - Updated dependencies [0571b98]
345
+ - Updated dependencies [39a4fab]
346
+ - Updated dependencies [d1a034f]
347
+ - @ai-sdk/provider-utils@3.0.0-beta.2
348
+
349
+ ## 2.0.0-beta.1
350
+
351
+ ### Major Changes
352
+
353
+ - cc62234: chore (provider/openai): switch default to openai responses api
354
+
355
+ ### Patch Changes
356
+
357
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
358
+ - Updated dependencies [742b7be]
359
+ - Updated dependencies [7cddb72]
360
+ - Updated dependencies [ccce59b]
361
+ - Updated dependencies [e2b9e4b]
362
+ - Updated dependencies [45c1ea2]
363
+ - Updated dependencies [e025824]
364
+ - Updated dependencies [0d06df6]
365
+ - Updated dependencies [472524a]
366
+ - Updated dependencies [dd3ff01]
367
+ - Updated dependencies [7435eb5]
368
+ - Updated dependencies [cb68df0]
369
+ - Updated dependencies [bfdca8d]
370
+ - Updated dependencies [44f4aba]
371
+ - Updated dependencies [023ba40]
372
+ - Updated dependencies [5e57fae]
373
+ - Updated dependencies [71f938d]
374
+ - Updated dependencies [28a5ed5]
375
+ - @ai-sdk/provider@2.0.0-beta.1
376
+ - @ai-sdk/provider-utils@3.0.0-beta.1
377
+
378
+ ## 2.0.0-alpha.15
379
+
380
+ ### Patch Changes
381
+
382
+ - Updated dependencies [48d257a]
383
+ - Updated dependencies [8ba77a7]
384
+ - @ai-sdk/provider@2.0.0-alpha.15
385
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
386
+
387
+ ## 2.0.0-alpha.14
388
+
389
+ ### Patch Changes
390
+
391
+ - Updated dependencies [b5da06a]
392
+ - Updated dependencies [63f9e9b]
393
+ - Updated dependencies [2e13791]
394
+ - @ai-sdk/provider@2.0.0-alpha.14
395
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
396
+
397
+ ## 2.0.0-alpha.13
398
+
399
+ ### Patch Changes
400
+
401
+ - Updated dependencies [68ecf2f]
402
+ - @ai-sdk/provider@2.0.0-alpha.13
403
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
404
+
405
+ ## 2.0.0-alpha.12
406
+
407
+ ### Patch Changes
408
+
409
+ - 2f542fa: Add reasoning-part-finish parts for reasoning models in the responses API
410
+ - e2aceaf: feat: add raw chunk support
411
+ - Updated dependencies [e2aceaf]
412
+ - @ai-sdk/provider@2.0.0-alpha.12
413
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
414
+
415
+ ## 2.0.0-alpha.11
416
+
417
+ ### Patch Changes
418
+
419
+ - 8d12da5: feat(provider/openai): add serviceTier option for flex processing
420
+ - Updated dependencies [c1e6647]
421
+ - @ai-sdk/provider@2.0.0-alpha.11
422
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
423
+
424
+ ## 2.0.0-alpha.10
425
+
426
+ ### Patch Changes
427
+
428
+ - Updated dependencies [c4df419]
429
+ - @ai-sdk/provider@2.0.0-alpha.10
430
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
431
+
432
+ ## 2.0.0-alpha.9
433
+
434
+ ### Patch Changes
435
+
436
+ - Updated dependencies [811dff3]
437
+ - @ai-sdk/provider@2.0.0-alpha.9
438
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
439
+
440
+ ## 2.0.0-alpha.8
441
+
442
+ ### Patch Changes
443
+
444
+ - 4af5233: Fix PDF file parts when passed as a string url or Uint8Array
445
+ - Updated dependencies [4fef487]
446
+ - Updated dependencies [9222aeb]
447
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
448
+ - @ai-sdk/provider@2.0.0-alpha.8
449
+
450
+ ## 2.0.0-alpha.7
451
+
452
+ ### Patch Changes
453
+
454
+ - Updated dependencies [5c56081]
455
+ - @ai-sdk/provider@2.0.0-alpha.7
456
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
457
+
458
+ ## 2.0.0-alpha.6
459
+
460
+ ### Patch Changes
461
+
462
+ - Updated dependencies [0d2c085]
463
+ - @ai-sdk/provider@2.0.0-alpha.6
464
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
465
+
466
+ ## 2.0.0-alpha.4
467
+
468
+ ### Patch Changes
469
+
470
+ - Updated dependencies [dc714f3]
471
+ - @ai-sdk/provider@2.0.0-alpha.4
472
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
473
+
474
+ ## 2.0.0-alpha.3
475
+
476
+ ### Patch Changes
477
+
478
+ - Updated dependencies [6b98118]
479
+ - @ai-sdk/provider@2.0.0-alpha.3
480
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
481
+
482
+ ## 2.0.0-alpha.2
483
+
484
+ ### Patch Changes
485
+
486
+ - Updated dependencies [26535e0]
487
+ - @ai-sdk/provider@2.0.0-alpha.2
488
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
489
+
490
+ ## 2.0.0-alpha.1
491
+
492
+ ### Patch Changes
493
+
494
+ - Updated dependencies [3f2f00c]
495
+ - @ai-sdk/provider@2.0.0-alpha.1
496
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
497
+
498
+ ## 2.0.0-canary.20
499
+
500
+ ### Patch Changes
501
+
502
+ - Updated dependencies [faf8446]
503
+ - @ai-sdk/provider-utils@3.0.0-canary.19
504
+
505
+ ## 2.0.0-canary.19
506
+
507
+ ### Patch Changes
508
+
509
+ - Updated dependencies [40acf9b]
510
+ - @ai-sdk/provider-utils@3.0.0-canary.18
511
+
512
+ ## 2.0.0-canary.18
513
+
514
+ ### Major Changes
515
+
516
+ - 516be5b: ### Move Image Model Settings into generate options
517
+
518
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
519
+
520
+ Before
521
+
522
+ ```js
523
+ await generateImage({
524
+ model: luma.image('photon-flash-1', {
525
+ maxImagesPerCall: 5,
526
+ pollIntervalMillis: 500,
527
+ }),
528
+ prompt,
529
+ n: 10,
530
+ });
531
+ ```
532
+
533
+ After
534
+
535
+ ```js
536
+ await generateImage({
537
+ model: luma.image('photon-flash-1'),
538
+ prompt,
539
+ n: 10,
540
+ maxImagesPerCall: 5,
541
+ providerOptions: {
542
+ luma: { pollIntervalMillis: 5 },
543
+ },
544
+ });
545
+ ```
546
+
547
+ Pull Request: https://github.com/vercel/ai/pull/6180
548
+
549
+ ### Patch Changes
550
+
551
+ - Updated dependencies [ea7a7c9]
552
+ - @ai-sdk/provider-utils@3.0.0-canary.17
553
+
554
+ ## 2.0.0-canary.17
555
+
556
+ ### Patch Changes
557
+
558
+ - 52ce942: chore(providers/openai): remove & enable strict compatibility by default
559
+ - Updated dependencies [87b828f]
560
+ - @ai-sdk/provider-utils@3.0.0-canary.16
561
+
562
+ ## 2.0.0-canary.16
563
+
564
+ ### Patch Changes
565
+
566
+ - 928fadf: fix(providers/openai): logprobs for stream alongside completion model
567
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
568
+ - Updated dependencies [a571d6e]
569
+ - Updated dependencies [a8c8bd5]
570
+ - Updated dependencies [7979f7f]
571
+ - Updated dependencies [41fa418]
572
+ - @ai-sdk/provider-utils@3.0.0-canary.15
573
+ - @ai-sdk/provider@2.0.0-canary.14
574
+
575
+ ## 2.0.0-canary.15
576
+
577
+ ### Patch Changes
578
+
579
+ - 136819b: chore(providers/openai): re-introduce logprobs as providerMetadata
580
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
581
+
582
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
583
+
584
+ ```js
585
+ const prompt = 'Santa Claus driving a Cadillac';
586
+
587
+ const { providerMetadata } = await experimental_generateImage({
588
+ model: openai.image('dall-e-3'),
589
+ prompt,
590
+ });
591
+
592
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
593
+
594
+ console.log({
595
+ prompt,
596
+ revisedPrompt,
597
+ });
598
+ ```
599
+
600
+ - 284353f: fix(providers/openai): zod parse error with function
601
+ - Updated dependencies [957b739]
602
+ - Updated dependencies [9bd5ab5]
603
+ - @ai-sdk/provider-utils@3.0.0-canary.14
604
+ - @ai-sdk/provider@2.0.0-canary.13
605
+
606
+ ## 2.0.0-canary.14
607
+
608
+ ### Patch Changes
609
+
610
+ - fa758ea: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
611
+ - Updated dependencies [7b3ae3f]
612
+ - Updated dependencies [0ff02bb]
613
+ - @ai-sdk/provider@2.0.0-canary.12
614
+ - @ai-sdk/provider-utils@3.0.0-canary.13
615
+
616
+ ## 2.0.0-canary.13
617
+
618
+ ### Patch Changes
619
+
620
+ - 177526b: chore(providers/openai-transcription): switch to providerOptions
621
+ - c15dfbf: feat (providers/openai): add gpt-image-1 model id to image settings
622
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
623
+ - 4617fab: chore(embedding-models): remove remaining settings
624
+ - Updated dependencies [9bf7291]
625
+ - Updated dependencies [4617fab]
626
+ - Updated dependencies [e030615]
627
+ - @ai-sdk/provider@2.0.0-canary.11
628
+ - @ai-sdk/provider-utils@3.0.0-canary.12
629
+
630
+ ## 2.0.0-canary.12
631
+
632
+ ### Patch Changes
633
+
634
+ - db72adc: chore(providers/openai): update completion model to use providerOptions
635
+ - 66962ed: fix(packages): export node10 compatible types
636
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
637
+ - 7df7a25: feat (providers/openai): support gpt-image-1 image generation
638
+ - Updated dependencies [66962ed]
639
+ - Updated dependencies [9301f86]
640
+ - Updated dependencies [a3f768e]
641
+ - @ai-sdk/provider-utils@3.0.0-canary.11
642
+ - @ai-sdk/provider@2.0.0-canary.10
643
+
644
+ ## 2.0.0-canary.11
645
+
646
+ ### Patch Changes
647
+
648
+ - 8493141: feat (providers/openai): add support for reasoning summaries
649
+ - Updated dependencies [e86be6f]
650
+ - @ai-sdk/provider@2.0.0-canary.9
651
+ - @ai-sdk/provider-utils@3.0.0-canary.10
652
+
653
+ ## 2.0.0-canary.10
654
+
655
+ ### Patch Changes
656
+
657
+ - 3bd3c0b: chore(providers/openai): update embedding model to use providerOptions
658
+ - Updated dependencies [95857aa]
659
+ - Updated dependencies [7ea4132]
660
+ - @ai-sdk/provider@2.0.0-canary.8
661
+ - @ai-sdk/provider-utils@3.0.0-canary.9
662
+
3
663
  ## 2.0.0-canary.9
4
664
 
5
665
  ### Patch Changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AI SDK - OpenAI Provider
2
2
 
3
- The **[OpenAI provider](https://sdk.vercel.ai/providers/ai-sdk-providers/openai)** for the [AI SDK](https://sdk.vercel.ai/docs)
3
+ The **[OpenAI provider](https://ai-sdk.dev/providers/ai-sdk-providers/openai)** for the [AI SDK](https://ai-sdk.dev/docs)
4
4
  contains language model support for the OpenAI chat and completion APIs and embedding model support for the OpenAI embeddings API.
5
5
 
6
6
  ## Setup
@@ -33,4 +33,4 @@ const { text } = await generateText({
33
33
 
34
34
  ## Documentation
35
35
 
36
- Please check out the **[OpenAI provider documentation](https://sdk.vercel.ai/providers/ai-sdk-providers/openai)** for more information.
36
+ Please check out the **[OpenAI provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/openai)** for more information.