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

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.
@@ -327,10 +327,12 @@ var openaiChatResponseSchema = lazySchema(
327
327
  annotations: z2.array(
328
328
  z2.object({
329
329
  type: z2.literal("url_citation"),
330
- start_index: z2.number(),
331
- end_index: z2.number(),
332
- url: z2.string(),
333
- title: z2.string()
330
+ url_citation: z2.object({
331
+ start_index: z2.number(),
332
+ end_index: z2.number(),
333
+ url: z2.string(),
334
+ title: z2.string()
335
+ })
334
336
  })
335
337
  ).nullish()
336
338
  }),
@@ -394,10 +396,12 @@ var openaiChatChunkSchema = lazySchema(
394
396
  annotations: z2.array(
395
397
  z2.object({
396
398
  type: z2.literal("url_citation"),
397
- start_index: z2.number(),
398
- end_index: z2.number(),
399
- url: z2.string(),
400
- title: z2.string()
399
+ url_citation: z2.object({
400
+ start_index: z2.number(),
401
+ end_index: z2.number(),
402
+ url: z2.string(),
403
+ title: z2.string()
404
+ })
401
405
  })
402
406
  ).nullish()
403
407
  }).nullish(),
@@ -835,8 +839,8 @@ var OpenAIChatLanguageModel = class {
835
839
  type: "source",
836
840
  sourceType: "url",
837
841
  id: generateId(),
838
- url: annotation.url,
839
- title: annotation.title
842
+ url: annotation.url_citation.url,
843
+ title: annotation.url_citation.title
840
844
  });
841
845
  }
842
846
  const completionTokenDetails = (_d = response.usage) == null ? void 0 : _d.completion_tokens_details;
@@ -1051,8 +1055,8 @@ var OpenAIChatLanguageModel = class {
1051
1055
  type: "source",
1052
1056
  sourceType: "url",
1053
1057
  id: generateId(),
1054
- url: annotation.url,
1055
- title: annotation.title
1058
+ url: annotation.url_citation.url,
1059
+ title: annotation.url_citation.title
1056
1060
  });
1057
1061
  }
1058
1062
  }