@ai-sdk/openai 2.0.84 → 2.0.85

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.
@@ -491,7 +491,7 @@ declare const webSearchPreviewInputSchema: _ai_sdk_provider_utils.LazySchema<Rec
491
491
  declare const webSearchPreview: _ai_sdk_provider_utils.ProviderDefinedToolFactoryWithOutputSchema<{}, {
492
492
  /**
493
493
  * An object describing the specific action taken in this web search call.
494
- * Includes details on how the model used the web (search, open_page, find).
494
+ * Includes details on how the model used the web (search, open_page, findInPage).
495
495
  */
496
496
  action: {
497
497
  /**
@@ -513,9 +513,9 @@ declare const webSearchPreview: _ai_sdk_provider_utils.ProviderDefinedToolFactor
513
513
  url?: string | null;
514
514
  } | {
515
515
  /**
516
- * Action type "find": Searches for a pattern within a loaded page.
516
+ * Action type "findInPage": Searches for a pattern within a loaded page.
517
517
  */
518
- type: "find";
518
+ type: "findInPage";
519
519
  /**
520
520
  * The URL of the page searched for the pattern.
521
521
  */
@@ -491,7 +491,7 @@ declare const webSearchPreviewInputSchema: _ai_sdk_provider_utils.LazySchema<Rec
491
491
  declare const webSearchPreview: _ai_sdk_provider_utils.ProviderDefinedToolFactoryWithOutputSchema<{}, {
492
492
  /**
493
493
  * An object describing the specific action taken in this web search call.
494
- * Includes details on how the model used the web (search, open_page, find).
494
+ * Includes details on how the model used the web (search, open_page, findInPage).
495
495
  */
496
496
  action: {
497
497
  /**
@@ -513,9 +513,9 @@ declare const webSearchPreview: _ai_sdk_provider_utils.ProviderDefinedToolFactor
513
513
  url?: string | null;
514
514
  } | {
515
515
  /**
516
- * Action type "find": Searches for a pattern within a loaded page.
516
+ * Action type "findInPage": Searches for a pattern within a loaded page.
517
517
  */
518
- type: "find";
518
+ type: "findInPage";
519
519
  /**
520
520
  * The URL of the page searched for the pattern.
521
521
  */
@@ -2617,7 +2617,7 @@ var openaiResponsesChunkSchema = (0, import_provider_utils21.lazyValidator)(
2617
2617
  url: import_v414.z.string().nullish()
2618
2618
  }),
2619
2619
  import_v414.z.object({
2620
- type: import_v414.z.literal("find"),
2620
+ type: import_v414.z.literal("find_in_page"),
2621
2621
  url: import_v414.z.string().nullish(),
2622
2622
  pattern: import_v414.z.string().nullish()
2623
2623
  })
@@ -2827,7 +2827,7 @@ var openaiResponsesResponseSchema = (0, import_provider_utils21.lazyValidator)(
2827
2827
  url: import_v414.z.string().nullish()
2828
2828
  }),
2829
2829
  import_v414.z.object({
2830
- type: import_v414.z.literal("find"),
2830
+ type: import_v414.z.literal("find_in_page"),
2831
2831
  url: import_v414.z.string().nullish(),
2832
2832
  pattern: import_v414.z.string().nullish()
2833
2833
  })
@@ -3189,7 +3189,7 @@ var webSearchOutputSchema = (0, import_provider_utils25.lazySchema)(
3189
3189
  url: import_v418.z.string().nullish()
3190
3190
  }),
3191
3191
  import_v418.z.object({
3192
- type: import_v418.z.literal("find"),
3192
+ type: import_v418.z.literal("findInPage"),
3193
3193
  url: import_v418.z.string().nullish(),
3194
3194
  pattern: import_v418.z.string().nullish()
3195
3195
  })
@@ -3243,7 +3243,7 @@ var webSearchPreviewOutputSchema = (0, import_provider_utils26.lazySchema)(
3243
3243
  url: import_v419.z.string().nullish()
3244
3244
  }),
3245
3245
  import_v419.z.object({
3246
- type: import_v419.z.literal("find"),
3246
+ type: import_v419.z.literal("findInPage"),
3247
3247
  url: import_v419.z.string().nullish(),
3248
3248
  pattern: import_v419.z.string().nullish()
3249
3249
  })
@@ -4499,9 +4499,13 @@ function mapWebSearchOutput(action) {
4499
4499
  };
4500
4500
  case "open_page":
4501
4501
  return { action: { type: "openPage", url: action.url } };
4502
- case "find":
4502
+ case "find_in_page":
4503
4503
  return {
4504
- action: { type: "find", url: action.url, pattern: action.pattern }
4504
+ action: {
4505
+ type: "findInPage",
4506
+ url: action.url,
4507
+ pattern: action.pattern
4508
+ }
4505
4509
  };
4506
4510
  }
4507
4511
  }