@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.
- package/CHANGELOG.md +13 -0
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +12 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +12 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/responses/convert-to-openai-responses-input.ts +24 -1
package/dist/index.mjs
CHANGED
|
@@ -2687,7 +2687,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
2687
2687
|
customProviderToolNames
|
|
2688
2688
|
}) {
|
|
2689
2689
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
2690
|
-
|
|
2690
|
+
let input = [];
|
|
2691
2691
|
const warnings = [];
|
|
2692
2692
|
const processedApprovalIds = /* @__PURE__ */ new Set();
|
|
2693
2693
|
for (const { role, content } of prompt) {
|
|
@@ -3188,6 +3188,17 @@ async function convertToOpenAIResponsesInput({
|
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
3190
|
}
|
|
3191
|
+
if (!store && input.some(
|
|
3192
|
+
(item) => "type" in item && item.type === "reasoning" && item.encrypted_content == null
|
|
3193
|
+
)) {
|
|
3194
|
+
warnings.push({
|
|
3195
|
+
type: "other",
|
|
3196
|
+
message: "Reasoning parts without encrypted content are not supported when store is false. Skipping reasoning parts."
|
|
3197
|
+
});
|
|
3198
|
+
input = input.filter(
|
|
3199
|
+
(item) => !("type" in item) || item.type !== "reasoning" || item.encrypted_content != null
|
|
3200
|
+
);
|
|
3201
|
+
}
|
|
3191
3202
|
return { input, warnings };
|
|
3192
3203
|
}
|
|
3193
3204
|
var openaiResponsesReasoningProviderOptionsSchema = z19.object({
|
|
@@ -6389,7 +6400,7 @@ var OpenAITranscriptionModel = class {
|
|
|
6389
6400
|
};
|
|
6390
6401
|
|
|
6391
6402
|
// src/version.ts
|
|
6392
|
-
var VERSION = true ? "3.0.
|
|
6403
|
+
var VERSION = true ? "3.0.44" : "0.0.0-test";
|
|
6393
6404
|
|
|
6394
6405
|
// src/openai-provider.ts
|
|
6395
6406
|
function createOpenAI(options = {}) {
|