@zenning/openai 1.6.0 → 2.0.29

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,113 +1,998 @@
1
1
  # @ai-sdk/openai
2
2
 
3
- ## 1.3.22
3
+ ## 2.0.28
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [d87b9d1]
8
- - @ai-sdk/provider-utils@2.2.8
7
+ - 4c2bb77: fix (provider/openai): send sources action as include
8
+ - 561e8b0: fix (provider/openai): fix code interpreter tool in doGenerate
9
9
 
10
- ## 1.3.21
10
+ ## 2.0.27
11
11
 
12
12
  ### Patch Changes
13
13
 
14
- - 5caac29: fix(providers/openai): zod parse error with function
14
+ - 2338c79: feat (provider/openai): add jsdoc for openai tools
15
15
 
16
- ## 1.3.20
16
+ ## 2.0.26
17
17
 
18
18
  ### Patch Changes
19
19
 
20
- - dd5450e: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
20
+ - 5819aec: fix (provider/openai): only send tool calls finish reason for tools that are not provider-executed
21
+ - af8c6bb: feat (provider/openai): add web_search tool
21
22
 
22
- ## 1.3.19
23
+ ## 2.0.25
23
24
 
24
25
  ### Patch Changes
25
26
 
26
- - 3cabda9: feat (providers/openai): add gpt-image-1 model id to image settings
27
+ - fb45ade: fix timestamp granularities support for openai transcription
27
28
 
28
- ## 1.3.18
29
+ ## 2.0.24
29
30
 
30
31
  ### Patch Changes
31
32
 
32
- - 74cd391: feat (providers/openai): support gpt-image-1 image generation
33
+ - ad57512: fix(provider/openai): safe practice to include filename and fileExtension to avoid `experimental_transcribe` fails with valid Buffer
34
+ - Updated dependencies [99964ed]
35
+ - @ai-sdk/provider-utils@3.0.8
33
36
 
34
- ## 1.3.17
37
+ ## 2.0.23
35
38
 
36
39
  ### Patch Changes
37
40
 
38
- - ca7bce3: feat (providers/openai): add support for reasoning summaries
41
+ - a9a61b7: Add serviceTier to provider metadata for OpenAI responses
39
42
 
40
- ## 1.3.16
43
+ ## 2.0.22
41
44
 
42
45
  ### Patch Changes
43
46
 
44
- - bd6e457: feat (provider/openai): o4 updates for responses api
47
+ - 0e272ae: fix(provider/openai): make file_citation annotation fields optional for responses api compatibility
48
+ - Updated dependencies [886e7cd]
49
+ - @ai-sdk/provider-utils@3.0.7
45
50
 
46
- ## 1.3.15
51
+ ## 2.0.21
47
52
 
48
53
  ### Patch Changes
49
54
 
50
- - 98d954e: feat (providers/openai): add o3 and o4-mini models
55
+ - d18856a: fix(provider/openai): support websearch tool results without query property
56
+ - 15271d6: fix(provider/openai): do not set `response_format` to `verbose_json` if model is `gpt-4o-transcribe` or `gpt-4o-mini-transcribe`
51
57
 
52
- ## 1.3.14
58
+ These two models do not support it:
59
+ https://platform.openai.com/docs/api-reference/audio/createTranscription#audio_createtranscription-response_format
60
+
61
+ - Updated dependencies [1b5a3d3]
62
+ - @ai-sdk/provider-utils@3.0.6
63
+
64
+ ## 2.0.20
65
+
66
+ ### Patch Changes
67
+
68
+ - 974de40: fix(provider/ai): do not set `.providerMetadata.openai.logprobs` to an array of empty arrays when using `streamText()`
69
+
70
+ ## 2.0.19
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [0857788]
75
+ - @ai-sdk/provider-utils@3.0.5
76
+
77
+ ## 2.0.18
78
+
79
+ ### Patch Changes
80
+
81
+ - 5e47d00: Support Responses API input_file file_url passthrough for PDFs.
82
+
83
+ This adds:
84
+
85
+ - file_url variant to OpenAIResponses user content
86
+ - PDF URL mapping to input_file with file_url in Responses converter
87
+ - PDF URL support in supportedUrls to avoid auto-download
88
+
89
+ ## 2.0.17
90
+
91
+ ### Patch Changes
92
+
93
+ - 70bb696: fix(provider/openai): correct web search tool input
94
+
95
+ ## 2.0.16
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies [68751f9]
100
+ - @ai-sdk/provider-utils@3.0.4
101
+
102
+ ## 2.0.15
103
+
104
+ ### Patch Changes
105
+
106
+ - a4bef93: feat(provider/openai): expose web search queries in responses api
107
+ - 6ed34cb: refactor(openai): consolidate model config into `getResponsesModelConfig()`
108
+
109
+ https://github.com/vercel/ai/pull/8038
110
+
111
+ ## 2.0.14
112
+
113
+ ### Patch Changes
114
+
115
+ - 7f47105: fix(provider/openai): support file_citation annotations in responses api
116
+
117
+ ## 2.0.13
118
+
119
+ ### Patch Changes
120
+
121
+ - ddc9d99: Implements `logprobs` for OpenAI `providerOptions` and `providerMetaData` in `OpenAIResponsesLanguageModel`
122
+
123
+ You can now set `providerOptions.openai.logprobs` when using `generateText()` and retrieve logprobs from the response via `result.providerMetadata?.openai`
124
+
125
+ ## 2.0.12
126
+
127
+ ### Patch Changes
128
+
129
+ - ec336a1: feat(provider/openai): add response_format to be supported by default
130
+ - 2935ec7: fix(provider/openai): exclude gpt-5-chat from reasoning model
131
+ - Updated dependencies [034e229]
132
+ - Updated dependencies [f25040d]
133
+ - @ai-sdk/provider-utils@3.0.3
134
+
135
+ ## 2.0.11
136
+
137
+ ### Patch Changes
138
+
139
+ - 097b452: feat(openai, azure): add configurable file ID prefixes for Responses API
140
+
141
+ - Added `fileIdPrefixes` option to OpenAI Responses API configuration
142
+ - Azure OpenAI now supports `assistant-` prefixed file IDs (replacing previous `file-` prefix support)
143
+ - OpenAI maintains backward compatibility with default `file-` prefix
144
+ - File ID detection is disabled when `fileIdPrefixes` is undefined, gracefully falling back to base64 processing
145
+
146
+ - 87cf954: feat(provider/openai): add support for prompt_cache_key
147
+ - a3d98a9: feat(provider/openai): add support for safety_identifier
148
+ - 110d167: fix(openai): add missing file_search_call handlers in responses streaming
149
+ - 8d3c747: chore(openai): remove deprecated GPT-4.5-preview models and improve autocomplete control
150
+ - Updated dependencies [38ac190]
151
+ - @ai-sdk/provider-utils@3.0.2
152
+
153
+ ## 2.0.10
154
+
155
+ ### Patch Changes
156
+
157
+ - a274b01: refactor(provider/openai): restructure files
158
+ - b48e0ff: feat(provider/openai): add code interpreter tool (responses api)
159
+
160
+ ## 2.0.9
161
+
162
+ ### Patch Changes
163
+
164
+ - 8f8a521: fix(providers): use convertToBase64 for Uint8Array image parts to produce valid data URLs; keep mediaType normalization and URL passthrough
165
+
166
+ ## 2.0.8
167
+
168
+ ### Patch Changes
169
+
170
+ - 57fb959: feat(openai): add verbosity parameter support for chat api
171
+ - 2a3fbe6: allow `minimal` in `reasoningEffort` for openai chat
172
+
173
+ ## 2.0.7
174
+
175
+ ### Patch Changes
176
+
177
+ - 4738f18: feat(openai): add flex processing support for gpt-5 models
178
+ - 013d747: feat(openai): add verbosity parameter support for responses api
179
+ - 35feee8: feat(openai): add priority processing support for gpt-5 models
180
+
181
+ ## 2.0.6
182
+
183
+ ### Patch Changes
184
+
185
+ - ad2255f: chore(docs): added gpt 5 models + removed deprecated models
186
+ - 64bcb66: feat(provider/openai): models ids on chat
187
+ - 1d42ff2: feat(provider/openai): models ids
188
+
189
+ ## 2.0.5
190
+
191
+ ### Patch Changes
192
+
193
+ - 6753a2e: feat(examples): add gpt-5 model examples and e2e tests
194
+ - 6cba06a: feat (provider/openai): add reasoning model config
195
+
196
+ ## 2.0.4
53
197
 
54
198
  ### Patch Changes
55
199
 
56
- - 980141c: fix (openai): structure output for responses model
200
+ - 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.
57
201
 
58
- ## 1.3.13
202
+ ## 2.0.3
59
203
 
60
204
  ### Patch Changes
61
205
 
62
- - 75b9849: adding support for gpt-4o-search-preview and handling unsupported parameters
206
+ - Updated dependencies [90d212f]
207
+ - @ai-sdk/provider-utils@3.0.1
63
208
 
64
- ## 1.3.12
209
+ ## 2.0.2
65
210
 
66
211
  ### Patch Changes
67
212
 
68
- - 575339f: feat (providers/openai): add gpt-4.1 models
213
+ - 63e2016: fix(openai): missing url citations from web search tools
214
+
215
+ ## 2.0.1
216
+
217
+ ### Patch Changes
218
+
219
+ - bc45e29: feat(openai): add file_search_call support to responses api
220
+
221
+ ## 2.0.0
222
+
223
+ ### Major Changes
224
+
225
+ - d5f588f: AI SDK 5
226
+ - cc62234: chore (provider/openai): switch default to openai responses api
227
+ - 516be5b: ### Move Image Model Settings into generate options
228
+
229
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
230
+
231
+ Before
232
+
233
+ ```js
234
+ await generateImage({
235
+ model: luma.image('photon-flash-1', {
236
+ maxImagesPerCall: 5,
237
+ pollIntervalMillis: 500,
238
+ }),
239
+ prompt,
240
+ n: 10,
241
+ });
242
+ ```
243
+
244
+ After
245
+
246
+ ```js
247
+ await generateImage({
248
+ model: luma.image('photon-flash-1'),
249
+ prompt,
250
+ n: 10,
251
+ maxImagesPerCall: 5,
252
+ providerOptions: {
253
+ luma: { pollIntervalMillis: 5 },
254
+ },
255
+ });
256
+ ```
257
+
258
+ Pull Request: https://github.com/vercel/ai/pull/6180
259
+
260
+ - efc3a62: fix (provider/openai): default strict mode to false
261
+
262
+ ### Patch Changes
263
+
264
+ - 948b755: chore(providers/openai): convert to providerOptions
265
+ - d63bcbc: feat (provider/openai): o4 updates for responses api
266
+ - 3bd3c0b: chore(providers/openai): update embedding model to use providerOptions
267
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
268
+ - 0eee6a8: Fix streaming and reconstruction of reasoning summary parts
269
+ - 177526b: chore(providers/openai-transcription): switch to providerOptions
270
+ - 2f542fa: Add reasoning-part-finish parts for reasoning models in the responses API
271
+ - c15dfbf: feat (providers/openai): add gpt-image-1 model id to image settings
272
+ - 3b1ea10: adding support for gpt-4o-search-preview and handling unsupported parameters
273
+ - e2aceaf: feat: add raw chunk support
274
+ - d2af019: feat (providers/openai): add gpt-4.1 models
275
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
276
+ - 209256d: Add missing file_search tool support to OpenAI Responses API
277
+ - faea29f: fix (provider/openai): multi-step reasoning with text
278
+ - 7032dc5: feat(openai): add priority processing service tier support
279
+ - 870c5c0: feat (providers/openai): add o3 and o4-mini models
280
+ - db72adc: chore(providers/openai): update completion model to use providerOptions
281
+ - a166433: feat: add transcription with experimental_transcribe
282
+ - 26735b5: chore(embedding-model): add v2 interface
283
+ - 443d8ec: feat(embedding-model-v2): add response body field
284
+ - 8d12da5: feat(provider/openai): add serviceTier option for flex processing
285
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
286
+ - d521cda: feat(openai): add file_search filters and update field names
287
+ - 66962ed: fix(packages): export node10 compatible types
288
+ - 442be08: fix: propagate openai transcription fixes
289
+ - 0059ee2: fix(openai): update file_search fields to match API changes
290
+ - 8493141: feat (providers/openai): add support for reasoning summaries
291
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
292
+ - 0a87932: core (ai): change transcription model mimeType to mediaType
293
+ - 8aa9e20: feat: add speech with experimental_generateSpeech
294
+ - 4617fab: chore(embedding-models): remove remaining settings
295
+ - b5a0e32: fix (provider/openai): correct default for chat model strict mode
296
+ - 136819b: chore(providers/openai): re-introduce logprobs as providerMetadata
297
+ - 52ce942: chore(providers/openai): remove & enable strict compatibility by default
298
+ - db64cbe: fix (provider/openai): multi-step reasoning with tool calls
299
+ - b3c3450: feat (provider/openai): add support for encrypted_reasoning to responses api
300
+ - 48249c4: Do not warn if empty text is the first part of a reasoning sequence
301
+ - c7d3b2e: fix (provider/openai): push first reasoning chunk in output item added event
302
+ - ad2a3d5: feat(provider/openai): add missing reasoning models to responses API
303
+ - 9943464: feat(openai): add file_search_call.results support to include parameter
304
+ - 0fa7414: chore (provider/openai): standardize on itemId in provider metadata
305
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
306
+
307
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
308
+
309
+ ```js
310
+ const prompt = 'Santa Claus driving a Cadillac';
311
+
312
+ const { providerMetadata } = await experimental_generateImage({
313
+ model: openai.image('dall-e-3'),
314
+ prompt,
315
+ });
316
+
317
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
318
+
319
+ console.log({
320
+ prompt,
321
+ revisedPrompt,
322
+ });
323
+ ```
324
+
325
+ - fa758ea: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
326
+ - d1a034f: feature: using Zod 4 for internal stuff
327
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
328
+ - e497698: fix (provider/openai): handle responses api errors
329
+ - 928fadf: fix(providers/openai): logprobs for stream alongside completion model
330
+ - 0a87932: fix (provider/openai): increase transcription model resilience
331
+ - 5147e6e: chore(openai): remove simulateStreaming
332
+ - 06bac05: fix (openai): structure output for responses model
333
+ - 205077b: fix: improve Zod compatibility
334
+ - c2b92cc: chore(openai): remove legacy function calling
335
+ - 284353f: fix(providers/openai): zod parse error with function
336
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
337
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
338
+ - 4af5233: Fix PDF file parts when passed as a string url or Uint8Array
339
+ - 7df7a25: feat (providers/openai): support gpt-image-1 image generation
340
+ - Updated dependencies [a571d6e]
341
+ - Updated dependencies [742b7be]
342
+ - Updated dependencies [e7fcc86]
343
+ - Updated dependencies [7cddb72]
344
+ - Updated dependencies [ccce59b]
345
+ - Updated dependencies [e2b9e4b]
346
+ - Updated dependencies [95857aa]
347
+ - Updated dependencies [45c1ea2]
348
+ - Updated dependencies [6f6bb89]
349
+ - Updated dependencies [060370c]
350
+ - Updated dependencies [dc714f3]
351
+ - Updated dependencies [b5da06a]
352
+ - Updated dependencies [d1a1aa1]
353
+ - Updated dependencies [63f9e9b]
354
+ - Updated dependencies [5d142ab]
355
+ - Updated dependencies [d5f588f]
356
+ - Updated dependencies [e025824]
357
+ - Updated dependencies [0571b98]
358
+ - Updated dependencies [b6b43c7]
359
+ - Updated dependencies [4fef487]
360
+ - Updated dependencies [48d257a]
361
+ - Updated dependencies [0c0c0b3]
362
+ - Updated dependencies [0d2c085]
363
+ - Updated dependencies [40acf9b]
364
+ - Updated dependencies [9222aeb]
365
+ - Updated dependencies [e2aceaf]
366
+ - Updated dependencies [411e483]
367
+ - Updated dependencies [8ba77a7]
368
+ - Updated dependencies [7b3ae3f]
369
+ - Updated dependencies [a166433]
370
+ - Updated dependencies [26735b5]
371
+ - Updated dependencies [443d8ec]
372
+ - Updated dependencies [a8c8bd5]
373
+ - Updated dependencies [abf9a79]
374
+ - Updated dependencies [14c9410]
375
+ - Updated dependencies [e86be6f]
376
+ - Updated dependencies [9bf7291]
377
+ - Updated dependencies [2e13791]
378
+ - Updated dependencies [9f95b35]
379
+ - Updated dependencies [66962ed]
380
+ - Updated dependencies [0d06df6]
381
+ - Updated dependencies [472524a]
382
+ - Updated dependencies [dd3ff01]
383
+ - Updated dependencies [d9c98f4]
384
+ - Updated dependencies [05d2819]
385
+ - Updated dependencies [9301f86]
386
+ - Updated dependencies [0a87932]
387
+ - Updated dependencies [c4a2fec]
388
+ - Updated dependencies [957b739]
389
+ - Updated dependencies [79457bd]
390
+ - Updated dependencies [a3f768e]
391
+ - Updated dependencies [7435eb5]
392
+ - Updated dependencies [8aa9e20]
393
+ - Updated dependencies [4617fab]
394
+ - Updated dependencies [ac34802]
395
+ - Updated dependencies [0054544]
396
+ - Updated dependencies [cb68df0]
397
+ - Updated dependencies [ad80501]
398
+ - Updated dependencies [68ecf2f]
399
+ - Updated dependencies [9e9c809]
400
+ - Updated dependencies [32831c6]
401
+ - Updated dependencies [6dc848c]
402
+ - Updated dependencies [6b98118]
403
+ - Updated dependencies [d0f9495]
404
+ - Updated dependencies [63d791d]
405
+ - Updated dependencies [87b828f]
406
+ - Updated dependencies [3f2f00c]
407
+ - Updated dependencies [bfdca8d]
408
+ - Updated dependencies [0ff02bb]
409
+ - Updated dependencies [7979f7f]
410
+ - Updated dependencies [39a4fab]
411
+ - Updated dependencies [44f4aba]
412
+ - Updated dependencies [9bd5ab5]
413
+ - Updated dependencies [57edfcb]
414
+ - Updated dependencies [faf8446]
415
+ - Updated dependencies [7ea4132]
416
+ - Updated dependencies [d1a034f]
417
+ - Updated dependencies [5c56081]
418
+ - Updated dependencies [fd65bc6]
419
+ - Updated dependencies [023ba40]
420
+ - Updated dependencies [ea7a7c9]
421
+ - Updated dependencies [26535e0]
422
+ - Updated dependencies [e030615]
423
+ - Updated dependencies [5e57fae]
424
+ - Updated dependencies [393138b]
425
+ - Updated dependencies [c57e248]
426
+ - Updated dependencies [88a8ee5]
427
+ - Updated dependencies [41fa418]
428
+ - Updated dependencies [205077b]
429
+ - Updated dependencies [71f938d]
430
+ - Updated dependencies [3795467]
431
+ - Updated dependencies [28a5ed5]
432
+ - Updated dependencies [7182d14]
433
+ - Updated dependencies [c1e6647]
434
+ - Updated dependencies [1766ede]
435
+ - Updated dependencies [811dff3]
436
+ - Updated dependencies [f10304b]
437
+ - Updated dependencies [dd5fd43]
438
+ - Updated dependencies [33f4a6a]
439
+ - Updated dependencies [383cbfa]
440
+ - Updated dependencies [27deb4d]
441
+ - Updated dependencies [c4df419]
442
+ - @ai-sdk/provider-utils@3.0.0
443
+ - @ai-sdk/provider@2.0.0
444
+
445
+ ## 2.0.0-beta.16
446
+
447
+ ### Patch Changes
448
+
449
+ - Updated dependencies [88a8ee5]
450
+ - @ai-sdk/provider-utils@3.0.0-beta.10
451
+
452
+ ## 2.0.0-beta.15
453
+
454
+ ### Patch Changes
455
+
456
+ - 9943464: feat(openai): add file_search_call.results support to include parameter
457
+ - Updated dependencies [27deb4d]
458
+ - @ai-sdk/provider@2.0.0-beta.2
459
+ - @ai-sdk/provider-utils@3.0.0-beta.9
460
+
461
+ ## 2.0.0-beta.14
462
+
463
+ ### Patch Changes
464
+
465
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
466
+ - 7032dc5: feat(openai): add priority processing service tier support
467
+ - Updated dependencies [dd5fd43]
468
+ - @ai-sdk/provider-utils@3.0.0-beta.8
469
+
470
+ ## 2.0.0-beta.13
471
+
472
+ ### Patch Changes
473
+
474
+ - Updated dependencies [e7fcc86]
475
+ - @ai-sdk/provider-utils@3.0.0-beta.7
476
+
477
+ ## 2.0.0-beta.12
478
+
479
+ ### Patch Changes
480
+
481
+ - d521cda: feat(openai): add file_search filters and update field names
482
+ - 0059ee2: fix(openai): update file_search fields to match API changes
483
+ - Updated dependencies [ac34802]
484
+ - @ai-sdk/provider-utils@3.0.0-beta.6
485
+
486
+ ## 2.0.0-beta.11
487
+
488
+ ### Patch Changes
489
+
490
+ - Updated dependencies [57edfcb]
491
+ - Updated dependencies [383cbfa]
492
+ - @ai-sdk/provider-utils@3.0.0-beta.5
493
+
494
+ ## 2.0.0-beta.10
495
+
496
+ ### Patch Changes
497
+
498
+ - 0fa7414: chore (provider/openai): standardize on itemId in provider metadata
499
+ - 205077b: fix: improve Zod compatibility
500
+ - Updated dependencies [205077b]
501
+ - @ai-sdk/provider-utils@3.0.0-beta.4
502
+
503
+ ## 2.0.0-beta.9
504
+
505
+ ### Patch Changes
506
+
507
+ - faea29f: fix (provider/openai): multi-step reasoning with text
508
+
509
+ ## 2.0.0-beta.8
510
+
511
+ ### Patch Changes
512
+
513
+ - db64cbe: fix (provider/openai): multi-step reasoning with tool calls
514
+ - Updated dependencies [05d2819]
515
+ - @ai-sdk/provider-utils@3.0.0-beta.3
516
+
517
+ ## 2.0.0-beta.7
518
+
519
+ ### Patch Changes
520
+
521
+ - 209256d: Add missing file_search tool support to OpenAI Responses API
522
+
523
+ ## 2.0.0-beta.6
524
+
525
+ ### Patch Changes
526
+
527
+ - 0eee6a8: Fix streaming and reconstruction of reasoning summary parts
528
+ - b5a0e32: fix (provider/openai): correct default for chat model strict mode
529
+ - c7d3b2e: fix (provider/openai): push first reasoning chunk in output item added event
530
+
531
+ ## 2.0.0-beta.5
532
+
533
+ ### Patch Changes
534
+
535
+ - 48249c4: Do not warn if empty text is the first part of a reasoning sequence
536
+ - e497698: fix (provider/openai): handle responses api errors
537
+
538
+ ## 2.0.0-beta.4
539
+
540
+ ### Patch Changes
541
+
542
+ - b3c3450: feat (provider/openai): add support for encrypted_reasoning to responses api
543
+ - ad2a3d5: feat(provider/openai): add missing reasoning models to responses API
544
+
545
+ ## 2.0.0-beta.3
546
+
547
+ ### Major Changes
548
+
549
+ - efc3a62: fix (provider/openai): default strict mode to false
550
+
551
+ ## 2.0.0-beta.2
552
+
553
+ ### Patch Changes
554
+
555
+ - d1a034f: feature: using Zod 4 for internal stuff
556
+ - Updated dependencies [0571b98]
557
+ - Updated dependencies [39a4fab]
558
+ - Updated dependencies [d1a034f]
559
+ - @ai-sdk/provider-utils@3.0.0-beta.2
560
+
561
+ ## 2.0.0-beta.1
562
+
563
+ ### Major Changes
69
564
 
70
- ## 1.3.11
565
+ - cc62234: chore (provider/openai): switch default to openai responses api
71
566
 
72
567
  ### Patch Changes
73
568
 
74
- - beef951: feat: add speech with experimental_generateSpeech
75
- - Updated dependencies [beef951]
76
- - @ai-sdk/provider@1.1.3
77
- - @ai-sdk/provider-utils@2.2.7
569
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
570
+ - Updated dependencies [742b7be]
571
+ - Updated dependencies [7cddb72]
572
+ - Updated dependencies [ccce59b]
573
+ - Updated dependencies [e2b9e4b]
574
+ - Updated dependencies [45c1ea2]
575
+ - Updated dependencies [e025824]
576
+ - Updated dependencies [0d06df6]
577
+ - Updated dependencies [472524a]
578
+ - Updated dependencies [dd3ff01]
579
+ - Updated dependencies [7435eb5]
580
+ - Updated dependencies [cb68df0]
581
+ - Updated dependencies [bfdca8d]
582
+ - Updated dependencies [44f4aba]
583
+ - Updated dependencies [023ba40]
584
+ - Updated dependencies [5e57fae]
585
+ - Updated dependencies [71f938d]
586
+ - Updated dependencies [28a5ed5]
587
+ - @ai-sdk/provider@2.0.0-beta.1
588
+ - @ai-sdk/provider-utils@3.0.0-beta.1
78
589
 
79
- ## 1.3.10
590
+ ## 2.0.0-alpha.15
80
591
 
81
592
  ### Patch Changes
82
593
 
83
- - dbe53e7: adding support for gpt-4o-search-preview and handling unsupported parameters
84
- - 84ffaba: fix: propagate openai transcription fixes
594
+ - Updated dependencies [48d257a]
595
+ - Updated dependencies [8ba77a7]
596
+ - @ai-sdk/provider@2.0.0-alpha.15
597
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
85
598
 
86
- ## 1.3.9
599
+ ## 2.0.0-alpha.14
87
600
 
88
601
  ### Patch Changes
89
602
 
90
- - 013faa8: core (ai): change transcription model mimeType to mediaType
91
- - 013faa8: fix (provider/openai): increase transcription model resilience
92
- - Updated dependencies [013faa8]
93
- - @ai-sdk/provider@1.1.2
94
- - @ai-sdk/provider-utils@2.2.6
603
+ - Updated dependencies [b5da06a]
604
+ - Updated dependencies [63f9e9b]
605
+ - Updated dependencies [2e13791]
606
+ - @ai-sdk/provider@2.0.0-alpha.14
607
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
95
608
 
96
- ## 1.3.8
609
+ ## 2.0.0-alpha.13
97
610
 
98
611
  ### Patch Changes
99
612
 
100
- - c21fa6d: feat: add transcription with experimental_transcribe
101
- - Updated dependencies [c21fa6d]
102
- - @ai-sdk/provider-utils@2.2.5
103
- - @ai-sdk/provider@1.1.1
613
+ - Updated dependencies [68ecf2f]
614
+ - @ai-sdk/provider@2.0.0-alpha.13
615
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
616
+
617
+ ## 2.0.0-alpha.12
618
+
619
+ ### Patch Changes
620
+
621
+ - 2f542fa: Add reasoning-part-finish parts for reasoning models in the responses API
622
+ - e2aceaf: feat: add raw chunk support
623
+ - Updated dependencies [e2aceaf]
624
+ - @ai-sdk/provider@2.0.0-alpha.12
625
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
626
+
627
+ ## 2.0.0-alpha.11
628
+
629
+ ### Patch Changes
630
+
631
+ - 8d12da5: feat(provider/openai): add serviceTier option for flex processing
632
+ - Updated dependencies [c1e6647]
633
+ - @ai-sdk/provider@2.0.0-alpha.11
634
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
635
+
636
+ ## 2.0.0-alpha.10
637
+
638
+ ### Patch Changes
639
+
640
+ - Updated dependencies [c4df419]
641
+ - @ai-sdk/provider@2.0.0-alpha.10
642
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
643
+
644
+ ## 2.0.0-alpha.9
645
+
646
+ ### Patch Changes
647
+
648
+ - Updated dependencies [811dff3]
649
+ - @ai-sdk/provider@2.0.0-alpha.9
650
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
651
+
652
+ ## 2.0.0-alpha.8
653
+
654
+ ### Patch Changes
655
+
656
+ - 4af5233: Fix PDF file parts when passed as a string url or Uint8Array
657
+ - Updated dependencies [4fef487]
658
+ - Updated dependencies [9222aeb]
659
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
660
+ - @ai-sdk/provider@2.0.0-alpha.8
661
+
662
+ ## 2.0.0-alpha.7
663
+
664
+ ### Patch Changes
665
+
666
+ - Updated dependencies [5c56081]
667
+ - @ai-sdk/provider@2.0.0-alpha.7
668
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
669
+
670
+ ## 2.0.0-alpha.6
671
+
672
+ ### Patch Changes
673
+
674
+ - Updated dependencies [0d2c085]
675
+ - @ai-sdk/provider@2.0.0-alpha.6
676
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
677
+
678
+ ## 2.0.0-alpha.4
679
+
680
+ ### Patch Changes
681
+
682
+ - Updated dependencies [dc714f3]
683
+ - @ai-sdk/provider@2.0.0-alpha.4
684
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
685
+
686
+ ## 2.0.0-alpha.3
687
+
688
+ ### Patch Changes
689
+
690
+ - Updated dependencies [6b98118]
691
+ - @ai-sdk/provider@2.0.0-alpha.3
692
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
693
+
694
+ ## 2.0.0-alpha.2
695
+
696
+ ### Patch Changes
697
+
698
+ - Updated dependencies [26535e0]
699
+ - @ai-sdk/provider@2.0.0-alpha.2
700
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
701
+
702
+ ## 2.0.0-alpha.1
703
+
704
+ ### Patch Changes
705
+
706
+ - Updated dependencies [3f2f00c]
707
+ - @ai-sdk/provider@2.0.0-alpha.1
708
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
709
+
710
+ ## 2.0.0-canary.20
711
+
712
+ ### Patch Changes
713
+
714
+ - Updated dependencies [faf8446]
715
+ - @ai-sdk/provider-utils@3.0.0-canary.19
716
+
717
+ ## 2.0.0-canary.19
718
+
719
+ ### Patch Changes
720
+
721
+ - Updated dependencies [40acf9b]
722
+ - @ai-sdk/provider-utils@3.0.0-canary.18
723
+
724
+ ## 2.0.0-canary.18
725
+
726
+ ### Major Changes
727
+
728
+ - 516be5b: ### Move Image Model Settings into generate options
729
+
730
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
731
+
732
+ Before
733
+
734
+ ```js
735
+ await generateImage({
736
+ model: luma.image('photon-flash-1', {
737
+ maxImagesPerCall: 5,
738
+ pollIntervalMillis: 500,
739
+ }),
740
+ prompt,
741
+ n: 10,
742
+ });
743
+ ```
744
+
745
+ After
746
+
747
+ ```js
748
+ await generateImage({
749
+ model: luma.image('photon-flash-1'),
750
+ prompt,
751
+ n: 10,
752
+ maxImagesPerCall: 5,
753
+ providerOptions: {
754
+ luma: { pollIntervalMillis: 5 },
755
+ },
756
+ });
757
+ ```
758
+
759
+ Pull Request: https://github.com/vercel/ai/pull/6180
760
+
761
+ ### Patch Changes
762
+
763
+ - Updated dependencies [ea7a7c9]
764
+ - @ai-sdk/provider-utils@3.0.0-canary.17
765
+
766
+ ## 2.0.0-canary.17
767
+
768
+ ### Patch Changes
769
+
770
+ - 52ce942: chore(providers/openai): remove & enable strict compatibility by default
771
+ - Updated dependencies [87b828f]
772
+ - @ai-sdk/provider-utils@3.0.0-canary.16
773
+
774
+ ## 2.0.0-canary.16
775
+
776
+ ### Patch Changes
777
+
778
+ - 928fadf: fix(providers/openai): logprobs for stream alongside completion model
779
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
780
+ - Updated dependencies [a571d6e]
781
+ - Updated dependencies [a8c8bd5]
782
+ - Updated dependencies [7979f7f]
783
+ - Updated dependencies [41fa418]
784
+ - @ai-sdk/provider-utils@3.0.0-canary.15
785
+ - @ai-sdk/provider@2.0.0-canary.14
786
+
787
+ ## 2.0.0-canary.15
788
+
789
+ ### Patch Changes
790
+
791
+ - 136819b: chore(providers/openai): re-introduce logprobs as providerMetadata
792
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
793
+
794
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
795
+
796
+ ```js
797
+ const prompt = 'Santa Claus driving a Cadillac';
798
+
799
+ const { providerMetadata } = await experimental_generateImage({
800
+ model: openai.image('dall-e-3'),
801
+ prompt,
802
+ });
803
+
804
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
805
+
806
+ console.log({
807
+ prompt,
808
+ revisedPrompt,
809
+ });
810
+ ```
811
+
812
+ - 284353f: fix(providers/openai): zod parse error with function
813
+ - Updated dependencies [957b739]
814
+ - Updated dependencies [9bd5ab5]
815
+ - @ai-sdk/provider-utils@3.0.0-canary.14
816
+ - @ai-sdk/provider@2.0.0-canary.13
817
+
818
+ ## 2.0.0-canary.14
819
+
820
+ ### Patch Changes
821
+
822
+ - fa758ea: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
823
+ - Updated dependencies [7b3ae3f]
824
+ - Updated dependencies [0ff02bb]
825
+ - @ai-sdk/provider@2.0.0-canary.12
826
+ - @ai-sdk/provider-utils@3.0.0-canary.13
827
+
828
+ ## 2.0.0-canary.13
829
+
830
+ ### Patch Changes
831
+
832
+ - 177526b: chore(providers/openai-transcription): switch to providerOptions
833
+ - c15dfbf: feat (providers/openai): add gpt-image-1 model id to image settings
834
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
835
+ - 4617fab: chore(embedding-models): remove remaining settings
836
+ - Updated dependencies [9bf7291]
837
+ - Updated dependencies [4617fab]
838
+ - Updated dependencies [e030615]
839
+ - @ai-sdk/provider@2.0.0-canary.11
840
+ - @ai-sdk/provider-utils@3.0.0-canary.12
841
+
842
+ ## 2.0.0-canary.12
843
+
844
+ ### Patch Changes
845
+
846
+ - db72adc: chore(providers/openai): update completion model to use providerOptions
847
+ - 66962ed: fix(packages): export node10 compatible types
848
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
849
+ - 7df7a25: feat (providers/openai): support gpt-image-1 image generation
850
+ - Updated dependencies [66962ed]
851
+ - Updated dependencies [9301f86]
852
+ - Updated dependencies [a3f768e]
853
+ - @ai-sdk/provider-utils@3.0.0-canary.11
854
+ - @ai-sdk/provider@2.0.0-canary.10
855
+
856
+ ## 2.0.0-canary.11
857
+
858
+ ### Patch Changes
859
+
860
+ - 8493141: feat (providers/openai): add support for reasoning summaries
861
+ - Updated dependencies [e86be6f]
862
+ - @ai-sdk/provider@2.0.0-canary.9
863
+ - @ai-sdk/provider-utils@3.0.0-canary.10
864
+
865
+ ## 2.0.0-canary.10
866
+
867
+ ### Patch Changes
868
+
869
+ - 3bd3c0b: chore(providers/openai): update embedding model to use providerOptions
870
+ - Updated dependencies [95857aa]
871
+ - Updated dependencies [7ea4132]
872
+ - @ai-sdk/provider@2.0.0-canary.8
873
+ - @ai-sdk/provider-utils@3.0.0-canary.9
874
+
875
+ ## 2.0.0-canary.9
876
+
877
+ ### Patch Changes
878
+
879
+ - d63bcbc: feat (provider/openai): o4 updates for responses api
880
+ - d2af019: feat (providers/openai): add gpt-4.1 models
881
+ - 870c5c0: feat (providers/openai): add o3 and o4-mini models
882
+ - 06bac05: fix (openai): structure output for responses model
883
+
884
+ ## 2.0.0-canary.8
885
+
886
+ ### Patch Changes
887
+
888
+ - 8aa9e20: feat: add speech with experimental_generateSpeech
889
+ - Updated dependencies [5d142ab]
890
+ - Updated dependencies [b6b43c7]
891
+ - Updated dependencies [8aa9e20]
892
+ - Updated dependencies [3795467]
893
+ - @ai-sdk/provider-utils@3.0.0-canary.8
894
+ - @ai-sdk/provider@2.0.0-canary.7
895
+
896
+ ## 2.0.0-canary.7
897
+
898
+ ### Patch Changes
899
+
900
+ - 26735b5: chore(embedding-model): add v2 interface
901
+ - 443d8ec: feat(embedding-model-v2): add response body field
902
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
903
+ - Updated dependencies [26735b5]
904
+ - Updated dependencies [443d8ec]
905
+ - Updated dependencies [14c9410]
906
+ - Updated dependencies [d9c98f4]
907
+ - Updated dependencies [c4a2fec]
908
+ - Updated dependencies [0054544]
909
+ - Updated dependencies [9e9c809]
910
+ - Updated dependencies [32831c6]
911
+ - Updated dependencies [d0f9495]
912
+ - Updated dependencies [fd65bc6]
913
+ - Updated dependencies [393138b]
914
+ - Updated dependencies [7182d14]
915
+ - @ai-sdk/provider@2.0.0-canary.6
916
+ - @ai-sdk/provider-utils@3.0.0-canary.7
917
+
918
+ ## 2.0.0-canary.6
919
+
920
+ ### Patch Changes
921
+
922
+ - 948b755: chore(providers/openai): convert to providerOptions
923
+ - 3b1ea10: adding support for gpt-4o-search-preview and handling unsupported parameters
924
+ - 442be08: fix: propagate openai transcription fixes
925
+ - 5147e6e: chore(openai): remove simulateStreaming
926
+ - c2b92cc: chore(openai): remove legacy function calling
927
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
928
+ - Updated dependencies [411e483]
929
+ - Updated dependencies [79457bd]
930
+ - Updated dependencies [ad80501]
931
+ - Updated dependencies [1766ede]
932
+ - Updated dependencies [f10304b]
933
+ - @ai-sdk/provider@2.0.0-canary.5
934
+ - @ai-sdk/provider-utils@3.0.0-canary.6
935
+
936
+ ## 2.0.0-canary.5
937
+
938
+ ### Patch Changes
939
+
940
+ - Updated dependencies [6f6bb89]
941
+ - @ai-sdk/provider@2.0.0-canary.4
942
+ - @ai-sdk/provider-utils@3.0.0-canary.5
943
+
944
+ ## 2.0.0-canary.4
945
+
946
+ ### Patch Changes
947
+
948
+ - Updated dependencies [d1a1aa1]
949
+ - @ai-sdk/provider@2.0.0-canary.3
950
+ - @ai-sdk/provider-utils@3.0.0-canary.4
951
+
952
+ ## 2.0.0-canary.3
953
+
954
+ ### Patch Changes
955
+
956
+ - a166433: feat: add transcription with experimental_transcribe
957
+ - 0a87932: core (ai): change transcription model mimeType to mediaType
958
+ - 0a87932: fix (provider/openai): increase transcription model resilience
959
+ - Updated dependencies [a166433]
960
+ - Updated dependencies [abf9a79]
961
+ - Updated dependencies [9f95b35]
962
+ - Updated dependencies [0a87932]
963
+ - Updated dependencies [6dc848c]
964
+ - @ai-sdk/provider-utils@3.0.0-canary.3
965
+ - @ai-sdk/provider@2.0.0-canary.2
966
+
967
+ ## 2.0.0-canary.2
968
+
969
+ ### Patch Changes
970
+
971
+ - Updated dependencies [c57e248]
972
+ - Updated dependencies [33f4a6a]
973
+ - @ai-sdk/provider@2.0.0-canary.1
974
+ - @ai-sdk/provider-utils@3.0.0-canary.2
975
+
976
+ ## 2.0.0-canary.1
977
+
978
+ ### Patch Changes
979
+
980
+ - Updated dependencies [060370c]
981
+ - Updated dependencies [0c0c0b3]
982
+ - Updated dependencies [63d791d]
983
+ - @ai-sdk/provider-utils@3.0.0-canary.1
984
+
985
+ ## 2.0.0-canary.0
986
+
987
+ ### Major Changes
104
988
 
105
- ## 1.3.7
989
+ - d5f588f: AI SDK 5
106
990
 
107
991
  ### Patch Changes
108
992
 
109
- - Updated dependencies [2c19b9a]
110
- - @ai-sdk/provider-utils@2.2.4
993
+ - Updated dependencies [d5f588f]
994
+ - @ai-sdk/provider-utils@3.0.0-canary.0
995
+ - @ai-sdk/provider@2.0.0-canary.0
111
996
 
112
997
  ## 1.3.6
113
998