@ai-sdk/openai 0.0.0-85f9a635-20240518005312 → 0.0.0-98261322-20260122142521

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