@zenning/openai 3.0.20 → 3.0.21
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 +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +5 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +5 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -2593,15 +2593,18 @@ async function convertToOpenAIResponsesInput({
|
|
|
2593
2593
|
case "tool-call": {
|
|
2594
2594
|
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;
|
|
2595
2595
|
if (part.providerExecuted) {
|
|
2596
|
-
if (store && id != null) {
|
|
2596
|
+
if (store && id != null && !containsApprovalResponses) {
|
|
2597
2597
|
input.push({ type: "item_reference", id });
|
|
2598
2598
|
}
|
|
2599
2599
|
break;
|
|
2600
2600
|
}
|
|
2601
|
-
if (store && id != null) {
|
|
2601
|
+
if (store && id != null && !containsApprovalResponses) {
|
|
2602
2602
|
input.push({ type: "item_reference", id });
|
|
2603
2603
|
break;
|
|
2604
2604
|
}
|
|
2605
|
+
if (store && id != null && containsApprovalResponses) {
|
|
2606
|
+
break;
|
|
2607
|
+
}
|
|
2605
2608
|
const resolvedToolName = toolNameMapping.toProviderToolName(
|
|
2606
2609
|
part.toolName
|
|
2607
2610
|
);
|