@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.
@@ -38,6 +38,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
38
38
  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);
39
39
  const isGptNanoModel = (_d = (_c = gptVersion == null ? void 0 : gptVersion.variant) == null ? void 0 : _c.startsWith("nano")) != null ? _d : false;
40
40
  const isGpt6OrLaterModel = gptVersion != null && gptVersion.major >= 6;
41
+ const isGpt6SolOrLuna = modelId === "gpt-6-sol" || modelId === "gpt-6-luna";
41
42
  const supportsFlexProcessing = oSeriesVersion != null && oSeriesVersion >= 3 || gptVersion != null && gptVersion.major >= 5 && !isGptChatModel;
42
43
  const supportsPriorityProcessing = modelId.startsWith("gpt-4") || gptVersion != null && gptVersion.major >= 5 && !isGptNanoModel && !isGptChatModel || oSeriesVersion != null && oSeriesVersion >= 3;
43
44
  const isReasoningModel = oSeriesVersion != null || gptVersion != null && gptVersion.major >= 5 && !isGptChatModel;
@@ -48,7 +49,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
48
49
  supportsPriorityProcessing,
49
50
  supportsConfigurationUpdate: isGpt6OrLaterModel,
50
51
  supportsAsyncToolCalling: isGpt6OrLaterModel,
51
- supportedReasoningEfforts: isGpt6OrLaterModel ? ["low", "medium", "high", "xhigh", "max"] : void 0,
52
+ supportedReasoningEfforts: isGpt6SolOrLuna ? ["none", "low", "medium", "high", "xhigh", "max"] : isGpt6OrLaterModel ? ["low", "medium", "high", "xhigh", "max"] : void 0,
52
53
  isReasoningModel,
53
54
  systemMessageMode,
54
55
  supportsNonReasoningParameters
@@ -4419,7 +4420,7 @@ var openaiResponsesChunkSchema = lazySchema16(
4419
4420
  name: z18.string(),
4420
4421
  arguments: z18.string(),
4421
4422
  async: z18.boolean().nullish(),
4422
- status: z18.literal("completed"),
4423
+ status: z18.enum(["in_progress", "completed", "incomplete"]),
4423
4424
  namespace: z18.string().nullish()
4424
4425
  }),
4425
4426
  z18.object({
@@ -4429,7 +4430,7 @@ var openaiResponsesChunkSchema = lazySchema16(
4429
4430
  name: z18.string(),
4430
4431
  input: z18.string(),
4431
4432
  async: z18.boolean().nullish(),
4432
- status: z18.literal("completed")
4433
+ status: z18.enum(["in_progress", "completed", "incomplete"])
4433
4434
  }),
4434
4435
  z18.object({
4435
4436
  type: z18.literal("code_interpreter_call"),
@@ -5064,7 +5065,9 @@ var openaiResponsesReasoningModelIds = [
5064
5065
  "gpt-5.6-luna",
5065
5066
  "gpt-5.6-sol",
5066
5067
  "gpt-5.6-terra",
5067
- "gpt-6-astra"
5068
+ "gpt-6-astra",
5069
+ "gpt-6-luna",
5070
+ "gpt-6-sol"
5068
5071
  ];
5069
5072
  var openaiResponsesModelIds = [
5070
5073
  "gpt-4.1",