@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.
@@ -2572,15 +2572,18 @@ async function convertToOpenAIResponsesInput({
2572
2572
  case "tool-call": {
2573
2573
  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;
2574
2574
  if (part.providerExecuted) {
2575
- if (store && id != null) {
2575
+ if (store && id != null && !containsApprovalResponses) {
2576
2576
  input.push({ type: "item_reference", id });
2577
2577
  }
2578
2578
  break;
2579
2579
  }
2580
- if (store && id != null) {
2580
+ if (store && id != null && !containsApprovalResponses) {
2581
2581
  input.push({ type: "item_reference", id });
2582
2582
  break;
2583
2583
  }
2584
+ if (store && id != null && containsApprovalResponses) {
2585
+ break;
2586
+ }
2584
2587
  const resolvedToolName = toolNameMapping.toProviderToolName(
2585
2588
  part.toolName
2586
2589
  );