@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.
@@ -2837,10 +2837,26 @@ async function convertToOpenAIResponsesInput({
2837
2837
  }
2838
2838
  }
2839
2839
  } else {
2840
- warnings.push({
2841
- type: "other",
2842
- message: `Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(part)}.`
2843
- });
2840
+ const encryptedContent = providerOptions == null ? void 0 : providerOptions.reasoningEncryptedContent;
2841
+ if (encryptedContent != null) {
2842
+ const summaryParts = [];
2843
+ if (part.text.length > 0) {
2844
+ summaryParts.push({
2845
+ type: "summary_text",
2846
+ text: part.text
2847
+ });
2848
+ }
2849
+ input.push({
2850
+ type: "reasoning",
2851
+ encrypted_content: encryptedContent,
2852
+ summary: summaryParts
2853
+ });
2854
+ } else {
2855
+ warnings.push({
2856
+ type: "other",
2857
+ message: `Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(part)}.`
2858
+ });
2859
+ }
2844
2860
  }
2845
2861
  break;
2846
2862
  }