@ai-sdk/openai 3.0.121 → 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.
- package/CHANGELOG.md +15 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +4 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +4 -2
- package/dist/internal/index.mjs.map +1 -1
- package/docs/03-openai.mdx +4 -2
- package/package.json +2 -2
- package/src/chat/openai-chat-options.ts +2 -1
- package/src/responses/openai-responses-options.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 3.0.123
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f56545c: feat(openai): add support for ultrafast service tier
|
|
8
|
+
|
|
9
|
+
## 3.0.122
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [a9cea74]
|
|
14
|
+
- Updated dependencies [a9cea74]
|
|
15
|
+
- Updated dependencies [a9cea74]
|
|
16
|
+
- @ai-sdk/provider-utils@4.0.57
|
|
17
|
+
|
|
3
18
|
## 3.0.121
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -14,7 +14,7 @@ declare const openaiLanguageModelChatOptions: _ai_sdk_provider_utils.LazySchema<
|
|
|
14
14
|
store?: boolean | undefined;
|
|
15
15
|
metadata?: Record<string, string> | undefined;
|
|
16
16
|
prediction?: Record<string, any> | undefined;
|
|
17
|
-
serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | undefined;
|
|
17
|
+
serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
|
|
18
18
|
strictJsonSchema?: boolean | undefined;
|
|
19
19
|
textVerbosity?: "low" | "medium" | "high" | undefined;
|
|
20
20
|
promptCacheKey?: string | undefined;
|
|
@@ -1114,7 +1114,7 @@ declare const openaiLanguageModelResponsesOptionsSchema: _ai_sdk_provider_utils.
|
|
|
1114
1114
|
reasoningContext?: "auto" | "current_turn" | "all_turns" | undefined;
|
|
1115
1115
|
reasoningSummary?: string | null | undefined;
|
|
1116
1116
|
safetyIdentifier?: string | null | undefined;
|
|
1117
|
-
serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | null | undefined;
|
|
1117
|
+
serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | "ultrafast" | null | undefined;
|
|
1118
1118
|
store?: boolean | null | undefined;
|
|
1119
1119
|
passThroughUnsupportedFiles?: boolean | undefined;
|
|
1120
1120
|
strictJsonSchema?: boolean | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const openaiLanguageModelChatOptions: _ai_sdk_provider_utils.LazySchema<
|
|
|
14
14
|
store?: boolean | undefined;
|
|
15
15
|
metadata?: Record<string, string> | undefined;
|
|
16
16
|
prediction?: Record<string, any> | undefined;
|
|
17
|
-
serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | undefined;
|
|
17
|
+
serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
|
|
18
18
|
strictJsonSchema?: boolean | undefined;
|
|
19
19
|
textVerbosity?: "low" | "medium" | "high" | undefined;
|
|
20
20
|
promptCacheKey?: string | undefined;
|
|
@@ -1114,7 +1114,7 @@ declare const openaiLanguageModelResponsesOptionsSchema: _ai_sdk_provider_utils.
|
|
|
1114
1114
|
reasoningContext?: "auto" | "current_turn" | "all_turns" | undefined;
|
|
1115
1115
|
reasoningSummary?: string | null | undefined;
|
|
1116
1116
|
safetyIdentifier?: string | null | undefined;
|
|
1117
|
-
serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | null | undefined;
|
|
1117
|
+
serviceTier?: "default" | "auto" | "flex" | "priority" | "fast" | "ultrafast" | null | undefined;
|
|
1118
1118
|
store?: boolean | null | undefined;
|
|
1119
1119
|
passThroughUnsupportedFiles?: boolean | undefined;
|
|
1120
1120
|
strictJsonSchema?: boolean | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -775,11 +775,12 @@ var openaiLanguageModelChatOptions = (0, import_provider_utils4.lazySchema)(
|
|
|
775
775
|
* - 'flex': 50% cheaper processing at the cost of increased latency. Only available for o3 and o4-mini models.
|
|
776
776
|
* - 'priority': Higher-speed processing with predictably low latency at premium cost. Available for Enterprise customers.
|
|
777
777
|
* - 'fast': OpenAI's newer name for the 'priority' tier. Interchangeable with it.
|
|
778
|
+
* - 'ultrafast': Access-controlled Ultrafast processing. Only available for gpt-5.6-sol.
|
|
778
779
|
* - 'default': The request will be processed with the standard pricing and performance for the selected model.
|
|
779
780
|
*
|
|
780
781
|
* @default 'auto'
|
|
781
782
|
*/
|
|
782
|
-
serviceTier: import_v43.z.enum(["auto", "flex", "priority", "fast", "default"]).optional(),
|
|
783
|
+
serviceTier: import_v43.z.enum(["auto", "flex", "priority", "fast", "ultrafast", "default"]).optional(),
|
|
783
784
|
/**
|
|
784
785
|
* Whether to use strict JSON schema validation.
|
|
785
786
|
*
|
|
@@ -3190,10 +3191,11 @@ var openaiLanguageModelResponsesOptionsSchema = (0, import_provider_utils26.lazy
|
|
|
3190
3191
|
* Set to 'flex' for 50% cheaper processing at the cost of increased latency (available for o3, o4-mini, and gpt-5 models).
|
|
3191
3192
|
* 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).
|
|
3192
3193
|
* Set to 'fast' for the same tier as 'priority' (OpenAI's newer name for it).
|
|
3194
|
+
* Set to 'ultrafast' for access-controlled Ultrafast processing (available only for gpt-5.6-sol).
|
|
3193
3195
|
*
|
|
3194
3196
|
* Defaults to 'auto'.
|
|
3195
3197
|
*/
|
|
3196
|
-
serviceTier: import_v421.z.enum(["auto", "flex", "priority", "fast", "default"]).nullish(),
|
|
3198
|
+
serviceTier: import_v421.z.enum(["auto", "flex", "priority", "fast", "ultrafast", "default"]).nullish(),
|
|
3197
3199
|
/**
|
|
3198
3200
|
* Whether to store the generation. Defaults to `true`.
|
|
3199
3201
|
*/
|
|
@@ -8138,7 +8140,7 @@ var OpenAITranscriptionModel = class {
|
|
|
8138
8140
|
};
|
|
8139
8141
|
|
|
8140
8142
|
// src/version.ts
|
|
8141
|
-
var VERSION = true ? "3.0.
|
|
8143
|
+
var VERSION = true ? "3.0.123" : "0.0.0-test";
|
|
8142
8144
|
|
|
8143
8145
|
// src/openai-provider.ts
|
|
8144
8146
|
function createOpenAI(options = {}) {
|