@ai-sdk/openai 3.0.122 → 3.0.123

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.
@@ -246,12 +246,13 @@ The following provider options are available:
246
246
  `.nullable()`.
247
247
  </Note>
248
248
 
249
- - **serviceTier** _'auto' | 'flex' | 'priority' | 'fast' | 'default'_
249
+ - **serviceTier** _'auto' | 'flex' | 'priority' | 'fast' | 'ultrafast' | 'default'_
250
250
  Service tier for the request. Set to 'flex' for 50% cheaper processing
251
251
  at the cost of increased latency (available for o3, o4-mini, and gpt-5 models).
252
252
  Set to 'priority' for faster processing with Enterprise access (available for gpt-4, gpt-5, gpt-5-mini, o3, o4-mini; gpt-5-nano is not supported).
253
253
  'fast' is OpenAI's newer name for the 'priority' tier; the two are interchangeable, and responses from
254
254
  gpt-5.6 and earlier report `serviceTier: 'priority'` for either.
255
+ Set to 'ultrafast' for access-controlled Ultrafast processing (available only for gpt-5.6-sol).
255
256
 
256
257
  Defaults to 'auto'.
257
258
 
@@ -1943,13 +1944,14 @@ The following optional provider options are available for OpenAI chat models:
1943
1944
 
1944
1945
  Parameters for prediction mode.
1945
1946
 
1946
- - **serviceTier** _'auto' | 'flex' | 'priority' | 'fast' | 'default'_
1947
+ - **serviceTier** _'auto' | 'flex' | 'priority' | 'fast' | 'ultrafast' | 'default'_
1947
1948
 
1948
1949
  Service tier for the request. Set to 'flex' for 50% cheaper processing
1949
1950
  at the cost of increased latency (available for o3, o4-mini, and gpt-5 models).
1950
1951
  Set to 'priority' for faster processing with Enterprise access (available for gpt-4, gpt-5, gpt-5-mini, o3, o4-mini; gpt-5-nano is not supported).
1951
1952
  'fast' is OpenAI's newer name for the 'priority' tier; the two are interchangeable, and responses from
1952
1953
  gpt-5.6 and earlier report `serviceTier: 'priority'` for either.
1954
+ Set to 'ultrafast' for access-controlled Ultrafast processing (available only for gpt-5.6-sol).
1953
1955
 
1954
1956
  Defaults to 'auto'.
1955
1957
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "3.0.122",
3
+ "version": "3.0.123",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -144,12 +144,13 @@ export const openaiLanguageModelChatOptions = lazySchema(() =>
144
144
  * - 'flex': 50% cheaper processing at the cost of increased latency. Only available for o3 and o4-mini models.
145
145
  * - 'priority': Higher-speed processing with predictably low latency at premium cost. Available for Enterprise customers.
146
146
  * - 'fast': OpenAI's newer name for the 'priority' tier. Interchangeable with it.
147
+ * - 'ultrafast': Access-controlled Ultrafast processing. Only available for gpt-5.6-sol.
147
148
  * - 'default': The request will be processed with the standard pricing and performance for the selected model.
148
149
  *
149
150
  * @default 'auto'
150
151
  */
151
152
  serviceTier: z
152
- .enum(['auto', 'flex', 'priority', 'fast', 'default'])
153
+ .enum(['auto', 'flex', 'priority', 'fast', 'ultrafast', 'default'])
153
154
  .optional(),
154
155
 
155
156
  /**
@@ -315,11 +315,12 @@ export const openaiLanguageModelResponsesOptionsSchema = lazySchema(() =>
315
315
  * Set to 'flex' for 50% cheaper processing at the cost of increased latency (available for o3, o4-mini, and gpt-5 models).
316
316
  * Set to 'priority' for faster processing with Enterprise access (available for gpt-4, gpt-5, gpt-5-mini, o3, o4-mini; gpt-5-nano is not supported).
317
317
  * Set to 'fast' for the same tier as 'priority' (OpenAI's newer name for it).
318
+ * Set to 'ultrafast' for access-controlled Ultrafast processing (available only for gpt-5.6-sol).
318
319
  *
319
320
  * Defaults to 'auto'.
320
321
  */
321
322
  serviceTier: z
322
- .enum(['auto', 'flex', 'priority', 'fast', 'default'])
323
+ .enum(['auto', 'flex', 'priority', 'fast', 'ultrafast', 'default'])
323
324
  .nullish(),
324
325
 
325
326
  /**