@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/dist/index.mjs CHANGED
@@ -2684,6 +2684,8 @@ var openaiResponsesChunkSchema = lazyValidator8(
2684
2684
  annotation: z16.discriminatedUnion("type", [
2685
2685
  z16.object({
2686
2686
  type: z16.literal("url_citation"),
2687
+ start_index: z16.number(),
2688
+ end_index: z16.number(),
2687
2689
  url: z16.string(),
2688
2690
  title: z16.string()
2689
2691
  }),
@@ -3770,7 +3772,7 @@ var OpenAIResponsesLanguageModel = class {
3770
3772
  controller.enqueue({
3771
3773
  type: "tool-call",
3772
3774
  toolCallId: value.item.id,
3773
- toolName: "web_search",
3775
+ toolName: webSearchToolName != null ? webSearchToolName : "web_search",
3774
3776
  input: JSON.stringify({}),
3775
3777
  providerExecuted: true
3776
3778
  });
@@ -3871,7 +3873,7 @@ var OpenAIResponsesLanguageModel = class {
3871
3873
  controller.enqueue({
3872
3874
  type: "tool-result",
3873
3875
  toolCallId: value.item.id,
3874
- toolName: "web_search",
3876
+ toolName: webSearchToolName != null ? webSearchToolName : "web_search",
3875
3877
  result: mapWebSearchOutput(value.item.action),
3876
3878
  providerExecuted: true
3877
3879
  });
@@ -4617,7 +4619,7 @@ var OpenAITranscriptionModel = class {
4617
4619
  };
4618
4620
 
4619
4621
  // src/version.ts
4620
- var VERSION = true ? "2.0.70" : "0.0.0-test";
4622
+ var VERSION = true ? "2.0.71" : "0.0.0-test";
4621
4623
 
4622
4624
  // src/openai-provider.ts
4623
4625
  function createOpenAI(options = {}) {