@zenning/openai 3.0.15 → 3.0.17
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 +12 -0
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -10
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +11 -9
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +11 -9
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.js
CHANGED
|
@@ -2469,14 +2469,15 @@ async function convertToOpenAIResponsesInput({
|
|
|
2469
2469
|
hasLocalShellTool = false,
|
|
2470
2470
|
hasShellTool = false,
|
|
2471
2471
|
hasApplyPatchTool = false,
|
|
2472
|
-
compactionInput
|
|
2472
|
+
compactionInput,
|
|
2473
|
+
providerOptions
|
|
2473
2474
|
}) {
|
|
2474
2475
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
2475
2476
|
const input = [];
|
|
2476
2477
|
const warnings = [];
|
|
2477
2478
|
const processedApprovalIds = /* @__PURE__ */ new Set();
|
|
2478
|
-
const skipItemReferences = (
|
|
2479
|
-
console.log("[OpenAI Provider] Skip item references flag:", skipItemReferences);
|
|
2479
|
+
const skipItemReferences = (providerOptions == null ? void 0 : providerOptions.skipItemReferencesForApproval) === true;
|
|
2480
|
+
console.log("[OpenAI Provider] Skip item references flag:", skipItemReferences, "providerOptions:", providerOptions);
|
|
2480
2481
|
if (compactionInput && compactionInput.length > 0) {
|
|
2481
2482
|
input.push(...compactionInput);
|
|
2482
2483
|
}
|
|
@@ -2663,12 +2664,12 @@ async function convertToOpenAIResponsesInput({
|
|
|
2663
2664
|
break;
|
|
2664
2665
|
}
|
|
2665
2666
|
case "reasoning": {
|
|
2666
|
-
const
|
|
2667
|
+
const providerOptions2 = await (0, import_provider_utils22.parseProviderOptions)({
|
|
2667
2668
|
provider: providerOptionsName,
|
|
2668
2669
|
providerOptions: part.providerOptions,
|
|
2669
2670
|
schema: openaiResponsesReasoningProviderOptionsSchema
|
|
2670
2671
|
});
|
|
2671
|
-
const reasoningId =
|
|
2672
|
+
const reasoningId = providerOptions2 == null ? void 0 : providerOptions2.itemId;
|
|
2672
2673
|
if (reasoningId != null) {
|
|
2673
2674
|
const reasoningMessage = reasoningMessages[reasoningId];
|
|
2674
2675
|
if (store) {
|
|
@@ -2697,14 +2698,14 @@ async function convertToOpenAIResponsesInput({
|
|
|
2697
2698
|
reasoningMessages[reasoningId] = {
|
|
2698
2699
|
type: "reasoning",
|
|
2699
2700
|
id: reasoningId,
|
|
2700
|
-
encrypted_content:
|
|
2701
|
+
encrypted_content: providerOptions2 == null ? void 0 : providerOptions2.reasoningEncryptedContent,
|
|
2701
2702
|
summary: summaryParts
|
|
2702
2703
|
};
|
|
2703
2704
|
input.push(reasoningMessages[reasoningId]);
|
|
2704
2705
|
} else {
|
|
2705
2706
|
reasoningMessage.summary.push(...summaryParts);
|
|
2706
|
-
if ((
|
|
2707
|
-
reasoningMessage.encrypted_content =
|
|
2707
|
+
if ((providerOptions2 == null ? void 0 : providerOptions2.reasoningEncryptedContent) != null) {
|
|
2708
|
+
reasoningMessage.encrypted_content = providerOptions2.reasoningEncryptedContent;
|
|
2708
2709
|
}
|
|
2709
2710
|
}
|
|
2710
2711
|
}
|
|
@@ -4385,7 +4386,8 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4385
4386
|
hasLocalShellTool: hasOpenAITool("openai.local_shell"),
|
|
4386
4387
|
hasShellTool: hasOpenAITool("openai.shell"),
|
|
4387
4388
|
hasApplyPatchTool: hasOpenAITool("openai.apply_patch"),
|
|
4388
|
-
compactionInput: openaiOptions == null ? void 0 : openaiOptions.compactionInput
|
|
4389
|
+
compactionInput: openaiOptions == null ? void 0 : openaiOptions.compactionInput,
|
|
4390
|
+
providerOptions: openaiOptions
|
|
4389
4391
|
});
|
|
4390
4392
|
warnings.push(...inputWarnings);
|
|
4391
4393
|
const strictJsonSchema = (_d = openaiOptions == null ? void 0 : openaiOptions.strictJsonSchema) != null ? _d : true;
|