@ai-sdk/openai 2.0.99 → 2.0.100
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 +16 -5
- 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 +15 -4
- 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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -18,13 +18,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
23
|
VERSION: () => VERSION,
|
|
24
24
|
createOpenAI: () => createOpenAI,
|
|
25
25
|
openai: () => openai
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
27
|
+
module.exports = __toCommonJS(index_exports);
|
|
28
28
|
|
|
29
29
|
// src/openai-provider.ts
|
|
30
30
|
var import_provider_utils30 = require("@ai-sdk/provider-utils");
|
|
@@ -2146,7 +2146,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
2146
2146
|
hasLocalShellTool = false
|
|
2147
2147
|
}) {
|
|
2148
2148
|
var _a, _b, _c, _d, _e, _f;
|
|
2149
|
-
|
|
2149
|
+
let input = [];
|
|
2150
2150
|
const warnings = [];
|
|
2151
2151
|
for (const { role, content } of prompt) {
|
|
2152
2152
|
switch (role) {
|
|
@@ -2408,6 +2408,17 @@ async function convertToOpenAIResponsesInput({
|
|
|
2408
2408
|
}
|
|
2409
2409
|
}
|
|
2410
2410
|
}
|
|
2411
|
+
if (!store && input.some(
|
|
2412
|
+
(item) => "type" in item && item.type === "reasoning" && item.encrypted_content == null
|
|
2413
|
+
)) {
|
|
2414
|
+
warnings.push({
|
|
2415
|
+
type: "other",
|
|
2416
|
+
message: "Reasoning parts without encrypted content are not supported when store is false. Skipping reasoning parts."
|
|
2417
|
+
});
|
|
2418
|
+
input = input.filter(
|
|
2419
|
+
(item) => !("type" in item) || item.type !== "reasoning" || item.encrypted_content != null
|
|
2420
|
+
);
|
|
2421
|
+
}
|
|
2411
2422
|
return { input, warnings };
|
|
2412
2423
|
}
|
|
2413
2424
|
var openaiResponsesReasoningProviderOptionsSchema = import_v415.z.object({
|
|
@@ -4625,7 +4636,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4625
4636
|
};
|
|
4626
4637
|
|
|
4627
4638
|
// src/version.ts
|
|
4628
|
-
var VERSION = true ? "2.0.
|
|
4639
|
+
var VERSION = true ? "2.0.100" : "0.0.0-test";
|
|
4629
4640
|
|
|
4630
4641
|
// src/openai-provider.ts
|
|
4631
4642
|
function createOpenAI(options = {}) {
|