@ai-sdk/openai 3.0.115 → 3.0.116

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
@@ -46,6 +46,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
46
46
  const isGptChatModel = (gptVersion == null ? void 0 : gptVersion.minor) == null && ((_b = (_a2 = gptVersion == null ? void 0 : gptVersion.variant) == null ? void 0 : _a2.startsWith("chat")) != null ? _b : false);
47
47
  const isGptNanoModel = (_d = (_c = gptVersion == null ? void 0 : gptVersion.variant) == null ? void 0 : _c.startsWith("nano")) != null ? _d : false;
48
48
  const isGpt6OrLaterModel = gptVersion != null && gptVersion.major >= 6;
49
+ const isGpt6SolOrLuna = modelId === "gpt-6-sol" || modelId === "gpt-6-luna";
49
50
  const supportsFlexProcessing = oSeriesVersion != null && oSeriesVersion >= 3 || gptVersion != null && gptVersion.major >= 5 && !isGptChatModel;
50
51
  const supportsPriorityProcessing = modelId.startsWith("gpt-4") || gptVersion != null && gptVersion.major >= 5 && !isGptNanoModel && !isGptChatModel || oSeriesVersion != null && oSeriesVersion >= 3;
51
52
  const isReasoningModel = oSeriesVersion != null || gptVersion != null && gptVersion.major >= 5 && !isGptChatModel;
@@ -56,7 +57,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
56
57
  supportsPriorityProcessing,
57
58
  supportsConfigurationUpdate: isGpt6OrLaterModel,
58
59
  supportsAsyncToolCalling: isGpt6OrLaterModel,
59
- supportedReasoningEfforts: isGpt6OrLaterModel ? ["low", "medium", "high", "xhigh", "max"] : void 0,
60
+ supportedReasoningEfforts: isGpt6SolOrLuna ? ["none", "low", "medium", "high", "xhigh", "max"] : isGpt6OrLaterModel ? ["low", "medium", "high", "xhigh", "max"] : void 0,
60
61
  isReasoningModel,
61
62
  systemMessageMode,
62
63
  supportsNonReasoningParameters
@@ -4530,7 +4531,7 @@ var openaiResponsesChunkSchema = lazySchema20(
4530
4531
  name: z22.string(),
4531
4532
  arguments: z22.string(),
4532
4533
  async: z22.boolean().nullish(),
4533
- status: z22.literal("completed"),
4534
+ status: z22.enum(["in_progress", "completed", "incomplete"]),
4534
4535
  namespace: z22.string().nullish()
4535
4536
  }),
4536
4537
  z22.object({
@@ -4540,7 +4541,7 @@ var openaiResponsesChunkSchema = lazySchema20(
4540
4541
  name: z22.string(),
4541
4542
  input: z22.string(),
4542
4543
  async: z22.boolean().nullish(),
4543
- status: z22.literal("completed")
4544
+ status: z22.enum(["in_progress", "completed", "incomplete"])
4544
4545
  }),
4545
4546
  z22.object({
4546
4547
  type: z22.literal("code_interpreter_call"),
@@ -5175,7 +5176,9 @@ var openaiResponsesReasoningModelIds = [
5175
5176
  "gpt-5.6-luna",
5176
5177
  "gpt-5.6-sol",
5177
5178
  "gpt-5.6-terra",
5178
- "gpt-6-astra"
5179
+ "gpt-6-astra",
5180
+ "gpt-6-luna",
5181
+ "gpt-6-sol"
5179
5182
  ];
5180
5183
  var openaiResponsesModelIds = [
5181
5184
  "gpt-4.1",
@@ -8253,7 +8256,7 @@ var OpenAITranscriptionModel = class {
8253
8256
  };
8254
8257
 
8255
8258
  // src/version.ts
8256
- var VERSION = true ? "3.0.115" : "0.0.0-test";
8259
+ var VERSION = true ? "3.0.116" : "0.0.0-test";
8257
8260
 
8258
8261
  // src/openai-provider.ts
8259
8262
  function createOpenAI(options = {}) {