@ai-sdk/openai 3.0.0-beta.94 → 3.0.0-beta.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.0-beta.95
4
+
5
+ ### Patch Changes
6
+
7
+ - 40dc7fa: fix(openai): change find action type to find_in_page action type
8
+
3
9
  ## 3.0.0-beta.94
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -32,7 +32,7 @@ type OpenAIImageModelId = 'dall-e-3' | 'dall-e-2' | 'gpt-image-1' | 'gpt-image-1
32
32
  declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{}, {
33
33
  /**
34
34
  * An object describing the specific action taken in this web search call.
35
- * Includes details on how the model used the web (search, open_page, find).
35
+ * Includes details on how the model used the web (search, open_page, find_in_page).
36
36
  */
37
37
  action: {
38
38
  /**
@@ -54,9 +54,9 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryWi
54
54
  url?: string | null;
55
55
  } | {
56
56
  /**
57
- * Action type "find": Searches for a pattern within a loaded page.
57
+ * Action type "findInPage": Searches for a pattern within a loaded page.
58
58
  */
59
- type: "find";
59
+ type: "findInPage";
60
60
  /**
61
61
  * The URL of the page searched for the pattern.
62
62
  */
@@ -351,7 +351,7 @@ declare const openaiTools: {
351
351
  type: "openPage";
352
352
  url?: string | null;
353
353
  } | {
354
- type: "find";
354
+ type: "findInPage";
355
355
  url?: string | null;
356
356
  pattern?: string | null;
357
357
  };
@@ -381,7 +381,7 @@ declare const openaiTools: {
381
381
  type: "openPage";
382
382
  url?: string | null;
383
383
  } | {
384
- type: "find";
384
+ type: "findInPage";
385
385
  url?: string | null;
386
386
  pattern?: string | null;
387
387
  };
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ type OpenAIImageModelId = 'dall-e-3' | 'dall-e-2' | 'gpt-image-1' | 'gpt-image-1
32
32
  declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{}, {
33
33
  /**
34
34
  * An object describing the specific action taken in this web search call.
35
- * Includes details on how the model used the web (search, open_page, find).
35
+ * Includes details on how the model used the web (search, open_page, find_in_page).
36
36
  */
37
37
  action: {
38
38
  /**
@@ -54,9 +54,9 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryWi
54
54
  url?: string | null;
55
55
  } | {
56
56
  /**
57
- * Action type "find": Searches for a pattern within a loaded page.
57
+ * Action type "findInPage": Searches for a pattern within a loaded page.
58
58
  */
59
- type: "find";
59
+ type: "findInPage";
60
60
  /**
61
61
  * The URL of the page searched for the pattern.
62
62
  */
@@ -351,7 +351,7 @@ declare const openaiTools: {
351
351
  type: "openPage";
352
352
  url?: string | null;
353
353
  } | {
354
- type: "find";
354
+ type: "findInPage";
355
355
  url?: string | null;
356
356
  pattern?: string | null;
357
357
  };
@@ -381,7 +381,7 @@ declare const openaiTools: {
381
381
  type: "openPage";
382
382
  url?: string | null;
383
383
  } | {
384
- type: "find";
384
+ type: "findInPage";
385
385
  url?: string | null;
386
386
  pattern?: string | null;
387
387
  };
package/dist/index.js CHANGED
@@ -2064,7 +2064,7 @@ var webSearchOutputSchema = (0, import_provider_utils20.lazySchema)(
2064
2064
  url: import_v415.z.string().nullish()
2065
2065
  }),
2066
2066
  import_v415.z.object({
2067
- type: import_v415.z.literal("find"),
2067
+ type: import_v415.z.literal("findInPage"),
2068
2068
  url: import_v415.z.string().nullish(),
2069
2069
  pattern: import_v415.z.string().nullish()
2070
2070
  })
@@ -2118,7 +2118,7 @@ var webSearchPreviewOutputSchema = (0, import_provider_utils21.lazySchema)(
2118
2118
  url: import_v416.z.string().nullish()
2119
2119
  }),
2120
2120
  import_v416.z.object({
2121
- type: import_v416.z.literal("find"),
2121
+ type: import_v416.z.literal("findInPage"),
2122
2122
  url: import_v416.z.string().nullish(),
2123
2123
  pattern: import_v416.z.string().nullish()
2124
2124
  })
@@ -2932,7 +2932,7 @@ var openaiResponsesChunkSchema = (0, import_provider_utils24.lazySchema)(
2932
2932
  url: import_v419.z.string().nullish()
2933
2933
  }),
2934
2934
  import_v419.z.object({
2935
- type: import_v419.z.literal("find"),
2935
+ type: import_v419.z.literal("find_in_page"),
2936
2936
  url: import_v419.z.string().nullish(),
2937
2937
  pattern: import_v419.z.string().nullish()
2938
2938
  })
@@ -3236,7 +3236,7 @@ var openaiResponsesResponseSchema = (0, import_provider_utils24.lazySchema)(
3236
3236
  url: import_v419.z.string().nullish()
3237
3237
  }),
3238
3238
  import_v419.z.object({
3239
- type: import_v419.z.literal("find"),
3239
+ type: import_v419.z.literal("find_in_page"),
3240
3240
  url: import_v419.z.string().nullish(),
3241
3241
  pattern: import_v419.z.string().nullish()
3242
3242
  })
@@ -5125,9 +5125,13 @@ function mapWebSearchOutput(action) {
5125
5125
  };
5126
5126
  case "open_page":
5127
5127
  return { action: { type: "openPage", url: action.url } };
5128
- case "find":
5128
+ case "find_in_page":
5129
5129
  return {
5130
- action: { type: "find", url: action.url, pattern: action.pattern }
5130
+ action: {
5131
+ type: "findInPage",
5132
+ url: action.url,
5133
+ pattern: action.pattern
5134
+ }
5131
5135
  };
5132
5136
  }
5133
5137
  }
@@ -5485,7 +5489,7 @@ var OpenAITranscriptionModel = class {
5485
5489
  };
5486
5490
 
5487
5491
  // src/version.ts
5488
- var VERSION = true ? "3.0.0-beta.94" : "0.0.0-test";
5492
+ var VERSION = true ? "3.0.0-beta.95" : "0.0.0-test";
5489
5493
 
5490
5494
  // src/openai-provider.ts
5491
5495
  function createOpenAI(options = {}) {