@zenning/openai 3.0.13 → 3.0.14
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 +7 -0
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -11
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +6 -10
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +6 -10
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2552,10 +2552,8 @@ async function convertToOpenAIResponsesInput({
|
|
|
2552
2552
|
const input = [];
|
|
2553
2553
|
const warnings = [];
|
|
2554
2554
|
const processedApprovalIds = /* @__PURE__ */ new Set();
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2557
|
-
);
|
|
2558
|
-
console.log("[OpenAI Provider] Approval continuation detected:", hasApprovalResponses);
|
|
2555
|
+
const skipItemReferences = (providerOptionsName && (store == null ? void 0 : store.skipItemReferencesForApproval)) === true;
|
|
2556
|
+
console.log("[OpenAI Provider] Skip item references flag:", skipItemReferences);
|
|
2559
2557
|
if (compactionInput && compactionInput.length > 0) {
|
|
2560
2558
|
input.push(...compactionInput);
|
|
2561
2559
|
}
|
|
@@ -2650,25 +2648,23 @@ async function convertToOpenAIResponsesInput({
|
|
|
2650
2648
|
}
|
|
2651
2649
|
case "tool-call": {
|
|
2652
2650
|
const id = (_g = (_d = (_c = part.providerOptions) == null ? void 0 : _c[providerOptionsName]) == null ? void 0 : _d.itemId) != null ? _g : (_f = (_e = part.providerMetadata) == null ? void 0 : _e[providerOptionsName]) == null ? void 0 : _f.itemId;
|
|
2653
|
-
const skipItemReference = hasApprovalResponses;
|
|
2654
2651
|
console.log("[OpenAI Provider] Processing tool-call:", {
|
|
2655
2652
|
toolCallId: part.toolCallId,
|
|
2656
2653
|
toolName: part.toolName,
|
|
2657
2654
|
id,
|
|
2658
2655
|
providerExecuted: part.providerExecuted,
|
|
2659
2656
|
store,
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
willCreateItemReference: store && id != null && !skipItemReference
|
|
2657
|
+
skipItemReferences,
|
|
2658
|
+
willCreateItemReference: store && id != null && !skipItemReferences
|
|
2663
2659
|
});
|
|
2664
2660
|
if (part.providerExecuted) {
|
|
2665
|
-
if (store && id != null && !
|
|
2661
|
+
if (store && id != null && !skipItemReferences) {
|
|
2666
2662
|
console.log("[OpenAI Provider] Creating item_reference (providerExecuted)");
|
|
2667
2663
|
input.push({ type: "item_reference", id });
|
|
2668
2664
|
}
|
|
2669
2665
|
break;
|
|
2670
2666
|
}
|
|
2671
|
-
if (store && id != null && !
|
|
2667
|
+
if (store && id != null && !skipItemReferences) {
|
|
2672
2668
|
console.log("[OpenAI Provider] Creating item_reference (non-providerExecuted)");
|
|
2673
2669
|
input.push({ type: "item_reference", id });
|
|
2674
2670
|
break;
|
|
@@ -5870,7 +5866,7 @@ var OpenAITranscriptionModel = class {
|
|
|
5870
5866
|
};
|
|
5871
5867
|
|
|
5872
5868
|
// src/version.ts
|
|
5873
|
-
var VERSION = true ? "3.0.
|
|
5869
|
+
var VERSION = true ? "3.0.13" : "0.0.0-test";
|
|
5874
5870
|
|
|
5875
5871
|
// src/openai-provider.ts
|
|
5876
5872
|
function createOpenAI(options = {}) {
|