@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/dist/index.mjs CHANGED
@@ -2649,15 +2649,18 @@ async function convertToOpenAIResponsesInput({
2649
2649
  case "tool-call": {
2650
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;
2651
2651
  if (part.providerExecuted) {
2652
- if (store && id != null) {
2652
+ if (store && id != null && !containsApprovalResponses) {
2653
2653
  input.push({ type: "item_reference", id });
2654
2654
  }
2655
2655
  break;
2656
2656
  }
2657
- if (store && id != null) {
2657
+ if (store && id != null && !containsApprovalResponses) {
2658
2658
  input.push({ type: "item_reference", id });
2659
2659
  break;
2660
2660
  }
2661
+ if (store && id != null && containsApprovalResponses) {
2662
+ break;
2663
+ }
2661
2664
  const resolvedToolName = toolNameMapping.toProviderToolName(
2662
2665
  part.toolName
2663
2666
  );
@@ -5862,7 +5865,7 @@ var OpenAITranscriptionModel = class {
5862
5865
  };
5863
5866
 
5864
5867
  // src/version.ts
5865
- var VERSION = true ? "3.0.20" : "0.0.0-test";
5868
+ var VERSION = true ? "3.0.21" : "0.0.0-test";
5866
5869
 
5867
5870
  // src/openai-provider.ts
5868
5871
  function createOpenAI(options = {}) {