@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.
- package/CHANGELOG.md +17 -0
- package/dist/index.js +21 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -5
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +20 -4
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +20 -4
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/responses/convert-to-openai-responses-input.ts +30 -4
- package/src/responses/openai-responses-api.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2914,10 +2914,26 @@ async function convertToOpenAIResponsesInput({
|
|
|
2914
2914
|
}
|
|
2915
2915
|
}
|
|
2916
2916
|
} else {
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2917
|
+
const encryptedContent = providerOptions == null ? void 0 : providerOptions.reasoningEncryptedContent;
|
|
2918
|
+
if (encryptedContent != null) {
|
|
2919
|
+
const summaryParts = [];
|
|
2920
|
+
if (part.text.length > 0) {
|
|
2921
|
+
summaryParts.push({
|
|
2922
|
+
type: "summary_text",
|
|
2923
|
+
text: part.text
|
|
2924
|
+
});
|
|
2925
|
+
}
|
|
2926
|
+
input.push({
|
|
2927
|
+
type: "reasoning",
|
|
2928
|
+
encrypted_content: encryptedContent,
|
|
2929
|
+
summary: summaryParts
|
|
2930
|
+
});
|
|
2931
|
+
} else {
|
|
2932
|
+
warnings.push({
|
|
2933
|
+
type: "other",
|
|
2934
|
+
message: `Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(part)}.`
|
|
2935
|
+
});
|
|
2936
|
+
}
|
|
2921
2937
|
}
|
|
2922
2938
|
break;
|
|
2923
2939
|
}
|
|
@@ -6163,7 +6179,7 @@ var OpenAITranscriptionModel = class {
|
|
|
6163
6179
|
};
|
|
6164
6180
|
|
|
6165
6181
|
// src/version.ts
|
|
6166
|
-
var VERSION = true ? "3.0.
|
|
6182
|
+
var VERSION = true ? "3.0.35" : "0.0.0-test";
|
|
6167
6183
|
|
|
6168
6184
|
// src/openai-provider.ts
|
|
6169
6185
|
function createOpenAI(options = {}) {
|