@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.21
4
+
5
+ ### Patch Changes
6
+
7
+ - ret
8
+
3
9
  ## 3.0.20
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2581,15 +2581,18 @@ async function convertToOpenAIResponsesInput({
2581
2581
  case "tool-call": {
2582
2582
  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;
2583
2583
  if (part.providerExecuted) {
2584
- if (store && id != null) {
2584
+ if (store && id != null && !containsApprovalResponses) {
2585
2585
  input.push({ type: "item_reference", id });
2586
2586
  }
2587
2587
  break;
2588
2588
  }
2589
- if (store && id != null) {
2589
+ if (store && id != null && !containsApprovalResponses) {
2590
2590
  input.push({ type: "item_reference", id });
2591
2591
  break;
2592
2592
  }
2593
+ if (store && id != null && containsApprovalResponses) {
2594
+ break;
2595
+ }
2593
2596
  const resolvedToolName = toolNameMapping.toProviderToolName(
2594
2597
  part.toolName
2595
2598
  );
@@ -5780,7 +5783,7 @@ var OpenAITranscriptionModel = class {
5780
5783
  };
5781
5784
 
5782
5785
  // src/version.ts
5783
- var VERSION = true ? "3.0.20" : "0.0.0-test";
5786
+ var VERSION = true ? "3.0.21" : "0.0.0-test";
5784
5787
 
5785
5788
  // src/openai-provider.ts
5786
5789
  function createOpenAI(options = {}) {