@ai-sdk/openai 3.0.43 → 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.
@@ -2589,7 +2589,7 @@ async function convertToOpenAIResponsesInput({
2589
2589
  customProviderToolNames
2590
2590
  }) {
2591
2591
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
2592
- const input = [];
2592
+ let input = [];
2593
2593
  const warnings = [];
2594
2594
  const processedApprovalIds = /* @__PURE__ */ new Set();
2595
2595
  for (const { role, content } of prompt) {
@@ -3090,6 +3090,17 @@ async function convertToOpenAIResponsesInput({
3090
3090
  }
3091
3091
  }
3092
3092
  }
3093
+ if (!store && input.some(
3094
+ (item) => "type" in item && item.type === "reasoning" && item.encrypted_content == null
3095
+ )) {
3096
+ warnings.push({
3097
+ type: "other",
3098
+ message: "Reasoning parts without encrypted content are not supported when store is false. Skipping reasoning parts."
3099
+ });
3100
+ input = input.filter(
3101
+ (item) => !("type" in item) || item.type !== "reasoning" || item.encrypted_content != null
3102
+ );
3103
+ }
3093
3104
  return { input, warnings };
3094
3105
  }
3095
3106
  var openaiResponsesReasoningProviderOptionsSchema = z15.object({