@ai-sdk/openai 2.0.70 → 2.0.71

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
+ ## 2.0.71
4
+
5
+ ### Patch Changes
6
+
7
+ - 29a5595: Azure OpenAI enabled web-search-preview
8
+
3
9
  ## 2.0.70
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2616,6 +2616,8 @@ var openaiResponsesChunkSchema = (0, import_provider_utils21.lazyValidator)(
2616
2616
  annotation: import_v416.z.discriminatedUnion("type", [
2617
2617
  import_v416.z.object({
2618
2618
  type: import_v416.z.literal("url_citation"),
2619
+ start_index: import_v416.z.number(),
2620
+ end_index: import_v416.z.number(),
2619
2621
  url: import_v416.z.string(),
2620
2622
  title: import_v416.z.string()
2621
2623
  }),
@@ -3697,7 +3699,7 @@ var OpenAIResponsesLanguageModel = class {
3697
3699
  controller.enqueue({
3698
3700
  type: "tool-call",
3699
3701
  toolCallId: value.item.id,
3700
- toolName: "web_search",
3702
+ toolName: webSearchToolName != null ? webSearchToolName : "web_search",
3701
3703
  input: JSON.stringify({}),
3702
3704
  providerExecuted: true
3703
3705
  });
@@ -3798,7 +3800,7 @@ var OpenAIResponsesLanguageModel = class {
3798
3800
  controller.enqueue({
3799
3801
  type: "tool-result",
3800
3802
  toolCallId: value.item.id,
3801
- toolName: "web_search",
3803
+ toolName: webSearchToolName != null ? webSearchToolName : "web_search",
3802
3804
  result: mapWebSearchOutput(value.item.action),
3803
3805
  providerExecuted: true
3804
3806
  });
@@ -4526,7 +4528,7 @@ var OpenAITranscriptionModel = class {
4526
4528
  };
4527
4529
 
4528
4530
  // src/version.ts
4529
- var VERSION = true ? "2.0.70" : "0.0.0-test";
4531
+ var VERSION = true ? "2.0.71" : "0.0.0-test";
4530
4532
 
4531
4533
  // src/openai-provider.ts
4532
4534
  function createOpenAI(options = {}) {