@ai-sdk/openai 2.0.45 → 2.0.46
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 +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- 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 +5 -3
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +5 -3
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -14,7 +14,7 @@ declare const openaiChatLanguageModelOptions: _ai_sdk_provider_utils.LazyValidat
|
|
|
14
14
|
metadata?: Record<string, string> | undefined;
|
|
15
15
|
prediction?: Record<string, any> | undefined;
|
|
16
16
|
structuredOutputs?: boolean | undefined;
|
|
17
|
-
serviceTier?: "auto" | "flex" | "priority" | undefined;
|
|
17
|
+
serviceTier?: "default" | "auto" | "flex" | "priority" | undefined;
|
|
18
18
|
strictJsonSchema?: boolean | undefined;
|
|
19
19
|
textVerbosity?: "low" | "medium" | "high" | undefined;
|
|
20
20
|
promptCacheKey?: string | undefined;
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const openaiChatLanguageModelOptions: _ai_sdk_provider_utils.LazyValidat
|
|
|
14
14
|
metadata?: Record<string, string> | undefined;
|
|
15
15
|
prediction?: Record<string, any> | undefined;
|
|
16
16
|
structuredOutputs?: boolean | undefined;
|
|
17
|
-
serviceTier?: "auto" | "flex" | "priority" | undefined;
|
|
17
|
+
serviceTier?: "default" | "auto" | "flex" | "priority" | undefined;
|
|
18
18
|
strictJsonSchema?: boolean | undefined;
|
|
19
19
|
textVerbosity?: "low" | "medium" | "high" | undefined;
|
|
20
20
|
promptCacheKey?: string | undefined;
|
package/dist/internal/index.js
CHANGED
|
@@ -487,13 +487,15 @@ var openaiChatLanguageModelOptions = (0, import_provider_utils4.lazyValidator)(
|
|
|
487
487
|
structuredOutputs: z3.boolean().optional(),
|
|
488
488
|
/**
|
|
489
489
|
* Service tier for the request.
|
|
490
|
-
* - 'auto': Default service tier
|
|
490
|
+
* - 'auto': Default service tier. The request will be processed with the service tier configured in the
|
|
491
|
+
* Project settings. Unless otherwise configured, the Project will use 'default'.
|
|
491
492
|
* - 'flex': 50% cheaper processing at the cost of increased latency. Only available for o3 and o4-mini models.
|
|
492
493
|
* - 'priority': Higher-speed processing with predictably low latency at premium cost. Available for Enterprise customers.
|
|
494
|
+
* - 'default': The request will be processed with the standard pricing and performance for the selected model.
|
|
493
495
|
*
|
|
494
496
|
* @default 'auto'
|
|
495
497
|
*/
|
|
496
|
-
serviceTier: z3.enum(["auto", "flex", "priority"]).optional(),
|
|
498
|
+
serviceTier: z3.enum(["auto", "flex", "priority", "default"]).optional(),
|
|
497
499
|
/**
|
|
498
500
|
* Whether to use strict JSON schema validation.
|
|
499
501
|
*
|
|
@@ -2954,7 +2956,7 @@ var openaiResponsesProviderOptionsSchema = (0, import_provider_utils22.lazyValid
|
|
|
2954
2956
|
reasoningEffort: z15.string().nullish(),
|
|
2955
2957
|
reasoningSummary: z15.string().nullish(),
|
|
2956
2958
|
safetyIdentifier: z15.string().nullish(),
|
|
2957
|
-
serviceTier: z15.enum(["auto", "flex", "priority"]).nullish(),
|
|
2959
|
+
serviceTier: z15.enum(["auto", "flex", "priority", "default"]).nullish(),
|
|
2958
2960
|
store: z15.boolean().nullish(),
|
|
2959
2961
|
strictJsonSchema: z15.boolean().nullish(),
|
|
2960
2962
|
textVerbosity: z15.enum(["low", "medium", "high"]).nullish(),
|