@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.
@@ -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
  );