@ai-sdk/openai 3.0.0-beta.95 → 3.0.0-beta.96

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
@@ -335,10 +335,12 @@ var openaiChatResponseSchema = lazySchema(
335
335
  annotations: z2.array(
336
336
  z2.object({
337
337
  type: z2.literal("url_citation"),
338
- start_index: z2.number(),
339
- end_index: z2.number(),
340
- url: z2.string(),
341
- title: z2.string()
338
+ url_citation: z2.object({
339
+ start_index: z2.number(),
340
+ end_index: z2.number(),
341
+ url: z2.string(),
342
+ title: z2.string()
343
+ })
342
344
  })
343
345
  ).nullish()
344
346
  }),
@@ -402,10 +404,12 @@ var openaiChatChunkSchema = lazySchema(
402
404
  annotations: z2.array(
403
405
  z2.object({
404
406
  type: z2.literal("url_citation"),
405
- start_index: z2.number(),
406
- end_index: z2.number(),
407
- url: z2.string(),
408
- title: z2.string()
407
+ url_citation: z2.object({
408
+ start_index: z2.number(),
409
+ end_index: z2.number(),
410
+ url: z2.string(),
411
+ title: z2.string()
412
+ })
409
413
  })
410
414
  ).nullish()
411
415
  }).nullish(),
@@ -843,8 +847,8 @@ var OpenAIChatLanguageModel = class {
843
847
  type: "source",
844
848
  sourceType: "url",
845
849
  id: generateId(),
846
- url: annotation.url,
847
- title: annotation.title
850
+ url: annotation.url_citation.url,
851
+ title: annotation.url_citation.title
848
852
  });
849
853
  }
850
854
  const completionTokenDetails = (_d = response.usage) == null ? void 0 : _d.completion_tokens_details;
@@ -1059,8 +1063,8 @@ var OpenAIChatLanguageModel = class {
1059
1063
  type: "source",
1060
1064
  sourceType: "url",
1061
1065
  id: generateId(),
1062
- url: annotation.url,
1063
- title: annotation.title
1066
+ url: annotation.url_citation.url,
1067
+ title: annotation.url_citation.title
1064
1068
  });
1065
1069
  }
1066
1070
  }
@@ -5567,7 +5571,7 @@ var OpenAITranscriptionModel = class {
5567
5571
  };
5568
5572
 
5569
5573
  // src/version.ts
5570
- var VERSION = true ? "3.0.0-beta.95" : "0.0.0-test";
5574
+ var VERSION = true ? "3.0.0-beta.96" : "0.0.0-test";
5571
5575
 
5572
5576
  // src/openai-provider.ts
5573
5577
  function createOpenAI(options = {}) {