@ai-sdk/openai 3.0.34 → 3.0.35

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.
@@ -2858,10 +2858,26 @@ async function convertToOpenAIResponsesInput({
2858
2858
  }
2859
2859
  }
2860
2860
  } else {
2861
- warnings.push({
2862
- type: "other",
2863
- message: `Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(part)}.`
2864
- });
2861
+ const encryptedContent = providerOptions == null ? void 0 : providerOptions.reasoningEncryptedContent;
2862
+ if (encryptedContent != null) {
2863
+ const summaryParts = [];
2864
+ if (part.text.length > 0) {
2865
+ summaryParts.push({
2866
+ type: "summary_text",
2867
+ text: part.text
2868
+ });
2869
+ }
2870
+ input.push({
2871
+ type: "reasoning",
2872
+ encrypted_content: encryptedContent,
2873
+ summary: summaryParts
2874
+ });
2875
+ } else {
2876
+ warnings.push({
2877
+ type: "other",
2878
+ message: `Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(part)}.`
2879
+ });
2880
+ }
2865
2881
  }
2866
2882
  break;
2867
2883
  }