@ai-sdk/openai 3.0.94 → 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,11 @@
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
+
3
9
  ## 3.0.94
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -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.94" : "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 = {}) {