@ai-sdk/openai 2.0.127 → 2.0.128

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
@@ -47,6 +47,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
47
47
  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);
48
48
  const isGptNanoModel = (_d = (_c = gptVersion == null ? void 0 : gptVersion.variant) == null ? void 0 : _c.startsWith("nano")) != null ? _d : false;
49
49
  const isGpt6OrLaterModel = gptVersion != null && gptVersion.major >= 6;
50
+ const isGpt6SolOrLuna = modelId === "gpt-6-sol" || modelId === "gpt-6-luna";
50
51
  const supportsFlexProcessing = oSeriesVersion != null && oSeriesVersion >= 3 || gptVersion != null && gptVersion.major >= 5 && !isGptChatModel;
51
52
  const supportsPriorityProcessing = modelId.startsWith("gpt-4") || gptVersion != null && gptVersion.major >= 5 && !isGptNanoModel && !isGptChatModel || oSeriesVersion != null && oSeriesVersion >= 3;
52
53
  const isReasoningModel = oSeriesVersion != null || gptVersion != null && gptVersion.major >= 5 && !isGptChatModel || modelId === "codex-mini-latest" || modelId === "computer-use-preview";
@@ -57,7 +58,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
57
58
  supportsPriorityProcessing,
58
59
  supportsConfigurationUpdate: isGpt6OrLaterModel,
59
60
  supportsAsyncToolCalling: isGpt6OrLaterModel,
60
- supportedReasoningEfforts: isGpt6OrLaterModel ? ["low", "medium", "high", "xhigh", "max"] : void 0,
61
+ supportedReasoningEfforts: isGpt6SolOrLuna ? ["none", "low", "medium", "high", "xhigh", "max"] : isGpt6OrLaterModel ? ["low", "medium", "high", "xhigh", "max"] : void 0,
61
62
  isReasoningModel,
62
63
  systemMessageMode,
63
64
  supportsNonReasoningParameters
@@ -2950,7 +2951,7 @@ var openaiResponsesChunkSchema = lazyValidator9(
2950
2951
  name: z17.string(),
2951
2952
  arguments: z17.string(),
2952
2953
  async: z17.boolean().nullish(),
2953
- status: z17.literal("completed")
2954
+ status: z17.enum(["in_progress", "completed", "incomplete"])
2954
2955
  }),
2955
2956
  z17.object({
2956
2957
  type: z17.literal("code_interpreter_call"),
@@ -3359,7 +3360,9 @@ var openaiResponsesReasoningModelIds = [
3359
3360
  "gpt-5.6-luna",
3360
3361
  "gpt-5.6-sol",
3361
3362
  "gpt-5.6-terra",
3362
- "gpt-6-astra"
3363
+ "gpt-6-astra",
3364
+ "gpt-6-luna",
3365
+ "gpt-6-sol"
3363
3366
  ];
3364
3367
  var openaiResponsesModelIds = [
3365
3368
  "gpt-4.1",
@@ -5233,7 +5236,7 @@ var OpenAITranscriptionModel = class {
5233
5236
  };
5234
5237
 
5235
5238
  // src/version.ts
5236
- var VERSION = true ? "2.0.127" : "0.0.0-test";
5239
+ var VERSION = true ? "2.0.128" : "0.0.0-test";
5237
5240
 
5238
5241
  // src/openai-provider.ts
5239
5242
  function createOpenAI(options = {}) {