@ai-sdk/openai 3.0.0-beta.61 → 3.0.0-beta.62

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.62
4
+
5
+ ### Patch Changes
6
+
7
+ - 64aa48f: Azure OpenAI enabled web-search-preview
8
+
3
9
  ## 3.0.0-beta.61
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2801,6 +2801,8 @@ var openaiResponsesChunkSchema = (0, import_provider_utils22.lazySchema)(
2801
2801
  annotation: import_v417.z.discriminatedUnion("type", [
2802
2802
  import_v417.z.object({
2803
2803
  type: import_v417.z.literal("url_citation"),
2804
+ start_index: import_v417.z.number(),
2805
+ end_index: import_v417.z.number(),
2804
2806
  url: import_v417.z.string(),
2805
2807
  title: import_v417.z.string()
2806
2808
  }),
@@ -4074,7 +4076,7 @@ var OpenAIResponsesLanguageModel = class {
4074
4076
  controller.enqueue({
4075
4077
  type: "tool-call",
4076
4078
  toolCallId: value.item.id,
4077
- toolName: "web_search",
4079
+ toolName: webSearchToolName != null ? webSearchToolName : "web_search",
4078
4080
  input: JSON.stringify({}),
4079
4081
  providerExecuted: true
4080
4082
  });
@@ -4182,7 +4184,7 @@ var OpenAIResponsesLanguageModel = class {
4182
4184
  controller.enqueue({
4183
4185
  type: "tool-result",
4184
4186
  toolCallId: value.item.id,
4185
- toolName: "web_search",
4187
+ toolName: webSearchToolName != null ? webSearchToolName : "web_search",
4186
4188
  result: mapWebSearchOutput(value.item.action)
4187
4189
  });
4188
4190
  } else if (value.item.type === "computer_call") {
@@ -4976,7 +4978,7 @@ var OpenAITranscriptionModel = class {
4976
4978
  };
4977
4979
 
4978
4980
  // src/version.ts
4979
- var VERSION = true ? "3.0.0-beta.61" : "0.0.0-test";
4981
+ var VERSION = true ? "3.0.0-beta.62" : "0.0.0-test";
4980
4982
 
4981
4983
  // src/openai-provider.ts
4982
4984
  function createOpenAI(options = {}) {