@ai-sdk/openai 3.0.93 → 3.0.95

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,19 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.95
4
+
5
+ ### Patch Changes
6
+
7
+ - bdb46fe: Avoid duplicate MCP approval request references when continuing stored OpenAI Responses.
8
+
9
+ ## 3.0.94
10
+
11
+ ### Patch Changes
12
+
13
+ - d3247d7: Keep client-executed function calls paired with their outputs when chaining OpenAI Responses with a previous response ID.
14
+ - Updated dependencies [b2a4d5a]
15
+ - @ai-sdk/provider-utils@4.0.45
16
+
3
17
  ## 3.0.93
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3191,10 +3191,10 @@ async function convertToOpenAIResponsesInput({
3191
3191
  }
3192
3192
  break;
3193
3193
  }
3194
- if (hasPreviousResponseId && store && id != null) {
3194
+ const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || ((_m = customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) != null ? _m : false);
3195
+ if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {
3195
3196
  break;
3196
3197
  }
3197
- const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || ((_m = customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) != null ? _m : false);
3198
3198
  if (store && id != null && isProviderDefinedToolCall) {
3199
3199
  input.push({ type: "item_reference", id });
3200
3200
  break;
@@ -3418,7 +3418,7 @@ async function convertToOpenAIResponsesInput({
3418
3418
  continue;
3419
3419
  }
3420
3420
  processedApprovalIds.add(approvalResponse.approvalId);
3421
- if (store) {
3421
+ if (store && !hasConversation && !hasPreviousResponseId) {
3422
3422
  input.push({
3423
3423
  type: "item_reference",
3424
3424
  id: approvalResponse.approvalId
@@ -7355,7 +7355,7 @@ var OpenAITranscriptionModel = class {
7355
7355
  };
7356
7356
 
7357
7357
  // src/version.ts
7358
- var VERSION = true ? "3.0.93" : "0.0.0-test";
7358
+ var VERSION = true ? "3.0.95" : "0.0.0-test";
7359
7359
 
7360
7360
  // src/openai-provider.ts
7361
7361
  function createOpenAI(options = {}) {