@ai-sdk/openai 3.0.16 → 3.0.17

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.17
4
+
5
+ ### Patch Changes
6
+
7
+ - 4218f86: fix(openai): preserve tool id for apply patch tool
8
+
3
9
  ## 3.0.16
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2637,6 +2637,20 @@ async function convertToOpenAIResponsesInput({
2637
2637
  });
2638
2638
  break;
2639
2639
  }
2640
+ if (hasApplyPatchTool && resolvedToolName === "apply_patch") {
2641
+ const parsedInput = await (0, import_provider_utils23.validateTypes)({
2642
+ value: part.input,
2643
+ schema: applyPatchInputSchema
2644
+ });
2645
+ input.push({
2646
+ type: "apply_patch_call",
2647
+ call_id: parsedInput.callId,
2648
+ id,
2649
+ status: "completed",
2650
+ operation: parsedInput.operation
2651
+ });
2652
+ break;
2653
+ }
2640
2654
  input.push({
2641
2655
  type: "function_call",
2642
2656
  call_id: part.toolCallId,
@@ -5774,7 +5788,7 @@ var OpenAITranscriptionModel = class {
5774
5788
  };
5775
5789
 
5776
5790
  // src/version.ts
5777
- var VERSION = true ? "3.0.16" : "0.0.0-test";
5791
+ var VERSION = true ? "3.0.17" : "0.0.0-test";
5778
5792
 
5779
5793
  // src/openai-provider.ts
5780
5794
  function createOpenAI(options = {}) {