@depup/ai-sdk__openai 3.0.41-depup.0

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +3101 -0
  2. package/LICENSE +13 -0
  3. package/README.md +25 -0
  4. package/changes.json +5 -0
  5. package/dist/index.d.mts +1107 -0
  6. package/dist/index.d.ts +1107 -0
  7. package/dist/index.js +6408 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/index.mjs +6493 -0
  10. package/dist/index.mjs.map +1 -0
  11. package/dist/internal/index.d.mts +1137 -0
  12. package/dist/internal/index.d.ts +1137 -0
  13. package/dist/internal/index.js +6256 -0
  14. package/dist/internal/index.js.map +1 -0
  15. package/dist/internal/index.mjs +6306 -0
  16. package/dist/internal/index.mjs.map +1 -0
  17. package/docs/03-openai.mdx +2396 -0
  18. package/internal.d.ts +1 -0
  19. package/package.json +96 -0
  20. package/src/chat/convert-openai-chat-usage.ts +57 -0
  21. package/src/chat/convert-to-openai-chat-messages.ts +225 -0
  22. package/src/chat/get-response-metadata.ts +15 -0
  23. package/src/chat/map-openai-finish-reason.ts +19 -0
  24. package/src/chat/openai-chat-api.ts +198 -0
  25. package/src/chat/openai-chat-language-model.ts +703 -0
  26. package/src/chat/openai-chat-options.ts +192 -0
  27. package/src/chat/openai-chat-prepare-tools.ts +84 -0
  28. package/src/chat/openai-chat-prompt.ts +70 -0
  29. package/src/completion/convert-openai-completion-usage.ts +46 -0
  30. package/src/completion/convert-to-openai-completion-prompt.ts +93 -0
  31. package/src/completion/get-response-metadata.ts +15 -0
  32. package/src/completion/map-openai-finish-reason.ts +19 -0
  33. package/src/completion/openai-completion-api.ts +81 -0
  34. package/src/completion/openai-completion-language-model.ts +336 -0
  35. package/src/completion/openai-completion-options.ts +61 -0
  36. package/src/embedding/openai-embedding-api.ts +13 -0
  37. package/src/embedding/openai-embedding-model.ts +95 -0
  38. package/src/embedding/openai-embedding-options.ts +30 -0
  39. package/src/image/openai-image-api.ts +35 -0
  40. package/src/image/openai-image-model.ts +349 -0
  41. package/src/image/openai-image-options.ts +31 -0
  42. package/src/index.ts +23 -0
  43. package/src/internal/index.ts +19 -0
  44. package/src/openai-config.ts +18 -0
  45. package/src/openai-error.ts +22 -0
  46. package/src/openai-language-model-capabilities.ts +52 -0
  47. package/src/openai-provider.ts +270 -0
  48. package/src/openai-tools.ts +126 -0
  49. package/src/responses/convert-openai-responses-usage.ts +53 -0
  50. package/src/responses/convert-to-openai-responses-input.ts +735 -0
  51. package/src/responses/map-openai-responses-finish-reason.ts +22 -0
  52. package/src/responses/openai-responses-api.ts +1260 -0
  53. package/src/responses/openai-responses-language-model.ts +2098 -0
  54. package/src/responses/openai-responses-options.ts +299 -0
  55. package/src/responses/openai-responses-prepare-tools.ts +408 -0
  56. package/src/responses/openai-responses-provider-metadata.ts +62 -0
  57. package/src/speech/openai-speech-api.ts +38 -0
  58. package/src/speech/openai-speech-model.ts +137 -0
  59. package/src/speech/openai-speech-options.ts +26 -0
  60. package/src/tool/apply-patch.ts +141 -0
  61. package/src/tool/code-interpreter.ts +104 -0
  62. package/src/tool/custom.ts +64 -0
  63. package/src/tool/file-search.ts +145 -0
  64. package/src/tool/image-generation.ts +126 -0
  65. package/src/tool/local-shell.ts +72 -0
  66. package/src/tool/mcp.ts +125 -0
  67. package/src/tool/shell.ts +203 -0
  68. package/src/tool/web-search-preview.ts +141 -0
  69. package/src/tool/web-search.ts +181 -0
  70. package/src/transcription/openai-transcription-api.ts +37 -0
  71. package/src/transcription/openai-transcription-model.ts +232 -0
  72. package/src/transcription/openai-transcription-options.ts +53 -0
  73. package/src/transcription/transcription-test.mp3 +0 -0
  74. package/src/version.ts +6 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,3101 @@
1
+ # @ai-sdk/openai
2
+
3
+ ## 3.0.41
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ad4cfc2]
8
+ - @ai-sdk/provider-utils@4.0.19
9
+
10
+ ## 3.0.40
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [824b295]
15
+ - @ai-sdk/provider-utils@4.0.18
16
+
17
+ ## 3.0.39
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [08336f1]
22
+ - @ai-sdk/provider-utils@4.0.17
23
+
24
+ ## 3.0.38
25
+
26
+ ### Patch Changes
27
+
28
+ - 64a8fae: chore: remove obsolete model IDs for Anthropic, Google, OpenAI, xAI
29
+
30
+ ## 3.0.37
31
+
32
+ ### Patch Changes
33
+
34
+ - 58bc42d: feat(provider/openai): support custom tools with alias mapping
35
+ - Updated dependencies [58bc42d]
36
+ - @ai-sdk/provider-utils@4.0.16
37
+
38
+ ## 3.0.36
39
+
40
+ ### Patch Changes
41
+
42
+ - 53bdfa5: fix(openai): allow null/undefined type in streaming tool call deltas
43
+
44
+ Azure AI Foundry and Mistral deployed on Azure omit the `type` field in
45
+ streaming tool_calls deltas. The chat stream parser now accepts a missing
46
+ `type` field (treating it as `"function"`) instead of throwing
47
+ `InvalidResponseDataError: Expected 'function' type.`
48
+
49
+ Fixes #12770
50
+
51
+ ## 3.0.35
52
+
53
+ ### Patch Changes
54
+
55
+ - 5e18272: fix(openai): include reasoning parts without itemId when encrypted_content is present
56
+
57
+ When `providerOptions.openai.itemId` is absent on a reasoning content part,
58
+ the converter now uses `encrypted_content` as a fallback instead of silently
59
+ skipping the part with a warning. The OpenAI Responses API accepts reasoning
60
+ items without an `id` when `encrypted_content` is supplied, enabling
61
+ multi-turn reasoning even when item IDs are stripped from provider options.
62
+
63
+ Also makes the `id` field optional on the `OpenAIResponsesReasoning` type to
64
+ reflect that the API does not require it.
65
+
66
+ Fixes #12853
67
+
68
+ ## 3.0.34
69
+
70
+ ### Patch Changes
71
+
72
+ - 66a374c: Support `phase` parameter on Responses API message items. The `phase` field (`'commentary'` or `'final_answer'`) is returned by models like `gpt-5.3-codex` on assistant message output items and must be preserved when sending follow-up requests. The phase value is available in `providerMetadata.openai.phase` on text parts and is automatically included on assistant messages sent back to the API.
73
+
74
+ ## 3.0.33
75
+
76
+ ### Patch Changes
77
+
78
+ - 624e651: Added missing model IDs to OpenAIChatModelId, OpenAIResponsesModelId, OpenAIImageModelId, OpenAISpeechModelId, OpenAITranscriptionModelId, and OpenAICompletionModelId types for better autocomplete support.
79
+
80
+ ## 3.0.32
81
+
82
+ ### Patch Changes
83
+
84
+ - 0c9395b: feat(provider/openai): add `gpt-5.3-codex`
85
+
86
+ ## 3.0.31
87
+
88
+ ### Patch Changes
89
+
90
+ - d5f7312: fix(openai): change web search tool action to be optional
91
+
92
+ ## 3.0.30
93
+
94
+ ### Patch Changes
95
+
96
+ - ff12133: feat(provider/openai): support native skills and hosted shell
97
+
98
+ ## 3.0.29
99
+
100
+ ### Patch Changes
101
+
102
+ - e2ee705: feat: differentiate text vs image input tokens
103
+
104
+ ## 3.0.28
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [4024a3a]
109
+ - @ai-sdk/provider-utils@4.0.15
110
+
111
+ ## 3.0.27
112
+
113
+ ### Patch Changes
114
+
115
+ - 99fbed8: feat: normalize provider specific model options type names and ensure they are exported
116
+
117
+ ## 3.0.26
118
+
119
+ ### Patch Changes
120
+
121
+ - Updated dependencies [7168375]
122
+ - @ai-sdk/provider@3.0.8
123
+ - @ai-sdk/provider-utils@4.0.14
124
+
125
+ ## 3.0.25
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [53f6731]
130
+ - @ai-sdk/provider@3.0.7
131
+ - @ai-sdk/provider-utils@4.0.13
132
+
133
+ ## 3.0.24
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [96936e5]
138
+ - @ai-sdk/provider-utils@4.0.12
139
+
140
+ ## 3.0.23
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [2810850]
145
+ - @ai-sdk/provider-utils@4.0.11
146
+ - @ai-sdk/provider@3.0.6
147
+
148
+ ## 3.0.22
149
+
150
+ ### Patch Changes
151
+
152
+ - 1524271: chore: add skill information to README files
153
+
154
+ ## 3.0.21
155
+
156
+ ### Patch Changes
157
+
158
+ - 2c70b90: chore: update provider docs
159
+
160
+ ## 3.0.20
161
+
162
+ ### Patch Changes
163
+
164
+ - Updated dependencies [462ad00]
165
+ - @ai-sdk/provider-utils@4.0.10
166
+
167
+ ## 3.0.19
168
+
169
+ ### Patch Changes
170
+
171
+ - 04c89b1: Provide Responses API providerMetadata types at the message / reasoning level.
172
+
173
+ - Export the following types for use in client code:
174
+ - `OpenaiResponsesProviderMetadata`
175
+ - `OpenaiResponsesReasoningProviderMetadata`
176
+ - `AzureResponsesProviderMetadata`
177
+ - `AzureResponsesReasoningProviderMetadata`
178
+
179
+ ## 3.0.18
180
+
181
+ ### Patch Changes
182
+
183
+ - 4de5a1d: chore: excluded tests from src folder in npm package
184
+ - Updated dependencies [4de5a1d]
185
+ - @ai-sdk/provider@3.0.5
186
+ - @ai-sdk/provider-utils@4.0.9
187
+
188
+ ## 3.0.17
189
+
190
+ ### Patch Changes
191
+
192
+ - 4218f86: fix(openai): preserve tool id for apply patch tool
193
+
194
+ ## 3.0.16
195
+
196
+ ### Patch Changes
197
+
198
+ - 2b8369d: chore: add docs to package dist
199
+
200
+ ## 3.0.15
201
+
202
+ ### Patch Changes
203
+
204
+ - 8dc54db: chore: add src folders to package bundle
205
+
206
+ ## 3.0.14
207
+
208
+ ### Patch Changes
209
+
210
+ - d21d016: feat(openai): add o4-mini model to OpenAIChatModelId type
211
+
212
+ ## 3.0.13
213
+
214
+ ### Patch Changes
215
+
216
+ - 000fa96: fix(openai): filter duplicate items when passing conversationID
217
+
218
+ ## 3.0.12
219
+
220
+ ### Patch Changes
221
+
222
+ - Updated dependencies [5c090e7]
223
+ - @ai-sdk/provider@3.0.4
224
+ - @ai-sdk/provider-utils@4.0.8
225
+
226
+ ## 3.0.11
227
+
228
+ ### Patch Changes
229
+
230
+ - Updated dependencies [46f46e4]
231
+ - @ai-sdk/provider-utils@4.0.7
232
+
233
+ ## 3.0.10
234
+
235
+ ### Patch Changes
236
+
237
+ - Updated dependencies [1b11dcb]
238
+ - @ai-sdk/provider-utils@4.0.6
239
+ - @ai-sdk/provider@3.0.3
240
+
241
+ ## 3.0.9
242
+
243
+ ### Patch Changes
244
+
245
+ - Updated dependencies [34d1c8a]
246
+ - @ai-sdk/provider-utils@4.0.5
247
+
248
+ ## 3.0.8
249
+
250
+ ### Patch Changes
251
+
252
+ - 330bd92: Fix Responses `code_interpreter` annotations and add typed providerMetadata
253
+
254
+ - Align Responses API `code_interpreter` annotation types with the official spec.
255
+ - Add tests to ensure the overlapping parts of the Zod schemas used by `doGenerate` and `doStream` stay in sync.
256
+ - Export the following types for use in client code:
257
+ - `OpenaiResponsesTextProviderMetadata`
258
+ - `OpenaiResponsesSourceDocumentProviderMetadata`
259
+ - `AzureResponsesTextProviderMetadata`
260
+ - `AzureResponsesSourceDocumentProviderMetadata`
261
+
262
+ ## 3.0.7
263
+
264
+ ### Patch Changes
265
+
266
+ - 89202fb: fix(openai/azure): passing response_format correctly
267
+
268
+ ## 3.0.6
269
+
270
+ ### Patch Changes
271
+
272
+ - dc87517: Fix handling of `image-url` tool result content type in OpenAI Responses API conversion
273
+
274
+ ## 3.0.5
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies [d937c8f]
279
+ - @ai-sdk/provider@3.0.2
280
+ - @ai-sdk/provider-utils@4.0.4
281
+
282
+ ## 3.0.4
283
+
284
+ ### Patch Changes
285
+
286
+ - Updated dependencies [0b429d4]
287
+ - @ai-sdk/provider-utils@4.0.3
288
+
289
+ ## 3.0.3
290
+
291
+ ### Patch Changes
292
+
293
+ - 55cd1a4: fix(azure): allow 'azure' as a key for providerOptions
294
+
295
+ ## 3.0.2
296
+
297
+ ### Patch Changes
298
+
299
+ - 863d34f: fix: trigger release to update `@latest`
300
+ - Updated dependencies [863d34f]
301
+ - @ai-sdk/provider@3.0.1
302
+ - @ai-sdk/provider-utils@4.0.2
303
+
304
+ ## 3.0.1
305
+
306
+ ### Patch Changes
307
+
308
+ - 29264a3: feat: add MCP tool approval
309
+ - Updated dependencies [29264a3]
310
+ - @ai-sdk/provider-utils@4.0.1
311
+
312
+ ## 3.0.0
313
+
314
+ ### Major Changes
315
+
316
+ - dee8b05: ai SDK 6 beta
317
+
318
+ ### Minor Changes
319
+
320
+ - 78928cb: release: start 5.1 beta
321
+
322
+ ### Patch Changes
323
+
324
+ - 0c3b58b: fix(provider): add specificationVersion to ProviderV3
325
+ - 4920119: fix the "incomplete_details" key from nullable to nullish for openai compatibility
326
+ - 0adc679: feat(provider): shared spec v3
327
+ - 92c6241: feat(openai): additional settings for file search tool
328
+ - 88fc415: feat(openai): add the new provider 'apply_patch' tool
329
+ - 817e601: fix(openai); fix url_citation schema in chat api
330
+ - dae2185: fix(openai): extract meta data from first chunk that contains any
331
+ - 046aa3b: feat(provider): speech model v3 spec
332
+ - f1277fe: feat(provider/openai): send assistant text and tool call parts as reference ids when store: true
333
+ - 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
334
+
335
+ Before
336
+
337
+ ```ts
338
+ model.textEmbeddingModel('my-model-id');
339
+ ```
340
+
341
+ After
342
+
343
+ ```ts
344
+ model.embeddingModel('my-model-id');
345
+ ```
346
+
347
+ - 60f4775: fix: remove code for unsuported o1-mini and o1-preview models
348
+ - 9a51b92: support OPENAI_BASE_URL env
349
+ - d64ece9: enables image_generation capabilities in the Azure provider through the Responses API.
350
+ - 2625a04: feat(openai); update spec for mcp approval
351
+ - 2e86082: feat(provider/openai): `OpenAIChatLanguageModelOptions` type
352
+
353
+ ```ts
354
+ import { openai, type OpenAIChatLanguageModelOptions } from '@ai-sdk/openai';
355
+ import { generateText } from 'ai';
356
+
357
+ await generateText({
358
+ model: openai.chat('gpt-4o'),
359
+ prompt: 'Invent a new holiday and describe its traditions.',
360
+ providerOptions: {
361
+ openai: {
362
+ user: 'user-123',
363
+ } satisfies OpenAIChatLanguageModelOptions,
364
+ },
365
+ });
366
+ ```
367
+
368
+ - 0877683: feat(provider/openai): support conversations api
369
+ - d0f1baf: feat(openai): Add support for 'promptCacheRetention: 24h' for gpt5.1 series
370
+ - 831b6cc: feat(openai): adding provider mcp tool for openai
371
+ - 95f65c2: chore: use import \* from zod/v4
372
+ - edc5548: feat(provider/openai): automatically add reasoning.encrypted_content include when store = false
373
+ - 954c356: feat(openai): allow custom names for provider-defined tools
374
+ - 544d4e8: chore(specification): rename v3 provider defined tool to provider tool
375
+ - 77f2b20: enables code_interpreter and file_search capabilities in the Azure provider through the Responses API
376
+ - 0c4822d: feat: `EmbeddingModelV3`
377
+ - 73d9883: chore(openai): enable strict json by default
378
+ - d2039d7: feat(provider/openai): add GPT 5.1 Codex Max to OpenAI Responses model IDs list
379
+ - 88edc28: feat (provider/openai): include more image generation response metadata
380
+ - e8109d3: feat: tool execution approval
381
+ - ed329cb: feat: `Provider-V3`
382
+ - 3bd2689: feat: extended token usage
383
+ - 1cad0ab: feat: add provider version to user-agent header
384
+ - e85fa2f: feat(openai): add sources in web-search actions
385
+ - 423ba08: Set the annotations from the Responses API to doStream
386
+ - 401f561: fix(provider/openai): fix web search tool input types
387
+ - 4122d2a: feat(provider/openai): add gpt-5-codex model id
388
+ - 0153bfa: fix(openai): fix parameter exclusion logic
389
+ - 8dac895: feat: `LanguageModelV3`
390
+ - 304222e: Add streaming support for apply_patch partial diffs.
391
+ - 23f132b: fix: error schema for Responses API
392
+ - 1d0de66: refactoring(provider/openai): simplify code
393
+ - 000e87b: fix(provider/openai): add providerExecuted flag to tool start chunks
394
+ - 2c0a758: chore(openai): add JSDoc to responses options
395
+ - 1b982e6: feat(openai): preserve file_id when converting file citations
396
+ - b82987c: feat(openai): support openai code-interpreter annotations
397
+ - 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings
398
+ - b681d7d: feat: expose usage tokens for 'generateImage' function
399
+ - 79b4e46: feat(openai): add 'gpt-5.1' modelID
400
+ - 3997a42: feat(provider/openai): local shell tool
401
+ - 348fd10: fix(openai): treat unknown models as reasoning
402
+ - 9061dc0: feat: image editing
403
+ - fe49278: feat(provider/openai): only send item references for reasoning when store: true
404
+ - cb4d238: The built in Code Interpreter tool input code is streamed in `tool-input-<start/delta/end>` chunks.
405
+ - 357cfd7: feat(provider/openai): add new model IDs `gpt-image-1-mini`, `gpt-5-pro`, `gpt-5-pro-2025-10-06`
406
+ - 38a4035: added support for external_web_access parameter on web_search tool
407
+ - 40d5419: feat(openai): add `o3-deep-research` and `o4-mini-deep-research` models
408
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
409
+ - 2b0caef: feat(provider/openai): preview image generation results
410
+ - b60d2e2: fix(openai): allow open_page action type url to be nullish
411
+ - fd47df5: fix(openai): revised_prompt sometimes returns null, causing errors
412
+ - 4616b86: chore: update zod peer depenedency version
413
+ - 7756857: fix(provider/openai): add truncation parameter support for Responses API
414
+ - cad6445: feat(openai); adding OpenAI's new shell tool
415
+ - 64aa48f: Azure OpenAI enabled web-search-preview
416
+ - 0b9fdd5: fix(provider/openai): end reasoning parts earlier
417
+ - 61c52dc: feat (provider/openai): add gpt-image-1.5 model support
418
+ - ef739fa: fix(openai): refactor apply-patch tool
419
+ - 3220329: fix openai responses input: process all provider tool outputs (shell/apply_patch) so parallel tool results aren’t dropped and apply_patch outputs are forwarded.
420
+ - d270a5d: chore(openai): update tests for apply-patch tool to use snapshots
421
+ - f18ef7f: feat(openai): add gpt-5.2 models
422
+ - 21e20c0: feat(provider): transcription model v3 spec
423
+ - 522f6b8: feat: `ImageModelV3`
424
+ - 484aa93: Add 'default' as service tier
425
+ - 88574c1: Change `isReasoningModel` detection from blocklist to allowlist and add override option
426
+ - 68c6187: feat(provider/openai): support file and image tool results
427
+ - 3794514: feat: flexible tool output content support
428
+ - cbf52cd: feat: expose raw finish reason
429
+ - 10c1322: fix: moved dependency `@ai-sdk/test-server` to devDependencies
430
+ - 5648ec0: Add GPT-5.2 support for non-reasoning parameters (temperature, topP, logProbs) when reasoningEffort is none.
431
+ - 78f813e: fix(openai): allow temperature etc setting when reasoning effort is none for gpt-5.1
432
+ - 40dc7fa: fix(openai): change find action type to find_in_page action type
433
+ - 0273b74: fix(openai): add support for sources type 'api'
434
+ - 5bf101a: feat(provider/openai): add support for OpenAI xhigh reasoning effort
435
+ - 1bd7d32: feat: tool-specific strict mode
436
+ - d86b52f: distinguish between OpenAI and Azure in Responses API providerMetadata
437
+ - 95f65c2: chore: load zod schemas lazily
438
+ - 59561f8: fix(openai); fix url_citation schema in chat api
439
+ - Updated dependencies
440
+ - @ai-sdk/provider@3.0.0
441
+ - @ai-sdk/provider-utils@4.0.0
442
+
443
+ ## 3.0.0-beta.112
444
+
445
+ ### Patch Changes
446
+
447
+ - Updated dependencies [475189e]
448
+ - @ai-sdk/provider@3.0.0-beta.32
449
+ - @ai-sdk/provider-utils@4.0.0-beta.59
450
+
451
+ ## 3.0.0-beta.111
452
+
453
+ ### Patch Changes
454
+
455
+ - 304222e: Add streaming support for apply_patch partial diffs.
456
+
457
+ ## 3.0.0-beta.110
458
+
459
+ ### Patch Changes
460
+
461
+ - 2625a04: feat(openai); update spec for mcp approval
462
+ - Updated dependencies [2625a04]
463
+ - @ai-sdk/provider@3.0.0-beta.31
464
+ - @ai-sdk/provider-utils@4.0.0-beta.58
465
+
466
+ ## 3.0.0-beta.109
467
+
468
+ ### Patch Changes
469
+
470
+ - cbf52cd: feat: expose raw finish reason
471
+ - Updated dependencies [cbf52cd]
472
+ - @ai-sdk/provider@3.0.0-beta.30
473
+ - @ai-sdk/provider-utils@4.0.0-beta.57
474
+
475
+ ## 3.0.0-beta.108
476
+
477
+ ### Patch Changes
478
+
479
+ - Updated dependencies [9549c9e]
480
+ - @ai-sdk/provider@3.0.0-beta.29
481
+ - @ai-sdk/provider-utils@4.0.0-beta.56
482
+
483
+ ## 3.0.0-beta.107
484
+
485
+ ### Patch Changes
486
+
487
+ - Updated dependencies [50b70d6]
488
+ - @ai-sdk/provider-utils@4.0.0-beta.55
489
+
490
+ ## 3.0.0-beta.106
491
+
492
+ ### Patch Changes
493
+
494
+ - 9061dc0: feat: image editing
495
+ - Updated dependencies [9061dc0]
496
+ - @ai-sdk/provider-utils@4.0.0-beta.54
497
+ - @ai-sdk/provider@3.0.0-beta.28
498
+
499
+ ## 3.0.0-beta.105
500
+
501
+ ### Patch Changes
502
+
503
+ - 88574c1: Change `isReasoningModel` detection from blocklist to allowlist and add override option
504
+
505
+ ## 3.0.0-beta.104
506
+
507
+ ### Patch Changes
508
+
509
+ - 61c52dc: feat (provider/openai): add gpt-image-1.5 model support
510
+
511
+ ## 3.0.0-beta.103
512
+
513
+ ### Patch Changes
514
+
515
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
516
+ - Updated dependencies [366f50b]
517
+ - @ai-sdk/provider@3.0.0-beta.27
518
+ - @ai-sdk/provider-utils@4.0.0-beta.53
519
+
520
+ ## 3.0.0-beta.102
521
+
522
+ ### Patch Changes
523
+
524
+ - Updated dependencies [763d04a]
525
+ - @ai-sdk/provider-utils@4.0.0-beta.52
526
+
527
+ ## 3.0.0-beta.101
528
+
529
+ ### Patch Changes
530
+
531
+ - 3220329: fix openai responses input: process all provider tool outputs (shell/apply_patch) so parallel tool results aren’t dropped and apply_patch outputs are forwarded.
532
+ - 5648ec0: Add GPT-5.2 support for non-reasoning parameters (temperature, topP, logProbs) when reasoningEffort is none.
533
+
534
+ ## 3.0.0-beta.100
535
+
536
+ ### Patch Changes
537
+
538
+ - Updated dependencies [c1efac4]
539
+ - @ai-sdk/provider-utils@4.0.0-beta.51
540
+
541
+ ## 3.0.0-beta.99
542
+
543
+ ### Patch Changes
544
+
545
+ - Updated dependencies [32223c8]
546
+ - @ai-sdk/provider-utils@4.0.0-beta.50
547
+
548
+ ## 3.0.0-beta.98
549
+
550
+ ### Patch Changes
551
+
552
+ - Updated dependencies [83e5744]
553
+ - @ai-sdk/provider-utils@4.0.0-beta.49
554
+
555
+ ## 3.0.0-beta.97
556
+
557
+ ### Patch Changes
558
+
559
+ - Updated dependencies [960ec8f]
560
+ - @ai-sdk/provider-utils@4.0.0-beta.48
561
+
562
+ ## 3.0.0-beta.96
563
+
564
+ ### Patch Changes
565
+
566
+ - 817e601: fix(openai); fix url_citation schema in chat api
567
+ - 59561f8: fix(openai); fix url_citation schema in chat api
568
+
569
+ ## 3.0.0-beta.95
570
+
571
+ ### Patch Changes
572
+
573
+ - 40dc7fa: fix(openai): change find action type to find_in_page action type
574
+
575
+ ## 3.0.0-beta.94
576
+
577
+ ### Patch Changes
578
+
579
+ - f18ef7f: feat(openai): add gpt-5.2 models
580
+
581
+ ## 3.0.0-beta.93
582
+
583
+ ### Patch Changes
584
+
585
+ - d2039d7: feat(provider/openai): add GPT 5.1 Codex Max to OpenAI Responses model IDs list
586
+
587
+ ## 3.0.0-beta.92
588
+
589
+ ### Patch Changes
590
+
591
+ - 5bf101a: feat(provider/openai): add support for OpenAI xhigh reasoning effort
592
+
593
+ ## 3.0.0-beta.91
594
+
595
+ ### Patch Changes
596
+
597
+ - Updated dependencies [e9e157f]
598
+ - @ai-sdk/provider-utils@4.0.0-beta.47
599
+
600
+ ## 3.0.0-beta.90
601
+
602
+ ### Patch Changes
603
+
604
+ - Updated dependencies [81e29ab]
605
+ - @ai-sdk/provider-utils@4.0.0-beta.46
606
+
607
+ ## 3.0.0-beta.89
608
+
609
+ ### Patch Changes
610
+
611
+ - 3bd2689: feat: extended token usage
612
+ - Updated dependencies [3bd2689]
613
+ - @ai-sdk/provider@3.0.0-beta.26
614
+ - @ai-sdk/provider-utils@4.0.0-beta.45
615
+
616
+ ## 3.0.0-beta.88
617
+
618
+ ### Patch Changes
619
+
620
+ - 92c6241: feat(openai): additional settings for file search tool
621
+
622
+ ## 3.0.0-beta.87
623
+
624
+ ### Patch Changes
625
+
626
+ - Updated dependencies [53f3368]
627
+ - @ai-sdk/provider@3.0.0-beta.25
628
+ - @ai-sdk/provider-utils@4.0.0-beta.44
629
+
630
+ ## 3.0.0-beta.86
631
+
632
+ ### Patch Changes
633
+
634
+ - 0153bfa: fix(openai): fix parameter exclusion logic
635
+
636
+ ## 3.0.0-beta.85
637
+
638
+ ### Patch Changes
639
+
640
+ - 78f813e: fix(openai): allow temperature etc setting when reasoning effort is none for gpt-5.1
641
+
642
+ ## 3.0.0-beta.84
643
+
644
+ ### Patch Changes
645
+
646
+ - Updated dependencies [dce03c4]
647
+ - @ai-sdk/provider-utils@4.0.0-beta.43
648
+ - @ai-sdk/provider@3.0.0-beta.24
649
+
650
+ ## 3.0.0-beta.83
651
+
652
+ ### Patch Changes
653
+
654
+ - ef739fa: fix(openai): refactor apply-patch tool
655
+
656
+ ## 3.0.0-beta.82
657
+
658
+ ### Patch Changes
659
+
660
+ - Updated dependencies [3ed5519]
661
+ - @ai-sdk/provider-utils@4.0.0-beta.42
662
+
663
+ ## 3.0.0-beta.81
664
+
665
+ ### Patch Changes
666
+
667
+ - cad6445: feat(openai); adding OpenAI's new shell tool
668
+
669
+ ## 3.0.0-beta.80
670
+
671
+ ### Patch Changes
672
+
673
+ - b60d2e2: fix(openai): allow open_page action type url to be nullish
674
+
675
+ ## 3.0.0-beta.79
676
+
677
+ ### Patch Changes
678
+
679
+ - 1bd7d32: feat: tool-specific strict mode
680
+ - Updated dependencies [1bd7d32]
681
+ - @ai-sdk/provider-utils@4.0.0-beta.41
682
+ - @ai-sdk/provider@3.0.0-beta.23
683
+
684
+ ## 3.0.0-beta.78
685
+
686
+ ### Patch Changes
687
+
688
+ - 2c0a758: chore(openai): add JSDoc to responses options
689
+
690
+ ## 3.0.0-beta.77
691
+
692
+ ### Patch Changes
693
+
694
+ - d270a5d: chore(openai): update tests for apply-patch tool to use snapshots
695
+
696
+ ## 3.0.0-beta.76
697
+
698
+ ### Patch Changes
699
+
700
+ - 88edc28: feat (provider/openai): include more image generation response metadata
701
+
702
+ ## 3.0.0-beta.75
703
+
704
+ ### Patch Changes
705
+
706
+ - 73d9883: chore(openai): enable strict json by default
707
+
708
+ ## 3.0.0-beta.74
709
+
710
+ ### Patch Changes
711
+
712
+ - 88fc415: feat(openai): add the new provider 'apply_patch' tool
713
+
714
+ ## 3.0.0-beta.73
715
+
716
+ ### Patch Changes
717
+
718
+ - 544d4e8: chore(specification): rename v3 provider defined tool to provider tool
719
+ - Updated dependencies [544d4e8]
720
+ - @ai-sdk/provider-utils@4.0.0-beta.40
721
+ - @ai-sdk/provider@3.0.0-beta.22
722
+
723
+ ## 3.0.0-beta.72
724
+
725
+ ### Patch Changes
726
+
727
+ - 954c356: feat(openai): allow custom names for provider-defined tools
728
+ - Updated dependencies [954c356]
729
+ - @ai-sdk/provider-utils@4.0.0-beta.39
730
+ - @ai-sdk/provider@3.0.0-beta.21
731
+
732
+ ## 3.0.0-beta.71
733
+
734
+ ### Patch Changes
735
+
736
+ - Updated dependencies [03849b0]
737
+ - @ai-sdk/provider-utils@4.0.0-beta.38
738
+
739
+ ## 3.0.0-beta.70
740
+
741
+ ### Patch Changes
742
+
743
+ - 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings
744
+ - Updated dependencies [457318b]
745
+ - @ai-sdk/provider@3.0.0-beta.20
746
+ - @ai-sdk/provider-utils@4.0.0-beta.37
747
+
748
+ ## 3.0.0-beta.69
749
+
750
+ ### Patch Changes
751
+
752
+ - 1d0de66: refactoring(provider/openai): simplify code
753
+
754
+ ## 3.0.0-beta.68
755
+
756
+ ### Patch Changes
757
+
758
+ - 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3
759
+
760
+ Before
761
+
762
+ ```ts
763
+ model.textEmbeddingModel('my-model-id');
764
+ ```
765
+
766
+ After
767
+
768
+ ```ts
769
+ model.embeddingModel('my-model-id');
770
+ ```
771
+
772
+ - Updated dependencies [8d9e8ad]
773
+ - @ai-sdk/provider@3.0.0-beta.19
774
+ - @ai-sdk/provider-utils@4.0.0-beta.36
775
+
776
+ ## 3.0.0-beta.67
777
+
778
+ ### Patch Changes
779
+
780
+ - Updated dependencies [10d819b]
781
+ - @ai-sdk/provider@3.0.0-beta.18
782
+ - @ai-sdk/provider-utils@4.0.0-beta.35
783
+
784
+ ## 3.0.0-beta.66
785
+
786
+ ### Patch Changes
787
+
788
+ - d86b52f: distinguish between OpenAI and Azure in Responses API providerMetadata
789
+
790
+ ## 3.0.0-beta.65
791
+
792
+ ### Patch Changes
793
+
794
+ - 38a4035: added support for external_web_access parameter on web_search tool
795
+
796
+ ## 3.0.0-beta.64
797
+
798
+ ### Patch Changes
799
+
800
+ - Updated dependencies [db913bd]
801
+ - @ai-sdk/provider@3.0.0-beta.17
802
+ - @ai-sdk/provider-utils@4.0.0-beta.34
803
+
804
+ ## 3.0.0-beta.63
805
+
806
+ ### Patch Changes
807
+
808
+ - 423ba08: Set the annotations from the Responses API to doStream
809
+
810
+ ## 3.0.0-beta.62
811
+
812
+ ### Patch Changes
813
+
814
+ - 64aa48f: Azure OpenAI enabled web-search-preview
815
+
816
+ ## 3.0.0-beta.61
817
+
818
+ ### Patch Changes
819
+
820
+ - 23f132b: fix: error schema for Responses API
821
+
822
+ ## 3.0.0-beta.60
823
+
824
+ ### Patch Changes
825
+
826
+ - 0877683: feat(provider/openai): support conversations api
827
+
828
+ ## 3.0.0-beta.59
829
+
830
+ ### Patch Changes
831
+
832
+ - d0f1baf: feat(openai): Add support for 'promptCacheRetention: 24h' for gpt5.1 series
833
+
834
+ ## 3.0.0-beta.58
835
+
836
+ ### Patch Changes
837
+
838
+ - 79b4e46: feat(openai): add 'gpt-5.1' modelID
839
+
840
+ ## 3.0.0-beta.57
841
+
842
+ ### Patch Changes
843
+
844
+ - b681d7d: feat: expose usage tokens for 'generateImage' function
845
+ - Updated dependencies [b681d7d]
846
+ - @ai-sdk/provider@3.0.0-beta.16
847
+ - @ai-sdk/provider-utils@4.0.0-beta.33
848
+
849
+ ## 3.0.0-beta.56
850
+
851
+ ### Patch Changes
852
+
853
+ - Updated dependencies [32d8dbb]
854
+ - @ai-sdk/provider-utils@4.0.0-beta.32
855
+
856
+ ## 3.0.0-beta.55
857
+
858
+ ### Patch Changes
859
+
860
+ - 831b6cc: feat(openai): adding provider mcp tool for openai
861
+
862
+ ## 3.0.0-beta.54
863
+
864
+ ### Patch Changes
865
+
866
+ - 40d5419: feat(openai): add `o3-deep-research` and `o4-mini-deep-research` models
867
+
868
+ ## 3.0.0-beta.53
869
+
870
+ ### Patch Changes
871
+
872
+ - dae2185: fix(openai): extract meta data from first chunk that contains any
873
+
874
+ ## 3.0.0-beta.52
875
+
876
+ ### Patch Changes
877
+
878
+ - 348fd10: fix(openai): treat unknown models as reasoning
879
+
880
+ ## 3.0.0-beta.51
881
+
882
+ ### Patch Changes
883
+
884
+ - b82987c: feat(openai): support openai code-interpreter annotations
885
+
886
+ ## 3.0.0-beta.50
887
+
888
+ ### Patch Changes
889
+
890
+ - Updated dependencies [bb36798]
891
+ - @ai-sdk/provider@3.0.0-beta.15
892
+ - @ai-sdk/provider-utils@4.0.0-beta.31
893
+
894
+ ## 3.0.0-beta.49
895
+
896
+ ### Patch Changes
897
+
898
+ - 0273b74: fix(openai): add support for sources type 'api'
899
+
900
+ ## 3.0.0-beta.48
901
+
902
+ ### Patch Changes
903
+
904
+ - 60f4775: fix: remove code for unsuported o1-mini and o1-preview models
905
+
906
+ ## 3.0.0-beta.47
907
+
908
+ ### Patch Changes
909
+
910
+ - Updated dependencies [4f16c37]
911
+ - @ai-sdk/provider-utils@4.0.0-beta.30
912
+
913
+ ## 3.0.0-beta.46
914
+
915
+ ### Patch Changes
916
+
917
+ - Updated dependencies [af3780b]
918
+ - @ai-sdk/provider@3.0.0-beta.14
919
+ - @ai-sdk/provider-utils@4.0.0-beta.29
920
+
921
+ ## 3.0.0-beta.45
922
+
923
+ ### Patch Changes
924
+
925
+ - fd47df5: fix(openai): revised_prompt sometimes returns null, causing errors
926
+
927
+ ## 3.0.0-beta.44
928
+
929
+ ### Patch Changes
930
+
931
+ - Updated dependencies [016b111]
932
+ - @ai-sdk/provider-utils@4.0.0-beta.28
933
+
934
+ ## 3.0.0-beta.43
935
+
936
+ ### Patch Changes
937
+
938
+ - Updated dependencies [37c58a0]
939
+ - @ai-sdk/provider@3.0.0-beta.13
940
+ - @ai-sdk/provider-utils@4.0.0-beta.27
941
+
942
+ ## 3.0.0-beta.42
943
+
944
+ ### Patch Changes
945
+
946
+ - Updated dependencies [d1bdadb]
947
+ - @ai-sdk/provider@3.0.0-beta.12
948
+ - @ai-sdk/provider-utils@4.0.0-beta.26
949
+
950
+ ## 3.0.0-beta.41
951
+
952
+ ### Patch Changes
953
+
954
+ - Updated dependencies [4c44a5b]
955
+ - @ai-sdk/provider@3.0.0-beta.11
956
+ - @ai-sdk/provider-utils@4.0.0-beta.25
957
+
958
+ ## 3.0.0-beta.40
959
+
960
+ ### Patch Changes
961
+
962
+ - 1b982e6: feat(openai): preserve file_id when converting file citations
963
+
964
+ ## 3.0.0-beta.39
965
+
966
+ ### Patch Changes
967
+
968
+ - 0c3b58b: fix(provider): add specificationVersion to ProviderV3
969
+ - Updated dependencies [0c3b58b]
970
+ - @ai-sdk/provider@3.0.0-beta.10
971
+ - @ai-sdk/provider-utils@4.0.0-beta.24
972
+
973
+ ## 3.0.0-beta.38
974
+
975
+ ### Patch Changes
976
+
977
+ - Updated dependencies [a755db5]
978
+ - @ai-sdk/provider@3.0.0-beta.9
979
+ - @ai-sdk/provider-utils@4.0.0-beta.23
980
+
981
+ ## 3.0.0-beta.37
982
+
983
+ ### Patch Changes
984
+
985
+ - e85fa2f: feat(openai): add sources in web-search actions
986
+
987
+ ## 3.0.0-beta.36
988
+
989
+ ### Patch Changes
990
+
991
+ - Updated dependencies [58920e0]
992
+ - @ai-sdk/provider-utils@4.0.0-beta.22
993
+
994
+ ## 3.0.0-beta.35
995
+
996
+ ### Patch Changes
997
+
998
+ - Updated dependencies [293a6b7]
999
+ - @ai-sdk/provider-utils@4.0.0-beta.21
1000
+
1001
+ ## 3.0.0-beta.34
1002
+
1003
+ ### Patch Changes
1004
+
1005
+ - Updated dependencies [fca786b]
1006
+ - @ai-sdk/provider-utils@4.0.0-beta.20
1007
+
1008
+ ## 3.0.0-beta.33
1009
+
1010
+ ### Patch Changes
1011
+
1012
+ - 7756857: fix(provider/openai): add truncation parameter support for Responses API
1013
+
1014
+ ## 3.0.0-beta.32
1015
+
1016
+ ### Patch Changes
1017
+
1018
+ - 3794514: feat: flexible tool output content support
1019
+ - Updated dependencies [3794514]
1020
+ - @ai-sdk/provider-utils@4.0.0-beta.19
1021
+ - @ai-sdk/provider@3.0.0-beta.8
1022
+
1023
+ ## 3.0.0-beta.31
1024
+
1025
+ ### Patch Changes
1026
+
1027
+ - Updated dependencies [81d4308]
1028
+ - @ai-sdk/provider@3.0.0-beta.7
1029
+ - @ai-sdk/provider-utils@4.0.0-beta.18
1030
+
1031
+ ## 3.0.0-beta.30
1032
+
1033
+ ### Patch Changes
1034
+
1035
+ - Updated dependencies [703459a]
1036
+ - @ai-sdk/provider-utils@4.0.0-beta.17
1037
+
1038
+ ## 3.0.0-beta.29
1039
+
1040
+ ### Patch Changes
1041
+
1042
+ - 0b9fdd5: fix(provider/openai): end reasoning parts earlier
1043
+
1044
+ ## 3.0.0-beta.28
1045
+
1046
+ ### Patch Changes
1047
+
1048
+ - 401f561: fix(provider/openai): fix web search tool input types
1049
+
1050
+ ## 3.0.0-beta.27
1051
+
1052
+ ### Patch Changes
1053
+
1054
+ - f1277fe: feat(provider/openai): send assistant text and tool call parts as reference ids when store: true
1055
+
1056
+ ## 3.0.0-beta.26
1057
+
1058
+ ### Patch Changes
1059
+
1060
+ - edc5548: feat(provider/openai): automatically add reasoning.encrypted_content include when store = false
1061
+
1062
+ ## 3.0.0-beta.25
1063
+
1064
+ ### Patch Changes
1065
+
1066
+ - Updated dependencies [6306603]
1067
+ - @ai-sdk/provider-utils@4.0.0-beta.16
1068
+
1069
+ ## 3.0.0-beta.24
1070
+
1071
+ ### Patch Changes
1072
+
1073
+ - Updated dependencies [f0b2157]
1074
+ - @ai-sdk/provider-utils@4.0.0-beta.15
1075
+
1076
+ ## 3.0.0-beta.23
1077
+
1078
+ ### Patch Changes
1079
+
1080
+ - Updated dependencies [3b1d015]
1081
+ - @ai-sdk/provider-utils@4.0.0-beta.14
1082
+
1083
+ ## 3.0.0-beta.22
1084
+
1085
+ ### Patch Changes
1086
+
1087
+ - Updated dependencies [d116b4b]
1088
+ - @ai-sdk/provider-utils@4.0.0-beta.13
1089
+
1090
+ ## 3.0.0-beta.21
1091
+
1092
+ ### Patch Changes
1093
+
1094
+ - Updated dependencies [7e32fea]
1095
+ - @ai-sdk/provider-utils@4.0.0-beta.12
1096
+
1097
+ ## 3.0.0-beta.20
1098
+
1099
+ ### Patch Changes
1100
+
1101
+ - 68c6187: feat(provider/openai): support file and image tool results
1102
+
1103
+ ## 3.0.0-beta.19
1104
+
1105
+ ### Patch Changes
1106
+
1107
+ - 484aa93: Add 'default' as service tier
1108
+
1109
+ ## 3.0.0-beta.18
1110
+
1111
+ ### Patch Changes
1112
+
1113
+ - 95f65c2: chore: use import \* from zod/v4
1114
+ - 95f65c2: chore: load zod schemas lazily
1115
+ - Updated dependencies
1116
+ - @ai-sdk/provider-utils@4.0.0-beta.11
1117
+
1118
+ ## 3.0.0-beta.17
1119
+
1120
+ ### Major Changes
1121
+
1122
+ - dee8b05: ai SDK 6 beta
1123
+
1124
+ ### Patch Changes
1125
+
1126
+ - Updated dependencies [dee8b05]
1127
+ - @ai-sdk/provider@3.0.0-beta.6
1128
+ - @ai-sdk/provider-utils@4.0.0-beta.10
1129
+
1130
+ ## 2.1.0-beta.16
1131
+
1132
+ ### Patch Changes
1133
+
1134
+ - Updated dependencies [521c537]
1135
+ - @ai-sdk/provider-utils@3.1.0-beta.9
1136
+
1137
+ ## 2.1.0-beta.15
1138
+
1139
+ ### Patch Changes
1140
+
1141
+ - Updated dependencies [e06565c]
1142
+ - @ai-sdk/provider-utils@3.1.0-beta.8
1143
+
1144
+ ## 2.1.0-beta.14
1145
+
1146
+ ### Patch Changes
1147
+
1148
+ - 000e87b: fix(provider/openai): add providerExecuted flag to tool start chunks
1149
+
1150
+ ## 2.1.0-beta.13
1151
+
1152
+ ### Patch Changes
1153
+
1154
+ - 357cfd7: feat(provider/openai): add new model IDs `gpt-image-1-mini`, `gpt-5-pro`, `gpt-5-pro-2025-10-06`
1155
+
1156
+ ## 2.1.0-beta.12
1157
+
1158
+ ### Patch Changes
1159
+
1160
+ - 046aa3b: feat(provider): speech model v3 spec
1161
+ - e8109d3: feat: tool execution approval
1162
+ - 21e20c0: feat(provider): transcription model v3 spec
1163
+ - Updated dependencies
1164
+ - @ai-sdk/provider@2.1.0-beta.5
1165
+ - @ai-sdk/provider-utils@3.1.0-beta.7
1166
+
1167
+ ## 2.1.0-beta.11
1168
+
1169
+ ### Patch Changes
1170
+
1171
+ - 0adc679: feat(provider): shared spec v3
1172
+ - 2b0caef: feat(provider/openai): preview image generation results
1173
+ - Updated dependencies
1174
+ - @ai-sdk/provider-utils@3.1.0-beta.6
1175
+ - @ai-sdk/provider@2.1.0-beta.4
1176
+
1177
+ ## 2.1.0-beta.10
1178
+
1179
+ ### Patch Changes
1180
+
1181
+ - d64ece9: enables image_generation capabilities in the Azure provider through the Responses API.
1182
+
1183
+ ## 2.1.0-beta.9
1184
+
1185
+ ### Patch Changes
1186
+
1187
+ - 9a51b92: support OPENAI_BASE_URL env
1188
+
1189
+ ## 2.1.0-beta.8
1190
+
1191
+ ### Patch Changes
1192
+
1193
+ - 4122d2a: feat(provider/openai): add gpt-5-codex model id
1194
+ - 3997a42: feat(provider/openai): local shell tool
1195
+ - cb4d238: The built in Code Interpreter tool input code is streamed in `tool-input-<start/delta/end>` chunks.
1196
+
1197
+ ## 2.1.0-beta.7
1198
+
1199
+ ### Patch Changes
1200
+
1201
+ - 77f2b20: enables code_interpreter and file_search capabilities in the Azure provider through the Responses API
1202
+ - 8dac895: feat: `LanguageModelV3`
1203
+ - 10c1322: fix: moved dependency `@ai-sdk/test-server` to devDependencies
1204
+ - Updated dependencies [8dac895]
1205
+ - @ai-sdk/provider-utils@3.1.0-beta.5
1206
+ - @ai-sdk/provider@2.1.0-beta.3
1207
+
1208
+ ## 2.1.0-beta.6
1209
+
1210
+ ### Patch Changes
1211
+
1212
+ - fe49278: feat(provider/openai): only send item references for reasoning when store: true
1213
+
1214
+ ## 2.1.0-beta.5
1215
+
1216
+ ### Patch Changes
1217
+
1218
+ - 4616b86: chore: update zod peer depenedency version
1219
+ - Updated dependencies [4616b86]
1220
+ - @ai-sdk/provider-utils@3.1.0-beta.4
1221
+
1222
+ ## 2.1.0-beta.4
1223
+
1224
+ ### Patch Changes
1225
+
1226
+ - ed329cb: feat: `Provider-V3`
1227
+ - 522f6b8: feat: `ImageModelV3`
1228
+ - Updated dependencies
1229
+ - @ai-sdk/provider@2.1.0-beta.2
1230
+ - @ai-sdk/provider-utils@3.1.0-beta.3
1231
+
1232
+ ## 2.1.0-beta.3
1233
+
1234
+ ### Patch Changes
1235
+
1236
+ - 2e86082: feat(provider/openai): `OpenAIChatLanguageModelOptions` type
1237
+
1238
+ ```ts
1239
+ import { openai, type OpenAIChatLanguageModelOptions } from '@ai-sdk/openai';
1240
+ import { generateText } from 'ai';
1241
+
1242
+ await generateText({
1243
+ model: openai.chat('gpt-4o'),
1244
+ prompt: 'Invent a new holiday and describe its traditions.',
1245
+ providerOptions: {
1246
+ openai: {
1247
+ user: 'user-123',
1248
+ } satisfies OpenAIChatLanguageModelOptions,
1249
+ },
1250
+ });
1251
+ ```
1252
+
1253
+ ## 2.1.0-beta.2
1254
+
1255
+ ### Patch Changes
1256
+
1257
+ - 4920119: fix the "incomplete_details" key from nullable to nullish for openai compatibility
1258
+ - 0c4822d: feat: `EmbeddingModelV3`
1259
+ - 1cad0ab: feat: add provider version to user-agent header
1260
+ - Updated dependencies [0c4822d]
1261
+ - @ai-sdk/provider@2.1.0-beta.1
1262
+ - @ai-sdk/provider-utils@3.1.0-beta.2
1263
+
1264
+ ## 2.1.0-beta.1
1265
+
1266
+ ### Patch Changes
1267
+
1268
+ - Updated dependencies
1269
+ - @ai-sdk/test-server@1.0.0-beta.0
1270
+ - @ai-sdk/provider-utils@3.1.0-beta.1
1271
+
1272
+ ## 2.1.0-beta.0
1273
+
1274
+ ### Minor Changes
1275
+
1276
+ - 78928cb: release: start 5.1 beta
1277
+
1278
+ ### Patch Changes
1279
+
1280
+ - Updated dependencies [78928cb]
1281
+ - @ai-sdk/provider@2.1.0-beta.0
1282
+ - @ai-sdk/provider-utils@3.1.0-beta.0
1283
+
1284
+ ## 2.0.32
1285
+
1286
+ ### Patch Changes
1287
+
1288
+ - 1cf857d: fix(provider/openai): remove provider-executed tools from chat completions model
1289
+ - 01de47f: feat(provider/openai): rework file search tool
1290
+
1291
+ ## 2.0.31
1292
+
1293
+ ### Patch Changes
1294
+
1295
+ - bb94467: feat(provider/openai): add maxToolCalls provider option
1296
+ - 4a2b70e: feat(provider/openai): send item references for provider-executed tool results
1297
+ - 643711d: feat (provider/openai): provider defined image generation tool support
1298
+
1299
+ ## 2.0.30
1300
+
1301
+ ### Patch Changes
1302
+
1303
+ - Updated dependencies [0294b58]
1304
+ - @ai-sdk/provider-utils@3.0.9
1305
+
1306
+ ## 2.0.29
1307
+
1308
+ ### Patch Changes
1309
+
1310
+ - 4235eb3: feat(provider/openai): code interpreter tool calls and results
1311
+
1312
+ ## 2.0.28
1313
+
1314
+ ### Patch Changes
1315
+
1316
+ - 4c2bb77: fix (provider/openai): send sources action as include
1317
+ - 561e8b0: fix (provider/openai): fix code interpreter tool in doGenerate
1318
+
1319
+ ## 2.0.27
1320
+
1321
+ ### Patch Changes
1322
+
1323
+ - 2338c79: feat (provider/openai): add jsdoc for openai tools
1324
+
1325
+ ## 2.0.26
1326
+
1327
+ ### Patch Changes
1328
+
1329
+ - 5819aec: fix (provider/openai): only send tool calls finish reason for tools that are not provider-executed
1330
+ - af8c6bb: feat (provider/openai): add web_search tool
1331
+
1332
+ ## 2.0.25
1333
+
1334
+ ### Patch Changes
1335
+
1336
+ - fb45ade: fix timestamp granularities support for openai transcription
1337
+
1338
+ ## 2.0.24
1339
+
1340
+ ### Patch Changes
1341
+
1342
+ - ad57512: fix(provider/openai): safe practice to include filename and fileExtension to avoid `experimental_transcribe` fails with valid Buffer
1343
+ - Updated dependencies [99964ed]
1344
+ - @ai-sdk/provider-utils@3.0.8
1345
+
1346
+ ## 2.0.23
1347
+
1348
+ ### Patch Changes
1349
+
1350
+ - a9a61b7: Add serviceTier to provider metadata for OpenAI responses
1351
+
1352
+ ## 2.0.22
1353
+
1354
+ ### Patch Changes
1355
+
1356
+ - 0e272ae: fix(provider/openai): make file_citation annotation fields optional for responses api compatibility
1357
+ - Updated dependencies [886e7cd]
1358
+ - @ai-sdk/provider-utils@3.0.7
1359
+
1360
+ ## 2.0.21
1361
+
1362
+ ### Patch Changes
1363
+
1364
+ - d18856a: fix(provider/openai): support websearch tool results without query property
1365
+ - 15271d6: fix(provider/openai): do not set `response_format` to `verbose_json` if model is `gpt-4o-transcribe` or `gpt-4o-mini-transcribe`
1366
+
1367
+ These two models do not support it:
1368
+ https://platform.openai.com/docs/api-reference/audio/createTranscription#audio_createtranscription-response_format
1369
+
1370
+ - Updated dependencies [1b5a3d3]
1371
+ - @ai-sdk/provider-utils@3.0.6
1372
+
1373
+ ## 2.0.20
1374
+
1375
+ ### Patch Changes
1376
+
1377
+ - 974de40: fix(provider/ai): do not set `.providerMetadata.openai.logprobs` to an array of empty arrays when using `streamText()`
1378
+
1379
+ ## 2.0.19
1380
+
1381
+ ### Patch Changes
1382
+
1383
+ - Updated dependencies [0857788]
1384
+ - @ai-sdk/provider-utils@3.0.5
1385
+
1386
+ ## 2.0.18
1387
+
1388
+ ### Patch Changes
1389
+
1390
+ - 5e47d00: Support Responses API input_file file_url passthrough for PDFs.
1391
+
1392
+ This adds:
1393
+
1394
+ - file_url variant to OpenAIResponses user content
1395
+ - PDF URL mapping to input_file with file_url in Responses converter
1396
+ - PDF URL support in supportedUrls to avoid auto-download
1397
+
1398
+ ## 2.0.17
1399
+
1400
+ ### Patch Changes
1401
+
1402
+ - 70bb696: fix(provider/openai): correct web search tool input
1403
+
1404
+ ## 2.0.16
1405
+
1406
+ ### Patch Changes
1407
+
1408
+ - Updated dependencies [68751f9]
1409
+ - @ai-sdk/provider-utils@3.0.4
1410
+
1411
+ ## 2.0.15
1412
+
1413
+ ### Patch Changes
1414
+
1415
+ - a4bef93: feat(provider/openai): expose web search queries in responses api
1416
+ - 6ed34cb: refactor(openai): consolidate model config into `getResponsesModelConfig()`
1417
+
1418
+ https://github.com/vercel/ai/pull/8038
1419
+
1420
+ ## 2.0.14
1421
+
1422
+ ### Patch Changes
1423
+
1424
+ - 7f47105: fix(provider/openai): support file_citation annotations in responses api
1425
+
1426
+ ## 2.0.13
1427
+
1428
+ ### Patch Changes
1429
+
1430
+ - ddc9d99: Implements `logprobs` for OpenAI `providerOptions` and `providerMetaData` in `OpenAIResponsesLanguageModel`
1431
+
1432
+ You can now set `providerOptions.openai.logprobs` when using `generateText()` and retrieve logprobs from the response via `result.providerMetadata?.openai`
1433
+
1434
+ ## 2.0.12
1435
+
1436
+ ### Patch Changes
1437
+
1438
+ - ec336a1: feat(provider/openai): add response_format to be supported by default
1439
+ - 2935ec7: fix(provider/openai): exclude gpt-5-chat from reasoning model
1440
+ - Updated dependencies
1441
+ - @ai-sdk/provider-utils@3.0.3
1442
+
1443
+ ## 2.0.11
1444
+
1445
+ ### Patch Changes
1446
+
1447
+ - 097b452: feat(openai, azure): add configurable file ID prefixes for Responses API
1448
+
1449
+ - Added `fileIdPrefixes` option to OpenAI Responses API configuration
1450
+ - Azure OpenAI now supports `assistant-` prefixed file IDs (replacing previous `file-` prefix support)
1451
+ - OpenAI maintains backward compatibility with default `file-` prefix
1452
+ - File ID detection is disabled when `fileIdPrefixes` is undefined, gracefully falling back to base64 processing
1453
+
1454
+ - 87cf954: feat(provider/openai): add support for prompt_cache_key
1455
+ - a3d98a9: feat(provider/openai): add support for safety_identifier
1456
+ - 110d167: fix(openai): add missing file_search_call handlers in responses streaming
1457
+ - 8d3c747: chore(openai): remove deprecated GPT-4.5-preview models and improve autocomplete control
1458
+ - Updated dependencies [38ac190]
1459
+ - @ai-sdk/provider-utils@3.0.2
1460
+
1461
+ ## 2.0.10
1462
+
1463
+ ### Patch Changes
1464
+
1465
+ - a274b01: refactor(provider/openai): restructure files
1466
+ - b48e0ff: feat(provider/openai): add code interpreter tool (responses api)
1467
+
1468
+ ## 2.0.9
1469
+
1470
+ ### Patch Changes
1471
+
1472
+ - 8f8a521: fix(providers): use convertToBase64 for Uint8Array image parts to produce valid data URLs; keep mediaType normalization and URL passthrough
1473
+
1474
+ ## 2.0.8
1475
+
1476
+ ### Patch Changes
1477
+
1478
+ - 57fb959: feat(openai): add verbosity parameter support for chat api
1479
+ - 2a3fbe6: allow `minimal` in `reasoningEffort` for openai chat
1480
+
1481
+ ## 2.0.7
1482
+
1483
+ ### Patch Changes
1484
+
1485
+ - 4738f18: feat(openai): add flex processing support for gpt-5 models
1486
+ - 013d747: feat(openai): add verbosity parameter support for responses api
1487
+ - 35feee8: feat(openai): add priority processing support for gpt-5 models
1488
+
1489
+ ## 2.0.6
1490
+
1491
+ ### Patch Changes
1492
+
1493
+ - ad2255f: chore(docs): added gpt 5 models + removed deprecated models
1494
+ - 64bcb66: feat(provider/openai): models ids on chat
1495
+ - 1d42ff2: feat(provider/openai): models ids
1496
+
1497
+ ## 2.0.5
1498
+
1499
+ ### Patch Changes
1500
+
1501
+ - 6753a2e: feat(examples): add gpt-5 model examples and e2e tests
1502
+ - 6cba06a: feat (provider/openai): add reasoning model config
1503
+
1504
+ ## 2.0.4
1505
+
1506
+ ### Patch Changes
1507
+
1508
+ - 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.
1509
+
1510
+ ## 2.0.3
1511
+
1512
+ ### Patch Changes
1513
+
1514
+ - Updated dependencies [90d212f]
1515
+ - @ai-sdk/provider-utils@3.0.1
1516
+
1517
+ ## 2.0.2
1518
+
1519
+ ### Patch Changes
1520
+
1521
+ - 63e2016: fix(openai): missing url citations from web search tools
1522
+
1523
+ ## 2.0.1
1524
+
1525
+ ### Patch Changes
1526
+
1527
+ - bc45e29: feat(openai): add file_search_call support to responses api
1528
+
1529
+ ## 2.0.0
1530
+
1531
+ ### Major Changes
1532
+
1533
+ - d5f588f: AI SDK 5
1534
+ - cc62234: chore (provider/openai): switch default to openai responses api
1535
+ - 516be5b: ### Move Image Model Settings into generate options
1536
+
1537
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
1538
+
1539
+ Before
1540
+
1541
+ ```js
1542
+ await generateImage({
1543
+ model: luma.image('photon-flash-1', {
1544
+ maxImagesPerCall: 5,
1545
+ pollIntervalMillis: 500,
1546
+ }),
1547
+ prompt,
1548
+ n: 10,
1549
+ });
1550
+ ```
1551
+
1552
+ After
1553
+
1554
+ ```js
1555
+ await generateImage({
1556
+ model: luma.image('photon-flash-1'),
1557
+ prompt,
1558
+ n: 10,
1559
+ maxImagesPerCall: 5,
1560
+ providerOptions: {
1561
+ luma: { pollIntervalMillis: 5 },
1562
+ },
1563
+ });
1564
+ ```
1565
+
1566
+ Pull Request: https://github.com/vercel/ai/pull/6180
1567
+
1568
+ - efc3a62: fix (provider/openai): default strict mode to false
1569
+
1570
+ ### Patch Changes
1571
+
1572
+ - 948b755: chore(providers/openai): convert to providerOptions
1573
+ - d63bcbc: feat (provider/openai): o4 updates for responses api
1574
+ - 3bd3c0b: chore(providers/openai): update embedding model to use providerOptions
1575
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
1576
+ - 0eee6a8: Fix streaming and reconstruction of reasoning summary parts
1577
+ - 177526b: chore(providers/openai-transcription): switch to providerOptions
1578
+ - 2f542fa: Add reasoning-part-finish parts for reasoning models in the responses API
1579
+ - c15dfbf: feat (providers/openai): add gpt-image-1 model id to image settings
1580
+ - 3b1ea10: adding support for gpt-4o-search-preview and handling unsupported parameters
1581
+ - e2aceaf: feat: add raw chunk support
1582
+ - d2af019: feat (providers/openai): add gpt-4.1 models
1583
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
1584
+ - 209256d: Add missing file_search tool support to OpenAI Responses API
1585
+ - faea29f: fix (provider/openai): multi-step reasoning with text
1586
+ - 7032dc5: feat(openai): add priority processing service tier support
1587
+ - 870c5c0: feat (providers/openai): add o3 and o4-mini models
1588
+ - db72adc: chore(providers/openai): update completion model to use providerOptions
1589
+ - a166433: feat: add transcription with experimental_transcribe
1590
+ - 26735b5: chore(embedding-model): add v2 interface
1591
+ - 443d8ec: feat(embedding-model-v2): add response body field
1592
+ - 8d12da5: feat(provider/openai): add serviceTier option for flex processing
1593
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
1594
+ - d521cda: feat(openai): add file_search filters and update field names
1595
+ - 66962ed: fix(packages): export node10 compatible types
1596
+ - 442be08: fix: propagate openai transcription fixes
1597
+ - 0059ee2: fix(openai): update file_search fields to match API changes
1598
+ - 8493141: feat (providers/openai): add support for reasoning summaries
1599
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
1600
+ - 0a87932: core (ai): change transcription model mimeType to mediaType
1601
+ - 8aa9e20: feat: add speech with experimental_generateSpeech
1602
+ - 4617fab: chore(embedding-models): remove remaining settings
1603
+ - b5a0e32: fix (provider/openai): correct default for chat model strict mode
1604
+ - 136819b: chore(providers/openai): re-introduce logprobs as providerMetadata
1605
+ - 52ce942: chore(providers/openai): remove & enable strict compatibility by default
1606
+ - db64cbe: fix (provider/openai): multi-step reasoning with tool calls
1607
+ - b3c3450: feat (provider/openai): add support for encrypted_reasoning to responses api
1608
+ - 48249c4: Do not warn if empty text is the first part of a reasoning sequence
1609
+ - c7d3b2e: fix (provider/openai): push first reasoning chunk in output item added event
1610
+ - ad2a3d5: feat(provider/openai): add missing reasoning models to responses API
1611
+ - 9943464: feat(openai): add file_search_call.results support to include parameter
1612
+ - 0fa7414: chore (provider/openai): standardize on itemId in provider metadata
1613
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
1614
+
1615
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
1616
+
1617
+ ```js
1618
+ const prompt = 'Santa Claus driving a Cadillac';
1619
+
1620
+ const { providerMetadata } = await experimental_generateImage({
1621
+ model: openai.image('dall-e-3'),
1622
+ prompt,
1623
+ });
1624
+
1625
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
1626
+
1627
+ console.log({
1628
+ prompt,
1629
+ revisedPrompt,
1630
+ });
1631
+ ```
1632
+
1633
+ - fa758ea: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
1634
+ - d1a034f: feature: using Zod 4 for internal stuff
1635
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
1636
+ - e497698: fix (provider/openai): handle responses api errors
1637
+ - 928fadf: fix(providers/openai): logprobs for stream alongside completion model
1638
+ - 0a87932: fix (provider/openai): increase transcription model resilience
1639
+ - 5147e6e: chore(openai): remove simulateStreaming
1640
+ - 06bac05: fix (openai): structure output for responses model
1641
+ - 205077b: fix: improve Zod compatibility
1642
+ - c2b92cc: chore(openai): remove legacy function calling
1643
+ - 284353f: fix(providers/openai): zod parse error with function
1644
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
1645
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
1646
+ - 4af5233: Fix PDF file parts when passed as a string url or Uint8Array
1647
+ - 7df7a25: feat (providers/openai): support gpt-image-1 image generation
1648
+ - Updated dependencies
1649
+ - @ai-sdk/provider-utils@3.0.0
1650
+ - @ai-sdk/provider@2.0.0
1651
+
1652
+ ## 2.0.0-beta.16
1653
+
1654
+ ### Patch Changes
1655
+
1656
+ - Updated dependencies [88a8ee5]
1657
+ - @ai-sdk/provider-utils@3.0.0-beta.10
1658
+
1659
+ ## 2.0.0-beta.15
1660
+
1661
+ ### Patch Changes
1662
+
1663
+ - 9943464: feat(openai): add file_search_call.results support to include parameter
1664
+ - Updated dependencies [27deb4d]
1665
+ - @ai-sdk/provider@2.0.0-beta.2
1666
+ - @ai-sdk/provider-utils@3.0.0-beta.9
1667
+
1668
+ ## 2.0.0-beta.14
1669
+
1670
+ ### Patch Changes
1671
+
1672
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
1673
+ - 7032dc5: feat(openai): add priority processing service tier support
1674
+ - Updated dependencies [dd5fd43]
1675
+ - @ai-sdk/provider-utils@3.0.0-beta.8
1676
+
1677
+ ## 2.0.0-beta.13
1678
+
1679
+ ### Patch Changes
1680
+
1681
+ - Updated dependencies [e7fcc86]
1682
+ - @ai-sdk/provider-utils@3.0.0-beta.7
1683
+
1684
+ ## 2.0.0-beta.12
1685
+
1686
+ ### Patch Changes
1687
+
1688
+ - d521cda: feat(openai): add file_search filters and update field names
1689
+ - 0059ee2: fix(openai): update file_search fields to match API changes
1690
+ - Updated dependencies [ac34802]
1691
+ - @ai-sdk/provider-utils@3.0.0-beta.6
1692
+
1693
+ ## 2.0.0-beta.11
1694
+
1695
+ ### Patch Changes
1696
+
1697
+ - Updated dependencies
1698
+ - @ai-sdk/provider-utils@3.0.0-beta.5
1699
+
1700
+ ## 2.0.0-beta.10
1701
+
1702
+ ### Patch Changes
1703
+
1704
+ - 0fa7414: chore (provider/openai): standardize on itemId in provider metadata
1705
+ - 205077b: fix: improve Zod compatibility
1706
+ - Updated dependencies [205077b]
1707
+ - @ai-sdk/provider-utils@3.0.0-beta.4
1708
+
1709
+ ## 2.0.0-beta.9
1710
+
1711
+ ### Patch Changes
1712
+
1713
+ - faea29f: fix (provider/openai): multi-step reasoning with text
1714
+
1715
+ ## 2.0.0-beta.8
1716
+
1717
+ ### Patch Changes
1718
+
1719
+ - db64cbe: fix (provider/openai): multi-step reasoning with tool calls
1720
+ - Updated dependencies [05d2819]
1721
+ - @ai-sdk/provider-utils@3.0.0-beta.3
1722
+
1723
+ ## 2.0.0-beta.7
1724
+
1725
+ ### Patch Changes
1726
+
1727
+ - 209256d: Add missing file_search tool support to OpenAI Responses API
1728
+
1729
+ ## 2.0.0-beta.6
1730
+
1731
+ ### Patch Changes
1732
+
1733
+ - 0eee6a8: Fix streaming and reconstruction of reasoning summary parts
1734
+ - b5a0e32: fix (provider/openai): correct default for chat model strict mode
1735
+ - c7d3b2e: fix (provider/openai): push first reasoning chunk in output item added event
1736
+
1737
+ ## 2.0.0-beta.5
1738
+
1739
+ ### Patch Changes
1740
+
1741
+ - 48249c4: Do not warn if empty text is the first part of a reasoning sequence
1742
+ - e497698: fix (provider/openai): handle responses api errors
1743
+
1744
+ ## 2.0.0-beta.4
1745
+
1746
+ ### Patch Changes
1747
+
1748
+ - b3c3450: feat (provider/openai): add support for encrypted_reasoning to responses api
1749
+ - ad2a3d5: feat(provider/openai): add missing reasoning models to responses API
1750
+
1751
+ ## 2.0.0-beta.3
1752
+
1753
+ ### Major Changes
1754
+
1755
+ - efc3a62: fix (provider/openai): default strict mode to false
1756
+
1757
+ ## 2.0.0-beta.2
1758
+
1759
+ ### Patch Changes
1760
+
1761
+ - d1a034f: feature: using Zod 4 for internal stuff
1762
+ - Updated dependencies
1763
+ - @ai-sdk/provider-utils@3.0.0-beta.2
1764
+
1765
+ ## 2.0.0-beta.1
1766
+
1767
+ ### Major Changes
1768
+
1769
+ - cc62234: chore (provider/openai): switch default to openai responses api
1770
+
1771
+ ### Patch Changes
1772
+
1773
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
1774
+ - Updated dependencies
1775
+ - @ai-sdk/provider@2.0.0-beta.1
1776
+ - @ai-sdk/provider-utils@3.0.0-beta.1
1777
+
1778
+ ## 2.0.0-alpha.15
1779
+
1780
+ ### Patch Changes
1781
+
1782
+ - Updated dependencies
1783
+ - @ai-sdk/provider@2.0.0-alpha.15
1784
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
1785
+
1786
+ ## 2.0.0-alpha.14
1787
+
1788
+ ### Patch Changes
1789
+
1790
+ - Updated dependencies
1791
+ - @ai-sdk/provider@2.0.0-alpha.14
1792
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
1793
+
1794
+ ## 2.0.0-alpha.13
1795
+
1796
+ ### Patch Changes
1797
+
1798
+ - Updated dependencies [68ecf2f]
1799
+ - @ai-sdk/provider@2.0.0-alpha.13
1800
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
1801
+
1802
+ ## 2.0.0-alpha.12
1803
+
1804
+ ### Patch Changes
1805
+
1806
+ - 2f542fa: Add reasoning-part-finish parts for reasoning models in the responses API
1807
+ - e2aceaf: feat: add raw chunk support
1808
+ - Updated dependencies [e2aceaf]
1809
+ - @ai-sdk/provider@2.0.0-alpha.12
1810
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
1811
+
1812
+ ## 2.0.0-alpha.11
1813
+
1814
+ ### Patch Changes
1815
+
1816
+ - 8d12da5: feat(provider/openai): add serviceTier option for flex processing
1817
+ - Updated dependencies [c1e6647]
1818
+ - @ai-sdk/provider@2.0.0-alpha.11
1819
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
1820
+
1821
+ ## 2.0.0-alpha.10
1822
+
1823
+ ### Patch Changes
1824
+
1825
+ - Updated dependencies [c4df419]
1826
+ - @ai-sdk/provider@2.0.0-alpha.10
1827
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
1828
+
1829
+ ## 2.0.0-alpha.9
1830
+
1831
+ ### Patch Changes
1832
+
1833
+ - Updated dependencies [811dff3]
1834
+ - @ai-sdk/provider@2.0.0-alpha.9
1835
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
1836
+
1837
+ ## 2.0.0-alpha.8
1838
+
1839
+ ### Patch Changes
1840
+
1841
+ - 4af5233: Fix PDF file parts when passed as a string url or Uint8Array
1842
+ - Updated dependencies
1843
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
1844
+ - @ai-sdk/provider@2.0.0-alpha.8
1845
+
1846
+ ## 2.0.0-alpha.7
1847
+
1848
+ ### Patch Changes
1849
+
1850
+ - Updated dependencies [5c56081]
1851
+ - @ai-sdk/provider@2.0.0-alpha.7
1852
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
1853
+
1854
+ ## 2.0.0-alpha.6
1855
+
1856
+ ### Patch Changes
1857
+
1858
+ - Updated dependencies [0d2c085]
1859
+ - @ai-sdk/provider@2.0.0-alpha.6
1860
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
1861
+
1862
+ ## 2.0.0-alpha.4
1863
+
1864
+ ### Patch Changes
1865
+
1866
+ - Updated dependencies [dc714f3]
1867
+ - @ai-sdk/provider@2.0.0-alpha.4
1868
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
1869
+
1870
+ ## 2.0.0-alpha.3
1871
+
1872
+ ### Patch Changes
1873
+
1874
+ - Updated dependencies [6b98118]
1875
+ - @ai-sdk/provider@2.0.0-alpha.3
1876
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
1877
+
1878
+ ## 2.0.0-alpha.2
1879
+
1880
+ ### Patch Changes
1881
+
1882
+ - Updated dependencies [26535e0]
1883
+ - @ai-sdk/provider@2.0.0-alpha.2
1884
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
1885
+
1886
+ ## 2.0.0-alpha.1
1887
+
1888
+ ### Patch Changes
1889
+
1890
+ - Updated dependencies [3f2f00c]
1891
+ - @ai-sdk/provider@2.0.0-alpha.1
1892
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
1893
+
1894
+ ## 2.0.0-canary.20
1895
+
1896
+ ### Patch Changes
1897
+
1898
+ - Updated dependencies [faf8446]
1899
+ - @ai-sdk/provider-utils@3.0.0-canary.19
1900
+
1901
+ ## 2.0.0-canary.19
1902
+
1903
+ ### Patch Changes
1904
+
1905
+ - Updated dependencies [40acf9b]
1906
+ - @ai-sdk/provider-utils@3.0.0-canary.18
1907
+
1908
+ ## 2.0.0-canary.18
1909
+
1910
+ ### Major Changes
1911
+
1912
+ - 516be5b: ### Move Image Model Settings into generate options
1913
+
1914
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
1915
+
1916
+ Before
1917
+
1918
+ ```js
1919
+ await generateImage({
1920
+ model: luma.image('photon-flash-1', {
1921
+ maxImagesPerCall: 5,
1922
+ pollIntervalMillis: 500,
1923
+ }),
1924
+ prompt,
1925
+ n: 10,
1926
+ });
1927
+ ```
1928
+
1929
+ After
1930
+
1931
+ ```js
1932
+ await generateImage({
1933
+ model: luma.image('photon-flash-1'),
1934
+ prompt,
1935
+ n: 10,
1936
+ maxImagesPerCall: 5,
1937
+ providerOptions: {
1938
+ luma: { pollIntervalMillis: 5 },
1939
+ },
1940
+ });
1941
+ ```
1942
+
1943
+ Pull Request: https://github.com/vercel/ai/pull/6180
1944
+
1945
+ ### Patch Changes
1946
+
1947
+ - Updated dependencies [ea7a7c9]
1948
+ - @ai-sdk/provider-utils@3.0.0-canary.17
1949
+
1950
+ ## 2.0.0-canary.17
1951
+
1952
+ ### Patch Changes
1953
+
1954
+ - 52ce942: chore(providers/openai): remove & enable strict compatibility by default
1955
+ - Updated dependencies [87b828f]
1956
+ - @ai-sdk/provider-utils@3.0.0-canary.16
1957
+
1958
+ ## 2.0.0-canary.16
1959
+
1960
+ ### Patch Changes
1961
+
1962
+ - 928fadf: fix(providers/openai): logprobs for stream alongside completion model
1963
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
1964
+ - Updated dependencies
1965
+ - @ai-sdk/provider-utils@3.0.0-canary.15
1966
+ - @ai-sdk/provider@2.0.0-canary.14
1967
+
1968
+ ## 2.0.0-canary.15
1969
+
1970
+ ### Patch Changes
1971
+
1972
+ - 136819b: chore(providers/openai): re-introduce logprobs as providerMetadata
1973
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
1974
+
1975
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
1976
+
1977
+ ```js
1978
+ const prompt = 'Santa Claus driving a Cadillac';
1979
+
1980
+ const { providerMetadata } = await experimental_generateImage({
1981
+ model: openai.image('dall-e-3'),
1982
+ prompt,
1983
+ });
1984
+
1985
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
1986
+
1987
+ console.log({
1988
+ prompt,
1989
+ revisedPrompt,
1990
+ });
1991
+ ```
1992
+
1993
+ - 284353f: fix(providers/openai): zod parse error with function
1994
+ - Updated dependencies
1995
+ - @ai-sdk/provider-utils@3.0.0-canary.14
1996
+ - @ai-sdk/provider@2.0.0-canary.13
1997
+
1998
+ ## 2.0.0-canary.14
1999
+
2000
+ ### Patch Changes
2001
+
2002
+ - fa758ea: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
2003
+ - Updated dependencies
2004
+ - @ai-sdk/provider@2.0.0-canary.12
2005
+ - @ai-sdk/provider-utils@3.0.0-canary.13
2006
+
2007
+ ## 2.0.0-canary.13
2008
+
2009
+ ### Patch Changes
2010
+
2011
+ - 177526b: chore(providers/openai-transcription): switch to providerOptions
2012
+ - c15dfbf: feat (providers/openai): add gpt-image-1 model id to image settings
2013
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
2014
+ - 4617fab: chore(embedding-models): remove remaining settings
2015
+ - Updated dependencies
2016
+ - @ai-sdk/provider@2.0.0-canary.11
2017
+ - @ai-sdk/provider-utils@3.0.0-canary.12
2018
+
2019
+ ## 2.0.0-canary.12
2020
+
2021
+ ### Patch Changes
2022
+
2023
+ - db72adc: chore(providers/openai): update completion model to use providerOptions
2024
+ - 66962ed: fix(packages): export node10 compatible types
2025
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
2026
+ - 7df7a25: feat (providers/openai): support gpt-image-1 image generation
2027
+ - Updated dependencies
2028
+ - @ai-sdk/provider-utils@3.0.0-canary.11
2029
+ - @ai-sdk/provider@2.0.0-canary.10
2030
+
2031
+ ## 2.0.0-canary.11
2032
+
2033
+ ### Patch Changes
2034
+
2035
+ - 8493141: feat (providers/openai): add support for reasoning summaries
2036
+ - Updated dependencies [e86be6f]
2037
+ - @ai-sdk/provider@2.0.0-canary.9
2038
+ - @ai-sdk/provider-utils@3.0.0-canary.10
2039
+
2040
+ ## 2.0.0-canary.10
2041
+
2042
+ ### Patch Changes
2043
+
2044
+ - 3bd3c0b: chore(providers/openai): update embedding model to use providerOptions
2045
+ - Updated dependencies
2046
+ - @ai-sdk/provider@2.0.0-canary.8
2047
+ - @ai-sdk/provider-utils@3.0.0-canary.9
2048
+
2049
+ ## 2.0.0-canary.9
2050
+
2051
+ ### Patch Changes
2052
+
2053
+ - d63bcbc: feat (provider/openai): o4 updates for responses api
2054
+ - d2af019: feat (providers/openai): add gpt-4.1 models
2055
+ - 870c5c0: feat (providers/openai): add o3 and o4-mini models
2056
+ - 06bac05: fix (openai): structure output for responses model
2057
+
2058
+ ## 2.0.0-canary.8
2059
+
2060
+ ### Patch Changes
2061
+
2062
+ - 8aa9e20: feat: add speech with experimental_generateSpeech
2063
+ - Updated dependencies
2064
+ - @ai-sdk/provider-utils@3.0.0-canary.8
2065
+ - @ai-sdk/provider@2.0.0-canary.7
2066
+
2067
+ ## 2.0.0-canary.7
2068
+
2069
+ ### Patch Changes
2070
+
2071
+ - 26735b5: chore(embedding-model): add v2 interface
2072
+ - 443d8ec: feat(embedding-model-v2): add response body field
2073
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
2074
+ - Updated dependencies
2075
+ - @ai-sdk/provider@2.0.0-canary.6
2076
+ - @ai-sdk/provider-utils@3.0.0-canary.7
2077
+
2078
+ ## 2.0.0-canary.6
2079
+
2080
+ ### Patch Changes
2081
+
2082
+ - 948b755: chore(providers/openai): convert to providerOptions
2083
+ - 3b1ea10: adding support for gpt-4o-search-preview and handling unsupported parameters
2084
+ - 442be08: fix: propagate openai transcription fixes
2085
+ - 5147e6e: chore(openai): remove simulateStreaming
2086
+ - c2b92cc: chore(openai): remove legacy function calling
2087
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
2088
+ - Updated dependencies
2089
+ - @ai-sdk/provider@2.0.0-canary.5
2090
+ - @ai-sdk/provider-utils@3.0.0-canary.6
2091
+
2092
+ ## 2.0.0-canary.5
2093
+
2094
+ ### Patch Changes
2095
+
2096
+ - Updated dependencies [6f6bb89]
2097
+ - @ai-sdk/provider@2.0.0-canary.4
2098
+ - @ai-sdk/provider-utils@3.0.0-canary.5
2099
+
2100
+ ## 2.0.0-canary.4
2101
+
2102
+ ### Patch Changes
2103
+
2104
+ - Updated dependencies [d1a1aa1]
2105
+ - @ai-sdk/provider@2.0.0-canary.3
2106
+ - @ai-sdk/provider-utils@3.0.0-canary.4
2107
+
2108
+ ## 2.0.0-canary.3
2109
+
2110
+ ### Patch Changes
2111
+
2112
+ - a166433: feat: add transcription with experimental_transcribe
2113
+ - 0a87932: core (ai): change transcription model mimeType to mediaType
2114
+ - 0a87932: fix (provider/openai): increase transcription model resilience
2115
+ - Updated dependencies
2116
+ - @ai-sdk/provider-utils@3.0.0-canary.3
2117
+ - @ai-sdk/provider@2.0.0-canary.2
2118
+
2119
+ ## 2.0.0-canary.2
2120
+
2121
+ ### Patch Changes
2122
+
2123
+ - Updated dependencies
2124
+ - @ai-sdk/provider@2.0.0-canary.1
2125
+ - @ai-sdk/provider-utils@3.0.0-canary.2
2126
+
2127
+ ## 2.0.0-canary.1
2128
+
2129
+ ### Patch Changes
2130
+
2131
+ - Updated dependencies
2132
+ - @ai-sdk/provider-utils@3.0.0-canary.1
2133
+
2134
+ ## 2.0.0-canary.0
2135
+
2136
+ ### Major Changes
2137
+
2138
+ - d5f588f: AI SDK 5
2139
+
2140
+ ### Patch Changes
2141
+
2142
+ - Updated dependencies [d5f588f]
2143
+ - @ai-sdk/provider-utils@3.0.0-canary.0
2144
+ - @ai-sdk/provider@2.0.0-canary.0
2145
+
2146
+ ## 1.3.6
2147
+
2148
+ ### Patch Changes
2149
+
2150
+ - Updated dependencies [28be004]
2151
+ - @ai-sdk/provider-utils@2.2.3
2152
+
2153
+ ## 1.3.5
2154
+
2155
+ ### Patch Changes
2156
+
2157
+ - 52ed95f: fix (provider/openai): force web search tool
2158
+ - Updated dependencies [b01120e]
2159
+ - @ai-sdk/provider-utils@2.2.2
2160
+
2161
+ ## 1.3.4
2162
+
2163
+ ### Patch Changes
2164
+
2165
+ - b520dba: feat (provider/openai): add chatgpt-4o-latest model
2166
+
2167
+ ## 1.3.3
2168
+
2169
+ ### Patch Changes
2170
+
2171
+ - 24befd8: feat (provider/openai): add instructions to providerOptions
2172
+
2173
+ ## 1.3.2
2174
+
2175
+ ### Patch Changes
2176
+
2177
+ - db15028: feat (provider/openai): expose type for validating OpenAI responses provider options
2178
+
2179
+ ## 1.3.1
2180
+
2181
+ ### Patch Changes
2182
+
2183
+ - Updated dependencies [f10f0fa]
2184
+ - @ai-sdk/provider-utils@2.2.1
2185
+
2186
+ ## 1.3.0
2187
+
2188
+ ### Minor Changes
2189
+
2190
+ - 5bc638d: AI SDK 4.2
2191
+
2192
+ ### Patch Changes
2193
+
2194
+ - Updated dependencies [5bc638d]
2195
+ - @ai-sdk/provider@1.1.0
2196
+ - @ai-sdk/provider-utils@2.2.0
2197
+
2198
+ ## 1.2.8
2199
+
2200
+ ### Patch Changes
2201
+
2202
+ - 9f4f1bc: feat (provider/openai): pdf support for chat language models
2203
+
2204
+ ## 1.2.7
2205
+
2206
+ ### Patch Changes
2207
+
2208
+ - Updated dependencies [d0c4659]
2209
+ - @ai-sdk/provider-utils@2.1.15
2210
+
2211
+ ## 1.2.6
2212
+
2213
+ ### Patch Changes
2214
+
2215
+ - Updated dependencies [0bd5bc6]
2216
+ - @ai-sdk/provider@1.0.12
2217
+ - @ai-sdk/provider-utils@2.1.14
2218
+
2219
+ ## 1.2.5
2220
+
2221
+ ### Patch Changes
2222
+
2223
+ - 2e1101a: feat (provider/openai): pdf input support
2224
+ - Updated dependencies [2e1101a]
2225
+ - @ai-sdk/provider@1.0.11
2226
+ - @ai-sdk/provider-utils@2.1.13
2227
+
2228
+ ## 1.2.4
2229
+
2230
+ ### Patch Changes
2231
+
2232
+ - 523f128: feat (provider/openai): add strictSchemas option to responses model
2233
+
2234
+ ## 1.2.3
2235
+
2236
+ ### Patch Changes
2237
+
2238
+ - Updated dependencies [1531959]
2239
+ - @ai-sdk/provider-utils@2.1.12
2240
+
2241
+ ## 1.2.2
2242
+
2243
+ ### Patch Changes
2244
+
2245
+ - e3a389e: feat (provider/openai): support responses api
2246
+
2247
+ ## 1.2.1
2248
+
2249
+ ### Patch Changes
2250
+
2251
+ - e1d3d42: feat (ai): expose raw response body in generateText and generateObject
2252
+ - Updated dependencies [e1d3d42]
2253
+ - @ai-sdk/provider@1.0.10
2254
+ - @ai-sdk/provider-utils@2.1.11
2255
+
2256
+ ## 1.2.0
2257
+
2258
+ ### Minor Changes
2259
+
2260
+ - ede6d1b: feat (provider/azure): Add Azure image model support
2261
+
2262
+ ## 1.1.15
2263
+
2264
+ ### Patch Changes
2265
+
2266
+ - d8216f8: feat (provider/openai): add gpt-4.5-preview to model id set
2267
+
2268
+ ## 1.1.14
2269
+
2270
+ ### Patch Changes
2271
+
2272
+ - Updated dependencies [ddf9740]
2273
+ - @ai-sdk/provider@1.0.9
2274
+ - @ai-sdk/provider-utils@2.1.10
2275
+
2276
+ ## 1.1.13
2277
+
2278
+ ### Patch Changes
2279
+
2280
+ - Updated dependencies [2761f06]
2281
+ - @ai-sdk/provider@1.0.8
2282
+ - @ai-sdk/provider-utils@2.1.9
2283
+
2284
+ ## 1.1.12
2285
+
2286
+ ### Patch Changes
2287
+
2288
+ - ea159cb: chore (provider/openai): remove default streaming simulation for o1
2289
+
2290
+ ## 1.1.11
2291
+
2292
+ ### Patch Changes
2293
+
2294
+ - Updated dependencies [2e898b4]
2295
+ - @ai-sdk/provider-utils@2.1.8
2296
+
2297
+ ## 1.1.10
2298
+
2299
+ ### Patch Changes
2300
+
2301
+ - Updated dependencies [3ff4ef8]
2302
+ - @ai-sdk/provider-utils@2.1.7
2303
+
2304
+ ## 1.1.9
2305
+
2306
+ ### Patch Changes
2307
+
2308
+ - c55b81a: fix (provider/openai): fix o3-mini streaming
2309
+
2310
+ ## 1.1.8
2311
+
2312
+ ### Patch Changes
2313
+
2314
+ - 161be90: fix (provider/openai): fix model id typo
2315
+
2316
+ ## 1.1.7
2317
+
2318
+ ### Patch Changes
2319
+
2320
+ - 0a2f026: feat (provider/openai): add o3-mini
2321
+
2322
+ ## 1.1.6
2323
+
2324
+ ### Patch Changes
2325
+
2326
+ - d89c3b9: feat (provider): add image model support to provider specification
2327
+ - Updated dependencies [d89c3b9]
2328
+ - @ai-sdk/provider@1.0.7
2329
+ - @ai-sdk/provider-utils@2.1.6
2330
+
2331
+ ## 1.1.5
2332
+
2333
+ ### Patch Changes
2334
+
2335
+ - Updated dependencies [3a602ca]
2336
+ - @ai-sdk/provider-utils@2.1.5
2337
+
2338
+ ## 1.1.4
2339
+
2340
+ ### Patch Changes
2341
+
2342
+ - Updated dependencies [066206e]
2343
+ - @ai-sdk/provider-utils@2.1.4
2344
+
2345
+ ## 1.1.3
2346
+
2347
+ ### Patch Changes
2348
+
2349
+ - Updated dependencies [39e5c1f]
2350
+ - @ai-sdk/provider-utils@2.1.3
2351
+
2352
+ ## 1.1.2
2353
+
2354
+ ### Patch Changes
2355
+
2356
+ - 3a58a2e: feat (ai/core): throw NoImageGeneratedError from generateImage when no predictions are returned.
2357
+ - Updated dependencies
2358
+ - @ai-sdk/provider-utils@2.1.2
2359
+ - @ai-sdk/provider@1.0.6
2360
+
2361
+ ## 1.1.1
2362
+
2363
+ ### Patch Changes
2364
+
2365
+ - e7a9ec9: feat (provider-utils): include raw value in json parse results
2366
+ - Updated dependencies
2367
+ - @ai-sdk/provider-utils@2.1.1
2368
+ - @ai-sdk/provider@1.0.5
2369
+
2370
+ ## 1.1.0
2371
+
2372
+ ### Minor Changes
2373
+
2374
+ - 62ba5ad: release: AI SDK 4.1
2375
+
2376
+ ### Patch Changes
2377
+
2378
+ - Updated dependencies [62ba5ad]
2379
+ - @ai-sdk/provider-utils@2.1.0
2380
+
2381
+ ## 1.0.20
2382
+
2383
+ ### Patch Changes
2384
+
2385
+ - Updated dependencies [00114c5]
2386
+ - @ai-sdk/provider-utils@2.0.8
2387
+
2388
+ ## 1.0.19
2389
+
2390
+ ### Patch Changes
2391
+
2392
+ - 218d001: feat (provider): Add maxImagesPerCall setting to all image providers.
2393
+
2394
+ ## 1.0.18
2395
+
2396
+ ### Patch Changes
2397
+
2398
+ - fe816e4: fix (provider/openai): streamObject with o1
2399
+
2400
+ ## 1.0.17
2401
+
2402
+ ### Patch Changes
2403
+
2404
+ - ba62cf2: feat (provider/openai): automatically map maxTokens to max_completion_tokens for reasoning models
2405
+ - 3c3fae8: fix (provider/openai): add o1-mini-2024-09-12 and o1-preview-2024-09-12 configurations
2406
+
2407
+ ## 1.0.16
2408
+
2409
+ ### Patch Changes
2410
+
2411
+ - Updated dependencies
2412
+ - @ai-sdk/provider-utils@2.0.7
2413
+
2414
+ ## 1.0.15
2415
+
2416
+ ### Patch Changes
2417
+
2418
+ - f8c6acb: feat (provider/openai): automatically simulate streaming for reasoning models
2419
+ - d0041f7: feat (provider/openai): improved system message support for reasoning models
2420
+ - 4d2f97b: feat (provider/openai): improve automatic setting removal for reasoning models
2421
+
2422
+ ## 1.0.14
2423
+
2424
+ ### Patch Changes
2425
+
2426
+ - 19a2ce7: feat (ai/core): add aspectRatio and seed options to generateImage
2427
+ - 6337688: feat: change image generation errors to warnings
2428
+ - Updated dependencies
2429
+ - @ai-sdk/provider@1.0.4
2430
+ - @ai-sdk/provider-utils@2.0.6
2431
+
2432
+ ## 1.0.13
2433
+
2434
+ ### Patch Changes
2435
+
2436
+ - b19aa82: feat (provider/openai): add predicted outputs token usage
2437
+
2438
+ ## 1.0.12
2439
+
2440
+ ### Patch Changes
2441
+
2442
+ - a4241ff: feat (provider/openai): add o3 reasoning model support
2443
+
2444
+ ## 1.0.11
2445
+
2446
+ ### Patch Changes
2447
+
2448
+ - 5ed5e45: chore (config): Use ts-library.json tsconfig for no-UI libs.
2449
+ - Updated dependencies [5ed5e45]
2450
+ - @ai-sdk/provider-utils@2.0.5
2451
+ - @ai-sdk/provider@1.0.3
2452
+
2453
+ ## 1.0.10
2454
+
2455
+ ### Patch Changes
2456
+
2457
+ - d4fad4e: fix (provider/openai): fix reasoning model detection
2458
+
2459
+ ## 1.0.9
2460
+
2461
+ ### Patch Changes
2462
+
2463
+ - 3fab0fb: feat (provider/openai): support reasoning_effort setting
2464
+ - e956eed: feat (provider/openai): update model list and add o1
2465
+ - 6faab13: feat (provider/openai): simulated streaming setting
2466
+
2467
+ ## 1.0.8
2468
+
2469
+ ### Patch Changes
2470
+
2471
+ - 09a9cab: feat (ai/core): add experimental generateImage function
2472
+ - Updated dependencies [09a9cab]
2473
+ - @ai-sdk/provider@1.0.2
2474
+ - @ai-sdk/provider-utils@2.0.4
2475
+
2476
+ ## 1.0.7
2477
+
2478
+ ### Patch Changes
2479
+
2480
+ - Updated dependencies [0984f0b]
2481
+ - @ai-sdk/provider-utils@2.0.3
2482
+
2483
+ ## 1.0.6
2484
+
2485
+ ### Patch Changes
2486
+
2487
+ - a9a19cb: fix (provider/openai,groq): prevent sending duplicate tool calls
2488
+
2489
+ ## 1.0.5
2490
+
2491
+ ### Patch Changes
2492
+
2493
+ - fc18132: feat (ai/core): experimental output for generateText
2494
+
2495
+ ## 1.0.4
2496
+
2497
+ ### Patch Changes
2498
+
2499
+ - Updated dependencies [b446ae5]
2500
+ - @ai-sdk/provider@1.0.1
2501
+ - @ai-sdk/provider-utils@2.0.2
2502
+
2503
+ ## 1.0.3
2504
+
2505
+ ### Patch Changes
2506
+
2507
+ - b748dfb: feat (providers): update model lists
2508
+
2509
+ ## 1.0.2
2510
+
2511
+ ### Patch Changes
2512
+
2513
+ - Updated dependencies [c3ab5de]
2514
+ - @ai-sdk/provider-utils@2.0.1
2515
+
2516
+ ## 1.0.1
2517
+
2518
+ ### Patch Changes
2519
+
2520
+ - 5e6419a: feat (provider/openai): support streaming for reasoning models
2521
+
2522
+ ## 1.0.0
2523
+
2524
+ ### Major Changes
2525
+
2526
+ - 66060f7: chore (release): bump major version to 4.0
2527
+ - 79644e9: chore (provider/openai): remove OpenAI facade
2528
+ - 0d3d3f5: chore (providers): remove baseUrl option
2529
+
2530
+ ### Patch Changes
2531
+
2532
+ - Updated dependencies
2533
+ - @ai-sdk/provider-utils@2.0.0
2534
+ - @ai-sdk/provider@1.0.0
2535
+
2536
+ ## 1.0.0-canary.3
2537
+
2538
+ ### Patch Changes
2539
+
2540
+ - Updated dependencies [8426f55]
2541
+ - @ai-sdk/provider-utils@2.0.0-canary.3
2542
+
2543
+ ## 1.0.0-canary.2
2544
+
2545
+ ### Patch Changes
2546
+
2547
+ - Updated dependencies
2548
+ - @ai-sdk/provider-utils@2.0.0-canary.2
2549
+
2550
+ ## 1.0.0-canary.1
2551
+
2552
+ ### Major Changes
2553
+
2554
+ - 79644e9: chore (provider/openai): remove OpenAI facade
2555
+ - 0d3d3f5: chore (providers): remove baseUrl option
2556
+
2557
+ ### Patch Changes
2558
+
2559
+ - Updated dependencies [b1da952]
2560
+ - @ai-sdk/provider-utils@2.0.0-canary.1
2561
+
2562
+ ## 1.0.0-canary.0
2563
+
2564
+ ### Major Changes
2565
+
2566
+ - 66060f7: chore (release): bump major version to 4.0
2567
+
2568
+ ### Patch Changes
2569
+
2570
+ - Updated dependencies
2571
+ - @ai-sdk/provider-utils@2.0.0-canary.0
2572
+ - @ai-sdk/provider@1.0.0-canary.0
2573
+
2574
+ ## 0.0.72
2575
+
2576
+ ### Patch Changes
2577
+
2578
+ - 0bc4115: feat (provider/openai): support predicted outputs
2579
+
2580
+ ## 0.0.71
2581
+
2582
+ ### Patch Changes
2583
+
2584
+ - 54a3a59: fix (provider/openai): support object-json mode without schema
2585
+
2586
+ ## 0.0.70
2587
+
2588
+ ### Patch Changes
2589
+
2590
+ - 3b1b69a: feat: provider-defined tools
2591
+ - Updated dependencies
2592
+ - @ai-sdk/provider-utils@1.0.22
2593
+ - @ai-sdk/provider@0.0.26
2594
+
2595
+ ## 0.0.69
2596
+
2597
+ ### Patch Changes
2598
+
2599
+ - b9b0d7b: feat (ai): access raw request body
2600
+ - Updated dependencies [b9b0d7b]
2601
+ - @ai-sdk/provider@0.0.25
2602
+ - @ai-sdk/provider-utils@1.0.21
2603
+
2604
+ ## 0.0.68
2605
+
2606
+ ### Patch Changes
2607
+
2608
+ - 741ca51: feat (provider/openai): support mp3 and wav audio inputs
2609
+
2610
+ ## 0.0.67
2611
+
2612
+ ### Patch Changes
2613
+
2614
+ - 39fccee: feat (provider/openai): provider name can be changed for 3rd party openai compatible providers
2615
+
2616
+ ## 0.0.66
2617
+
2618
+ ### Patch Changes
2619
+
2620
+ - 3f29c10: feat (provider/openai): support metadata field for distillation
2621
+
2622
+ ## 0.0.65
2623
+
2624
+ ### Patch Changes
2625
+
2626
+ - e8aed44: Add OpenAI cached prompt tokens to experimental_providerMetadata for generateText and streamText
2627
+
2628
+ ## 0.0.64
2629
+
2630
+ ### Patch Changes
2631
+
2632
+ - 5aa576d: feat (provider/openai): support store parameter for distillation
2633
+
2634
+ ## 0.0.63
2635
+
2636
+ ### Patch Changes
2637
+
2638
+ - Updated dependencies [d595d0d]
2639
+ - @ai-sdk/provider@0.0.24
2640
+ - @ai-sdk/provider-utils@1.0.20
2641
+
2642
+ ## 0.0.62
2643
+
2644
+ ### Patch Changes
2645
+
2646
+ - 7efa867: feat (provider/openai): simulated streaming for reasoning models
2647
+
2648
+ ## 0.0.61
2649
+
2650
+ ### Patch Changes
2651
+
2652
+ - 8132a60: feat (provider/openai): support reasoning token usage and max_completion_tokens
2653
+
2654
+ ## 0.0.60
2655
+
2656
+ ### Patch Changes
2657
+
2658
+ - Updated dependencies [273f696]
2659
+ - @ai-sdk/provider-utils@1.0.19
2660
+
2661
+ ## 0.0.59
2662
+
2663
+ ### Patch Changes
2664
+
2665
+ - a0991ec: feat (provider/openai): add o1-preview and o1-mini models
2666
+
2667
+ ## 0.0.58
2668
+
2669
+ ### Patch Changes
2670
+
2671
+ - e0c36bd: feat (provider/openai): support image detail
2672
+
2673
+ ## 0.0.57
2674
+
2675
+ ### Patch Changes
2676
+
2677
+ - d1aaeae: feat (provider/openai): support ai sdk image download
2678
+
2679
+ ## 0.0.56
2680
+
2681
+ ### Patch Changes
2682
+
2683
+ - 03313cd: feat (ai): expose response id, response model, response timestamp in telemetry and api
2684
+ - Updated dependencies
2685
+ - @ai-sdk/provider-utils@1.0.18
2686
+ - @ai-sdk/provider@0.0.23
2687
+
2688
+ ## 0.0.55
2689
+
2690
+ ### Patch Changes
2691
+
2692
+ - 28cbf2e: fix (provider/openai): support tool call deltas when arguments are sent in the first chunk
2693
+
2694
+ ## 0.0.54
2695
+
2696
+ ### Patch Changes
2697
+
2698
+ - 26515cb: feat (ai/provider): introduce ProviderV1 specification
2699
+ - Updated dependencies [26515cb]
2700
+ - @ai-sdk/provider@0.0.22
2701
+ - @ai-sdk/provider-utils@1.0.17
2702
+
2703
+ ## 0.0.53
2704
+
2705
+ ### Patch Changes
2706
+
2707
+ - Updated dependencies [09f895f]
2708
+ - @ai-sdk/provider-utils@1.0.16
2709
+
2710
+ ## 0.0.52
2711
+
2712
+ ### Patch Changes
2713
+
2714
+ - d5b6a15: feat (provider/openai): support partial usage information
2715
+
2716
+ ## 0.0.51
2717
+
2718
+ ### Patch Changes
2719
+
2720
+ - Updated dependencies [d67fa9c]
2721
+ - @ai-sdk/provider-utils@1.0.15
2722
+
2723
+ ## 0.0.50
2724
+
2725
+ ### Patch Changes
2726
+
2727
+ - Updated dependencies [f2c025e]
2728
+ - @ai-sdk/provider@0.0.21
2729
+ - @ai-sdk/provider-utils@1.0.14
2730
+
2731
+ ## 0.0.49
2732
+
2733
+ ### Patch Changes
2734
+
2735
+ - f42d9bd: fix (provider/openai): support OpenRouter streaming errors
2736
+
2737
+ ## 0.0.48
2738
+
2739
+ ### Patch Changes
2740
+
2741
+ - Updated dependencies [6ac355e]
2742
+ - @ai-sdk/provider@0.0.20
2743
+ - @ai-sdk/provider-utils@1.0.13
2744
+
2745
+ ## 0.0.47
2746
+
2747
+ ### Patch Changes
2748
+
2749
+ - 4ffbaee: fix (provider/openai): fix strict flag for structured outputs with tools
2750
+ - dd712ac: fix: use FetchFunction type to prevent self-reference
2751
+ - Updated dependencies [dd712ac]
2752
+ - @ai-sdk/provider-utils@1.0.12
2753
+
2754
+ ## 0.0.46
2755
+
2756
+ ### Patch Changes
2757
+
2758
+ - 89b18ca: fix (ai/provider): send finish reason 'unknown' by default
2759
+ - Updated dependencies [dd4a0f5]
2760
+ - @ai-sdk/provider@0.0.19
2761
+ - @ai-sdk/provider-utils@1.0.11
2762
+
2763
+ ## 0.0.45
2764
+
2765
+ ### Patch Changes
2766
+
2767
+ - Updated dependencies
2768
+ - @ai-sdk/provider-utils@1.0.10
2769
+ - @ai-sdk/provider@0.0.18
2770
+
2771
+ ## 0.0.44
2772
+
2773
+ ### Patch Changes
2774
+
2775
+ - 029af4c: feat (ai/core): support schema name & description in generateObject & streamObject
2776
+ - Updated dependencies [029af4c]
2777
+ - @ai-sdk/provider@0.0.17
2778
+ - @ai-sdk/provider-utils@1.0.9
2779
+
2780
+ ## 0.0.43
2781
+
2782
+ ### Patch Changes
2783
+
2784
+ - d58517b: feat (ai/openai): structured outputs
2785
+ - c0a73ee: feat (provider/openai): add gpt-4o-2024-08-06 to list of supported models
2786
+ - Updated dependencies [d58517b]
2787
+ - @ai-sdk/provider@0.0.16
2788
+ - @ai-sdk/provider-utils@1.0.8
2789
+
2790
+ ## 0.0.42
2791
+
2792
+ ### Patch Changes
2793
+
2794
+ - Updated dependencies [96aed25]
2795
+ - @ai-sdk/provider@0.0.15
2796
+ - @ai-sdk/provider-utils@1.0.7
2797
+
2798
+ ## 0.0.41
2799
+
2800
+ ### Patch Changes
2801
+
2802
+ - 7a2eb27: feat (provider/openai): make role nullish to enhance provider support
2803
+ - Updated dependencies
2804
+ - @ai-sdk/provider-utils@1.0.6
2805
+
2806
+ ## 0.0.40
2807
+
2808
+ ### Patch Changes
2809
+
2810
+ - Updated dependencies [a8d1c9e9]
2811
+ - @ai-sdk/provider-utils@1.0.5
2812
+ - @ai-sdk/provider@0.0.14
2813
+
2814
+ ## 0.0.39
2815
+
2816
+ ### Patch Changes
2817
+
2818
+ - Updated dependencies [4f88248f]
2819
+ - @ai-sdk/provider-utils@1.0.4
2820
+
2821
+ ## 0.0.38
2822
+
2823
+ ### Patch Changes
2824
+
2825
+ - 2b9da0f0: feat (core): support stopSequences setting.
2826
+ - 909b9d27: feat (ai/openai): Support legacy function calls
2827
+ - a5b58845: feat (core): support topK setting
2828
+ - 4aa8deb3: feat (provider): support responseFormat setting in provider api
2829
+ - 13b27ec6: chore (ai/core): remove grammar mode
2830
+ - Updated dependencies
2831
+ - @ai-sdk/provider@0.0.13
2832
+ - @ai-sdk/provider-utils@1.0.3
2833
+
2834
+ ## 0.0.37
2835
+
2836
+ ### Patch Changes
2837
+
2838
+ - 89947fc5: chore (provider/openai): update model list for type-ahead support
2839
+
2840
+ ## 0.0.36
2841
+
2842
+ ### Patch Changes
2843
+
2844
+ - b7290943: feat (ai/core): add token usage to embed and embedMany
2845
+ - Updated dependencies [b7290943]
2846
+ - @ai-sdk/provider@0.0.12
2847
+ - @ai-sdk/provider-utils@1.0.2
2848
+
2849
+ ## 0.0.35
2850
+
2851
+ ### Patch Changes
2852
+
2853
+ - Updated dependencies [d481729f]
2854
+ - @ai-sdk/provider-utils@1.0.1
2855
+
2856
+ ## 0.0.34
2857
+
2858
+ ### Patch Changes
2859
+
2860
+ - 5edc6110: feat (ai/core): add custom request header support
2861
+ - Updated dependencies
2862
+ - @ai-sdk/provider@0.0.11
2863
+ - @ai-sdk/provider-utils@1.0.0
2864
+
2865
+ ## 0.0.33
2866
+
2867
+ ### Patch Changes
2868
+
2869
+ - Updated dependencies [02f6a088]
2870
+ - @ai-sdk/provider-utils@0.0.16
2871
+
2872
+ ## 0.0.32
2873
+
2874
+ ### Patch Changes
2875
+
2876
+ - 1b37b8b9: fix (@ai-sdk/openai): only send logprobs settings when logprobs are requested
2877
+
2878
+ ## 0.0.31
2879
+
2880
+ ### Patch Changes
2881
+
2882
+ - eba071dd: feat (@ai-sdk/azure): add azure openai completion support
2883
+ - 1ea890fe: feat (@ai-sdk/azure): add azure openai completion support
2884
+
2885
+ ## 0.0.30
2886
+
2887
+ ### Patch Changes
2888
+
2889
+ - Updated dependencies
2890
+ - @ai-sdk/provider-utils@0.0.15
2891
+
2892
+ ## 0.0.29
2893
+
2894
+ ### Patch Changes
2895
+
2896
+ - 4728c37f: feat (core): add text embedding model support to provider registry
2897
+ - 7910ae84: feat (providers): support custom fetch implementations
2898
+ - Updated dependencies [7910ae84]
2899
+ - @ai-sdk/provider-utils@0.0.14
2900
+
2901
+ ## 0.0.28
2902
+
2903
+ ### Patch Changes
2904
+
2905
+ - f9db8fd6: feat (@ai-sdk/openai): add parallelToolCalls setting
2906
+
2907
+ ## 0.0.27
2908
+
2909
+ ### Patch Changes
2910
+
2911
+ - fc9552ec: fix (@ai-sdk/azure): allow for nullish delta
2912
+
2913
+ ## 0.0.26
2914
+
2915
+ ### Patch Changes
2916
+
2917
+ - 7530f861: fix (@ai-sdk/openai): add internal dist to bundle
2918
+
2919
+ ## 0.0.25
2920
+
2921
+ ### Patch Changes
2922
+
2923
+ - 8b1362a7: chore (@ai-sdk/openai): expose models under /internal for reuse in other providers
2924
+
2925
+ ## 0.0.24
2926
+
2927
+ ### Patch Changes
2928
+
2929
+ - 0e78960c: fix (@ai-sdk/openai): make function name and arguments nullish
2930
+
2931
+ ## 0.0.23
2932
+
2933
+ ### Patch Changes
2934
+
2935
+ - a68fe74a: fix (@ai-sdk/openai): allow null tool_calls value.
2936
+
2937
+ ## 0.0.22
2938
+
2939
+ ### Patch Changes
2940
+
2941
+ - Updated dependencies [102ca22f]
2942
+ - @ai-sdk/provider@0.0.10
2943
+ - @ai-sdk/provider-utils@0.0.13
2944
+
2945
+ ## 0.0.21
2946
+
2947
+ ### Patch Changes
2948
+
2949
+ - fca7d026: feat (provider/openai): support streaming tool calls that are sent in one chunk
2950
+ - Updated dependencies
2951
+ - @ai-sdk/provider@0.0.9
2952
+ - @ai-sdk/provider-utils@0.0.12
2953
+
2954
+ ## 0.0.20
2955
+
2956
+ ### Patch Changes
2957
+
2958
+ - a1d08f3e: fix (provider/openai): handle error chunks when streaming
2959
+
2960
+ ## 0.0.19
2961
+
2962
+ ### Patch Changes
2963
+
2964
+ - beb8b739: fix (provider/openai): return unknown finish reasons as unknown
2965
+
2966
+ ## 0.0.18
2967
+
2968
+ ### Patch Changes
2969
+
2970
+ - fb42e760: feat (provider/openai): send user message content as text when possible
2971
+
2972
+ ## 0.0.17
2973
+
2974
+ ### Patch Changes
2975
+
2976
+ - f39c0dd2: feat (provider): implement toolChoice support
2977
+ - Updated dependencies [f39c0dd2]
2978
+ - @ai-sdk/provider@0.0.8
2979
+ - @ai-sdk/provider-utils@0.0.11
2980
+
2981
+ ## 0.0.16
2982
+
2983
+ ### Patch Changes
2984
+
2985
+ - 2b18fa11: fix (provider/openai): remove object type validation
2986
+
2987
+ ## 0.0.15
2988
+
2989
+ ### Patch Changes
2990
+
2991
+ - 24683b72: fix (providers): Zod is required dependency
2992
+ - Updated dependencies [8e780288]
2993
+ - @ai-sdk/provider@0.0.7
2994
+ - @ai-sdk/provider-utils@0.0.10
2995
+
2996
+ ## 0.0.14
2997
+
2998
+ ### Patch Changes
2999
+
3000
+ - Updated dependencies
3001
+ - @ai-sdk/provider@0.0.6
3002
+ - @ai-sdk/provider-utils@0.0.9
3003
+
3004
+ ## 0.0.13
3005
+
3006
+ ### Patch Changes
3007
+
3008
+ - 4e3c922: fix (provider/openai): introduce compatibility mode in which "stream_options" are not sent
3009
+
3010
+ ## 0.0.12
3011
+
3012
+ ### Patch Changes
3013
+
3014
+ - 6f48839: feat (provider/openai): add gpt-4o to the list of supported models
3015
+ - 1009594: feat (provider/openai): set stream_options/include_usage to true when streaming
3016
+ - 0f6bc4e: feat (ai/core): add embed function
3017
+ - Updated dependencies [0f6bc4e]
3018
+ - @ai-sdk/provider@0.0.5
3019
+ - @ai-sdk/provider-utils@0.0.8
3020
+
3021
+ ## 0.0.11
3022
+
3023
+ ### Patch Changes
3024
+
3025
+ - Updated dependencies [325ca55]
3026
+ - @ai-sdk/provider@0.0.4
3027
+ - @ai-sdk/provider-utils@0.0.7
3028
+
3029
+ ## 0.0.10
3030
+
3031
+ ### Patch Changes
3032
+
3033
+ - Updated dependencies [276f22b]
3034
+ - @ai-sdk/provider-utils@0.0.6
3035
+
3036
+ ## 0.0.9
3037
+
3038
+ ### Patch Changes
3039
+
3040
+ - Updated dependencies [41d5736]
3041
+ - @ai-sdk/provider@0.0.3
3042
+ - @ai-sdk/provider-utils@0.0.5
3043
+
3044
+ ## 0.0.8
3045
+
3046
+ ### Patch Changes
3047
+
3048
+ - Updated dependencies [56ef84a]
3049
+ - @ai-sdk/provider-utils@0.0.4
3050
+
3051
+ ## 0.0.7
3052
+
3053
+ ### Patch Changes
3054
+
3055
+ - 0833e19: Allow optional content to support Fireworks function calling.
3056
+
3057
+ ## 0.0.6
3058
+
3059
+ ### Patch Changes
3060
+
3061
+ - d6431ae: ai/core: add logprobs support (thanks @SamStenner for the contribution)
3062
+ - 25f3350: ai/core: add support for getting raw response headers.
3063
+ - Updated dependencies
3064
+ - @ai-sdk/provider@0.0.2
3065
+ - @ai-sdk/provider-utils@0.0.3
3066
+
3067
+ ## 0.0.5
3068
+
3069
+ ### Patch Changes
3070
+
3071
+ - 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.
3072
+ - Updated dependencies [eb150a6]
3073
+ - @ai-sdk/provider-utils@0.0.2
3074
+ - @ai-sdk/provider@0.0.1
3075
+
3076
+ ## 0.0.4
3077
+
3078
+ ### Patch Changes
3079
+
3080
+ - c6fc35b: Add custom header and OpenAI project support.
3081
+
3082
+ ## 0.0.3
3083
+
3084
+ ### Patch Changes
3085
+
3086
+ - ab60b18: Simplified model construction by directly calling provider functions. Add create... functions to create provider instances.
3087
+
3088
+ ## 0.0.2
3089
+
3090
+ ### Patch Changes
3091
+
3092
+ - 2bff460: Fix build for release.
3093
+
3094
+ ## 0.0.1
3095
+
3096
+ ### Patch Changes
3097
+
3098
+ - 7b8791d: Support streams with 'chat.completion' objects.
3099
+ - 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.
3100
+ - Updated dependencies [7b8791d]
3101
+ - @ai-sdk/provider-utils@0.0.1