@ai-sdk/openai 1.3.22 → 2.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,113 +1,365 @@
1
1
  # @ai-sdk/openai
2
2
 
3
- ## 1.3.22
3
+ ## 2.0.0-alpha.10
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [d87b9d1]
8
- - @ai-sdk/provider-utils@2.2.8
7
+ - Updated dependencies [c4df419]
8
+ - @ai-sdk/provider@2.0.0-alpha.10
9
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
9
10
 
10
- ## 1.3.21
11
+ ## 2.0.0-alpha.9
11
12
 
12
13
  ### Patch Changes
13
14
 
14
- - 5caac29: fix(providers/openai): zod parse error with function
15
+ - Updated dependencies [811dff3]
16
+ - @ai-sdk/provider@2.0.0-alpha.9
17
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
15
18
 
16
- ## 1.3.20
19
+ ## 2.0.0-alpha.8
17
20
 
18
21
  ### Patch Changes
19
22
 
20
- - dd5450e: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
23
+ - 4af5233: Fix PDF file parts when passed as a string url or Uint8Array
24
+ - Updated dependencies [4fef487]
25
+ - Updated dependencies [9222aeb]
26
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
27
+ - @ai-sdk/provider@2.0.0-alpha.8
21
28
 
22
- ## 1.3.19
29
+ ## 2.0.0-alpha.7
23
30
 
24
31
  ### Patch Changes
25
32
 
26
- - 3cabda9: feat (providers/openai): add gpt-image-1 model id to image settings
33
+ - Updated dependencies [5c56081]
34
+ - @ai-sdk/provider@2.0.0-alpha.7
35
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
27
36
 
28
- ## 1.3.18
37
+ ## 2.0.0-alpha.6
29
38
 
30
39
  ### Patch Changes
31
40
 
32
- - 74cd391: feat (providers/openai): support gpt-image-1 image generation
41
+ - Updated dependencies [0d2c085]
42
+ - @ai-sdk/provider@2.0.0-alpha.6
43
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
33
44
 
34
- ## 1.3.17
45
+ ## 2.0.0-alpha.4
35
46
 
36
47
  ### Patch Changes
37
48
 
38
- - ca7bce3: feat (providers/openai): add support for reasoning summaries
49
+ - Updated dependencies [dc714f3]
50
+ - @ai-sdk/provider@2.0.0-alpha.4
51
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
39
52
 
40
- ## 1.3.16
53
+ ## 2.0.0-alpha.3
41
54
 
42
55
  ### Patch Changes
43
56
 
44
- - bd6e457: feat (provider/openai): o4 updates for responses api
57
+ - Updated dependencies [6b98118]
58
+ - @ai-sdk/provider@2.0.0-alpha.3
59
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
45
60
 
46
- ## 1.3.15
61
+ ## 2.0.0-alpha.2
47
62
 
48
63
  ### Patch Changes
49
64
 
50
- - 98d954e: feat (providers/openai): add o3 and o4-mini models
65
+ - Updated dependencies [26535e0]
66
+ - @ai-sdk/provider@2.0.0-alpha.2
67
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
51
68
 
52
- ## 1.3.14
69
+ ## 2.0.0-alpha.1
53
70
 
54
71
  ### Patch Changes
55
72
 
56
- - 980141c: fix (openai): structure output for responses model
73
+ - Updated dependencies [3f2f00c]
74
+ - @ai-sdk/provider@2.0.0-alpha.1
75
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
57
76
 
58
- ## 1.3.13
77
+ ## 2.0.0-canary.20
59
78
 
60
79
  ### Patch Changes
61
80
 
62
- - 75b9849: adding support for gpt-4o-search-preview and handling unsupported parameters
81
+ - Updated dependencies [faf8446]
82
+ - @ai-sdk/provider-utils@3.0.0-canary.19
63
83
 
64
- ## 1.3.12
84
+ ## 2.0.0-canary.19
65
85
 
66
86
  ### Patch Changes
67
87
 
68
- - 575339f: feat (providers/openai): add gpt-4.1 models
88
+ - Updated dependencies [40acf9b]
89
+ - @ai-sdk/provider-utils@3.0.0-canary.18
69
90
 
70
- ## 1.3.11
91
+ ## 2.0.0-canary.18
92
+
93
+ ### Major Changes
94
+
95
+ - 516be5b: ### Move Image Model Settings into generate options
96
+
97
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
98
+
99
+ Before
100
+
101
+ ```js
102
+ await generateImage({
103
+ model: luma.image('photon-flash-1', {
104
+ maxImagesPerCall: 5,
105
+ pollIntervalMillis: 500,
106
+ }),
107
+ prompt,
108
+ n: 10,
109
+ });
110
+ ```
111
+
112
+ After
113
+
114
+ ```js
115
+ await generateImage({
116
+ model: luma.image('photon-flash-1'),
117
+ prompt,
118
+ n: 10,
119
+ maxImagesPerCall: 5,
120
+ providerOptions: {
121
+ luma: { pollIntervalMillis: 5 },
122
+ },
123
+ });
124
+ ```
125
+
126
+ Pull Request: https://github.com/vercel/ai/pull/6180
127
+
128
+ ### Patch Changes
129
+
130
+ - Updated dependencies [ea7a7c9]
131
+ - @ai-sdk/provider-utils@3.0.0-canary.17
132
+
133
+ ## 2.0.0-canary.17
134
+
135
+ ### Patch Changes
136
+
137
+ - 52ce942: chore(providers/openai): remove & enable strict compatibility by default
138
+ - Updated dependencies [87b828f]
139
+ - @ai-sdk/provider-utils@3.0.0-canary.16
140
+
141
+ ## 2.0.0-canary.16
142
+
143
+ ### Patch Changes
144
+
145
+ - 928fadf: fix(providers/openai): logprobs for stream alongside completion model
146
+ - 6f231db: fix(providers): always use optional instead of mix of nullish for providerOptions
147
+ - Updated dependencies [a571d6e]
148
+ - Updated dependencies [a8c8bd5]
149
+ - Updated dependencies [7979f7f]
150
+ - Updated dependencies [41fa418]
151
+ - @ai-sdk/provider-utils@3.0.0-canary.15
152
+ - @ai-sdk/provider@2.0.0-canary.14
153
+
154
+ ## 2.0.0-canary.15
155
+
156
+ ### Patch Changes
157
+
158
+ - 136819b: chore(providers/openai): re-introduce logprobs as providerMetadata
159
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
160
+
161
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
162
+
163
+ ```js
164
+ const prompt = 'Santa Claus driving a Cadillac';
165
+
166
+ const { providerMetadata } = await experimental_generateImage({
167
+ model: openai.image('dall-e-3'),
168
+ prompt,
169
+ });
170
+
171
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
172
+
173
+ console.log({
174
+ prompt,
175
+ revisedPrompt,
176
+ });
177
+ ```
178
+
179
+ - 284353f: fix(providers/openai): zod parse error with function
180
+ - Updated dependencies [957b739]
181
+ - Updated dependencies [9bd5ab5]
182
+ - @ai-sdk/provider-utils@3.0.0-canary.14
183
+ - @ai-sdk/provider@2.0.0-canary.13
184
+
185
+ ## 2.0.0-canary.14
186
+
187
+ ### Patch Changes
188
+
189
+ - fa758ea: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
190
+ - Updated dependencies [7b3ae3f]
191
+ - Updated dependencies [0ff02bb]
192
+ - @ai-sdk/provider@2.0.0-canary.12
193
+ - @ai-sdk/provider-utils@3.0.0-canary.13
194
+
195
+ ## 2.0.0-canary.13
196
+
197
+ ### Patch Changes
198
+
199
+ - 177526b: chore(providers/openai-transcription): switch to providerOptions
200
+ - c15dfbf: feat (providers/openai): add gpt-image-1 model id to image settings
201
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
202
+ - 4617fab: chore(embedding-models): remove remaining settings
203
+ - Updated dependencies [9bf7291]
204
+ - Updated dependencies [4617fab]
205
+ - Updated dependencies [e030615]
206
+ - @ai-sdk/provider@2.0.0-canary.11
207
+ - @ai-sdk/provider-utils@3.0.0-canary.12
208
+
209
+ ## 2.0.0-canary.12
210
+
211
+ ### Patch Changes
212
+
213
+ - db72adc: chore(providers/openai): update completion model to use providerOptions
214
+ - 66962ed: fix(packages): export node10 compatible types
215
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
216
+ - 7df7a25: feat (providers/openai): support gpt-image-1 image generation
217
+ - Updated dependencies [66962ed]
218
+ - Updated dependencies [9301f86]
219
+ - Updated dependencies [a3f768e]
220
+ - @ai-sdk/provider-utils@3.0.0-canary.11
221
+ - @ai-sdk/provider@2.0.0-canary.10
222
+
223
+ ## 2.0.0-canary.11
224
+
225
+ ### Patch Changes
226
+
227
+ - 8493141: feat (providers/openai): add support for reasoning summaries
228
+ - Updated dependencies [e86be6f]
229
+ - @ai-sdk/provider@2.0.0-canary.9
230
+ - @ai-sdk/provider-utils@3.0.0-canary.10
231
+
232
+ ## 2.0.0-canary.10
71
233
 
72
234
  ### Patch Changes
73
235
 
74
- - beef951: feat: add speech with experimental_generateSpeech
75
- - Updated dependencies [beef951]
76
- - @ai-sdk/provider@1.1.3
77
- - @ai-sdk/provider-utils@2.2.7
236
+ - 3bd3c0b: chore(providers/openai): update embedding model to use providerOptions
237
+ - Updated dependencies [95857aa]
238
+ - Updated dependencies [7ea4132]
239
+ - @ai-sdk/provider@2.0.0-canary.8
240
+ - @ai-sdk/provider-utils@3.0.0-canary.9
78
241
 
79
- ## 1.3.10
242
+ ## 2.0.0-canary.9
80
243
 
81
244
  ### Patch Changes
82
245
 
83
- - dbe53e7: adding support for gpt-4o-search-preview and handling unsupported parameters
84
- - 84ffaba: fix: propagate openai transcription fixes
246
+ - d63bcbc: feat (provider/openai): o4 updates for responses api
247
+ - d2af019: feat (providers/openai): add gpt-4.1 models
248
+ - 870c5c0: feat (providers/openai): add o3 and o4-mini models
249
+ - 06bac05: fix (openai): structure output for responses model
85
250
 
86
- ## 1.3.9
251
+ ## 2.0.0-canary.8
87
252
 
88
253
  ### Patch Changes
89
254
 
90
- - 013faa8: core (ai): change transcription model mimeType to mediaType
91
- - 013faa8: fix (provider/openai): increase transcription model resilience
92
- - Updated dependencies [013faa8]
93
- - @ai-sdk/provider@1.1.2
94
- - @ai-sdk/provider-utils@2.2.6
255
+ - 8aa9e20: feat: add speech with experimental_generateSpeech
256
+ - Updated dependencies [5d142ab]
257
+ - Updated dependencies [b6b43c7]
258
+ - Updated dependencies [8aa9e20]
259
+ - Updated dependencies [3795467]
260
+ - @ai-sdk/provider-utils@3.0.0-canary.8
261
+ - @ai-sdk/provider@2.0.0-canary.7
95
262
 
96
- ## 1.3.8
263
+ ## 2.0.0-canary.7
97
264
 
98
265
  ### Patch Changes
99
266
 
100
- - c21fa6d: feat: add transcription with experimental_transcribe
101
- - Updated dependencies [c21fa6d]
102
- - @ai-sdk/provider-utils@2.2.5
103
- - @ai-sdk/provider@1.1.1
267
+ - 26735b5: chore(embedding-model): add v2 interface
268
+ - 443d8ec: feat(embedding-model-v2): add response body field
269
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
270
+ - Updated dependencies [26735b5]
271
+ - Updated dependencies [443d8ec]
272
+ - Updated dependencies [14c9410]
273
+ - Updated dependencies [d9c98f4]
274
+ - Updated dependencies [c4a2fec]
275
+ - Updated dependencies [0054544]
276
+ - Updated dependencies [9e9c809]
277
+ - Updated dependencies [32831c6]
278
+ - Updated dependencies [d0f9495]
279
+ - Updated dependencies [fd65bc6]
280
+ - Updated dependencies [393138b]
281
+ - Updated dependencies [7182d14]
282
+ - @ai-sdk/provider@2.0.0-canary.6
283
+ - @ai-sdk/provider-utils@3.0.0-canary.7
284
+
285
+ ## 2.0.0-canary.6
286
+
287
+ ### Patch Changes
288
+
289
+ - 948b755: chore(providers/openai): convert to providerOptions
290
+ - 3b1ea10: adding support for gpt-4o-search-preview and handling unsupported parameters
291
+ - 442be08: fix: propagate openai transcription fixes
292
+ - 5147e6e: chore(openai): remove simulateStreaming
293
+ - c2b92cc: chore(openai): remove legacy function calling
294
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
295
+ - Updated dependencies [411e483]
296
+ - Updated dependencies [79457bd]
297
+ - Updated dependencies [ad80501]
298
+ - Updated dependencies [1766ede]
299
+ - Updated dependencies [f10304b]
300
+ - @ai-sdk/provider@2.0.0-canary.5
301
+ - @ai-sdk/provider-utils@3.0.0-canary.6
302
+
303
+ ## 2.0.0-canary.5
304
+
305
+ ### Patch Changes
306
+
307
+ - Updated dependencies [6f6bb89]
308
+ - @ai-sdk/provider@2.0.0-canary.4
309
+ - @ai-sdk/provider-utils@3.0.0-canary.5
310
+
311
+ ## 2.0.0-canary.4
312
+
313
+ ### Patch Changes
314
+
315
+ - Updated dependencies [d1a1aa1]
316
+ - @ai-sdk/provider@2.0.0-canary.3
317
+ - @ai-sdk/provider-utils@3.0.0-canary.4
318
+
319
+ ## 2.0.0-canary.3
320
+
321
+ ### Patch Changes
322
+
323
+ - a166433: feat: add transcription with experimental_transcribe
324
+ - 0a87932: core (ai): change transcription model mimeType to mediaType
325
+ - 0a87932: fix (provider/openai): increase transcription model resilience
326
+ - Updated dependencies [a166433]
327
+ - Updated dependencies [abf9a79]
328
+ - Updated dependencies [9f95b35]
329
+ - Updated dependencies [0a87932]
330
+ - Updated dependencies [6dc848c]
331
+ - @ai-sdk/provider-utils@3.0.0-canary.3
332
+ - @ai-sdk/provider@2.0.0-canary.2
333
+
334
+ ## 2.0.0-canary.2
335
+
336
+ ### Patch Changes
337
+
338
+ - Updated dependencies [c57e248]
339
+ - Updated dependencies [33f4a6a]
340
+ - @ai-sdk/provider@2.0.0-canary.1
341
+ - @ai-sdk/provider-utils@3.0.0-canary.2
342
+
343
+ ## 2.0.0-canary.1
344
+
345
+ ### Patch Changes
346
+
347
+ - Updated dependencies [060370c]
348
+ - Updated dependencies [0c0c0b3]
349
+ - Updated dependencies [63d791d]
350
+ - @ai-sdk/provider-utils@3.0.0-canary.1
351
+
352
+ ## 2.0.0-canary.0
353
+
354
+ ### Major Changes
104
355
 
105
- ## 1.3.7
356
+ - d5f588f: AI SDK 5
106
357
 
107
358
  ### Patch Changes
108
359
 
109
- - Updated dependencies [2c19b9a]
110
- - @ai-sdk/provider-utils@2.2.4
360
+ - Updated dependencies [d5f588f]
361
+ - @ai-sdk/provider-utils@3.0.0-canary.0
362
+ - @ai-sdk/provider@2.0.0-canary.0
111
363
 
112
364
  ## 1.3.6
113
365