@ai-sdk/openai 3.0.91 → 3.0.93

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/dist/index.mjs CHANGED
@@ -733,11 +733,12 @@ var openaiLanguageModelChatOptions = lazySchema2(
733
733
  * Project settings. Unless otherwise configured, the Project will use 'default'.
734
734
  * - 'flex': 50% cheaper processing at the cost of increased latency. Only available for o3 and o4-mini models.
735
735
  * - 'priority': Higher-speed processing with predictably low latency at premium cost. Available for Enterprise customers.
736
+ * - 'fast': OpenAI's newer name for the 'priority' tier. Interchangeable with it.
736
737
  * - 'default': The request will be processed with the standard pricing and performance for the selected model.
737
738
  *
738
739
  * @default 'auto'
739
740
  */
740
- serviceTier: z3.enum(["auto", "flex", "priority", "default"]).optional(),
741
+ serviceTier: z3.enum(["auto", "flex", "priority", "fast", "default"]).optional(),
741
742
  /**
742
743
  * Whether to use strict JSON schema validation.
743
744
  *
@@ -1039,7 +1040,7 @@ var OpenAIChatLanguageModel = class {
1039
1040
  });
1040
1041
  baseArgs.service_tier = void 0;
1041
1042
  }
1042
- if (openaiOptions.serviceTier === "priority" && !modelCapabilities.supportsPriorityProcessing) {
1043
+ if ((openaiOptions.serviceTier === "priority" || openaiOptions.serviceTier === "fast") && !modelCapabilities.supportsPriorityProcessing) {
1043
1044
  warnings.push({
1044
1045
  type: "unsupported",
1045
1046
  feature: "serviceTier",
@@ -4899,10 +4900,11 @@ var openaiLanguageModelResponsesOptionsSchema = lazySchema21(
4899
4900
  * Service tier for the request.
4900
4901
  * Set to 'flex' for 50% cheaper processing at the cost of increased latency (available for o3, o4-mini, and gpt-5 models).
4901
4902
  * 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).
4903
+ * Set to 'fast' for the same tier as 'priority' (OpenAI's newer name for it).
4902
4904
  *
4903
4905
  * Defaults to 'auto'.
4904
4906
  */
4905
- serviceTier: z23.enum(["auto", "flex", "priority", "default"]).nullish(),
4907
+ serviceTier: z23.enum(["auto", "flex", "priority", "fast", "default"]).nullish(),
4906
4908
  /**
4907
4909
  * Whether to store the generation. Defaults to `true`.
4908
4910
  */
@@ -5571,7 +5573,7 @@ var OpenAIResponsesLanguageModel = class {
5571
5573
  });
5572
5574
  delete baseArgs.service_tier;
5573
5575
  }
5574
- if ((openaiOptions == null ? void 0 : openaiOptions.serviceTier) === "priority" && !modelCapabilities.supportsPriorityProcessing) {
5576
+ if (((openaiOptions == null ? void 0 : openaiOptions.serviceTier) === "priority" || (openaiOptions == null ? void 0 : openaiOptions.serviceTier) === "fast") && !modelCapabilities.supportsPriorityProcessing) {
5575
5577
  warnings.push({
5576
5578
  type: "unsupported",
5577
5579
  feature: "serviceTier",
@@ -7474,7 +7476,7 @@ var OpenAITranscriptionModel = class {
7474
7476
  };
7475
7477
 
7476
7478
  // src/version.ts
7477
- var VERSION = true ? "3.0.91" : "0.0.0-test";
7479
+ var VERSION = true ? "3.0.93" : "0.0.0-test";
7478
7480
 
7479
7481
  // src/openai-provider.ts
7480
7482
  function createOpenAI(options = {}) {