@ai-sdk/openai 3.0.42 → 3.0.44

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.
@@ -2568,7 +2568,7 @@ async function convertToOpenAIResponsesInput({
2568
2568
  customProviderToolNames
2569
2569
  }) {
2570
2570
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
2571
- const input = [];
2571
+ let input = [];
2572
2572
  const warnings = [];
2573
2573
  const processedApprovalIds = /* @__PURE__ */ new Set();
2574
2574
  for (const { role, content } of prompt) {
@@ -3069,6 +3069,17 @@ async function convertToOpenAIResponsesInput({
3069
3069
  }
3070
3070
  }
3071
3071
  }
3072
+ if (!store && input.some(
3073
+ (item) => "type" in item && item.type === "reasoning" && item.encrypted_content == null
3074
+ )) {
3075
+ warnings.push({
3076
+ type: "other",
3077
+ message: "Reasoning parts without encrypted content are not supported when store is false. Skipping reasoning parts."
3078
+ });
3079
+ input = input.filter(
3080
+ (item) => !("type" in item) || item.type !== "reasoning" || item.encrypted_content != null
3081
+ );
3082
+ }
3072
3083
  return { input, warnings };
3073
3084
  }
3074
3085
  var openaiResponsesReasoningProviderOptionsSchema = import_v415.z.object({