@ai-sdk/openai 2.0.98 → 2.0.100

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.
@@ -36,7 +36,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
36
36
  const supportsFlexProcessing = modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
37
37
  const supportsPriorityProcessing = modelId.startsWith("gpt-4") || modelId.startsWith("gpt-5-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-nano") && !modelId.startsWith("gpt-5-chat") || modelId.startsWith("o3") || modelId.startsWith("o4-mini");
38
38
  const isReasoningModel = !(modelId.startsWith("gpt-3") || modelId.startsWith("gpt-4") || modelId.startsWith("chatgpt-4o") || modelId.startsWith("gpt-5-chat"));
39
- const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.4");
39
+ const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.3") || modelId.startsWith("gpt-5.4");
40
40
  const systemMessageMode = isReasoningModel ? "developer" : "system";
41
41
  return {
42
42
  supportsFlexProcessing,
@@ -2248,7 +2248,7 @@ async function convertToOpenAIResponsesInput({
2248
2248
  hasLocalShellTool = false
2249
2249
  }) {
2250
2250
  var _a, _b, _c, _d, _e, _f;
2251
- const input = [];
2251
+ let input = [];
2252
2252
  const warnings = [];
2253
2253
  for (const { role, content } of prompt) {
2254
2254
  switch (role) {
@@ -2510,6 +2510,17 @@ async function convertToOpenAIResponsesInput({
2510
2510
  }
2511
2511
  }
2512
2512
  }
2513
+ if (!store && input.some(
2514
+ (item) => "type" in item && item.type === "reasoning" && item.encrypted_content == null
2515
+ )) {
2516
+ warnings.push({
2517
+ type: "other",
2518
+ message: "Reasoning parts without encrypted content are not supported when store is false. Skipping reasoning parts."
2519
+ });
2520
+ input = input.filter(
2521
+ (item) => !("type" in item) || item.type !== "reasoning" || item.encrypted_content != null
2522
+ );
2523
+ }
2513
2524
  return { input, warnings };
2514
2525
  }
2515
2526
  var openaiResponsesReasoningProviderOptionsSchema = z13.object({
@@ -3040,6 +3051,7 @@ var openaiResponsesReasoningModelIds = [
3040
3051
  "gpt-5.2-chat-latest",
3041
3052
  "gpt-5.2-pro",
3042
3053
  "gpt-5.2-codex",
3054
+ "gpt-5.3-chat-latest",
3043
3055
  "gpt-5.3-codex",
3044
3056
  "gpt-5.4",
3045
3057
  "gpt-5.4-2026-03-05",