@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.
- package/CHANGELOG.md +6 -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 +1 -1
- package/src/responses/convert-to-openai-responses-input.ts +24 -1
package/dist/internal/index.mjs
CHANGED
|
@@ -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
|
-
|
|
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({
|