@ai-sdk/openai 3.0.0-beta.82 → 3.0.0-beta.83

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.0-beta.83
4
+
5
+ ### Patch Changes
6
+
7
+ - ef739fa: fix(openai): refactor apply-patch tool
8
+
3
9
  ## 3.0.0-beta.82
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -198,13 +198,13 @@ declare const openaiTools: {
198
198
  * enabling iterative, multi-step code editing workflows.
199
199
  *
200
200
  */
201
- applyPatch: () => _ai_sdk_provider_utils.Tool<{
201
+ applyPatch: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
202
202
  callId: string;
203
203
  operation: ApplyPatchOperation;
204
204
  }, {
205
205
  status: "completed" | "failed";
206
206
  output?: string;
207
- }>;
207
+ }, {}>;
208
208
  /**
209
209
  * The Code Interpreter tool allows models to write and run Python code in a
210
210
  * sandboxed environment to solve complex problems in domains like data analysis,
package/dist/index.d.ts CHANGED
@@ -198,13 +198,13 @@ declare const openaiTools: {
198
198
  * enabling iterative, multi-step code editing workflows.
199
199
  *
200
200
  */
201
- applyPatch: () => _ai_sdk_provider_utils.Tool<{
201
+ applyPatch: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
202
202
  callId: string;
203
203
  operation: ApplyPatchOperation;
204
204
  }, {
205
205
  status: "completed" | "failed";
206
206
  output?: string;
207
- }>;
207
+ }, {}>;
208
208
  /**
209
209
  * The Code Interpreter tool allows models to write and run Python code in a
210
210
  * sandboxed environment to solve complex problems in domains like data analysis,
package/dist/index.js CHANGED
@@ -1786,7 +1786,7 @@ var applyPatchToolFactory = (0, import_provider_utils14.createProviderToolFactor
1786
1786
  inputSchema: applyPatchInputSchema,
1787
1787
  outputSchema: applyPatchOutputSchema
1788
1788
  });
1789
- var applyPatch = () => applyPatchToolFactory({});
1789
+ var applyPatch = applyPatchToolFactory;
1790
1790
 
1791
1791
  // src/tool/code-interpreter.ts
1792
1792
  var import_provider_utils15 = require("@ai-sdk/provider-utils");
@@ -5412,7 +5412,7 @@ var OpenAITranscriptionModel = class {
5412
5412
  };
5413
5413
 
5414
5414
  // src/version.ts
5415
- var VERSION = true ? "3.0.0-beta.82" : "0.0.0-test";
5415
+ var VERSION = true ? "3.0.0-beta.83" : "0.0.0-test";
5416
5416
 
5417
5417
  // src/openai-provider.ts
5418
5418
  function createOpenAI(options = {}) {