@zenning/openai 1.4.2 → 1.4.3

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.
@@ -2579,8 +2579,14 @@ var OpenAIResponsesLanguageModel = class {
2579
2579
  source: {
2580
2580
  sourceType: "url",
2581
2581
  id: (_h = (_g = (_f = self.config).generateId) == null ? void 0 : _g.call(_f)) != null ? _h : (0, import_provider_utils10.generateId)(),
2582
- url: value.annotation.url,
2583
- title: value.annotation.title
2582
+ file: value.annotation.type && value.annotation.type === "file_citation" ? {
2583
+ type: value.annotation.type,
2584
+ file_id: value.annotation.file_id,
2585
+ filename: value.annotation.filename,
2586
+ index: value.annotation.index
2587
+ } : void 0,
2588
+ url: value.annotation.type && value.annotation.type === "url_citation" ? value.annotation.url : void 0,
2589
+ title: value.annotation.type && value.annotation.type === "url_citation" ? value.annotation.title : void 0
2584
2590
  }
2585
2591
  });
2586
2592
  }
@@ -2683,7 +2689,12 @@ var responseAnnotationAddedSchema = import_zod8.z.object({
2683
2689
  type: import_zod8.z.literal("url_citation"),
2684
2690
  url: import_zod8.z.string(),
2685
2691
  title: import_zod8.z.string()
2686
- })
2692
+ }).or(import_zod8.z.object({
2693
+ type: import_zod8.z.literal("file_citation"),
2694
+ file_id: import_zod8.z.string(),
2695
+ filename: import_zod8.z.string(),
2696
+ index: import_zod8.z.number()
2697
+ }))
2687
2698
  });
2688
2699
  var responseReasoningSummaryTextDeltaSchema = import_zod8.z.object({
2689
2700
  type: import_zod8.z.literal("response.reasoning_summary_text.delta"),