@ai-sdk/openai 3.0.0-beta.39 → 3.0.0-beta.40

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.
@@ -3718,7 +3718,14 @@ var OpenAIResponsesLanguageModel = class {
3718
3718
  id: (_i = (_h = (_g = this.config).generateId) == null ? void 0 : _h.call(_g)) != null ? _i : (0, import_provider_utils29.generateId)(),
3719
3719
  mediaType: "text/plain",
3720
3720
  title: (_k = (_j = annotation.quote) != null ? _j : annotation.filename) != null ? _k : "Document",
3721
- filename: (_l = annotation.filename) != null ? _l : annotation.file_id
3721
+ filename: (_l = annotation.filename) != null ? _l : annotation.file_id,
3722
+ ...annotation.file_id ? {
3723
+ providerMetadata: {
3724
+ openai: {
3725
+ fileId: annotation.file_id
3726
+ }
3727
+ }
3728
+ } : {}
3722
3729
  });
3723
3730
  }
3724
3731
  }
@@ -4307,7 +4314,14 @@ var OpenAIResponsesLanguageModel = class {
4307
4314
  id: (_s = (_r = (_q = self.config).generateId) == null ? void 0 : _r.call(_q)) != null ? _s : (0, import_provider_utils29.generateId)(),
4308
4315
  mediaType: "text/plain",
4309
4316
  title: (_u = (_t = value.annotation.quote) != null ? _t : value.annotation.filename) != null ? _u : "Document",
4310
- filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id
4317
+ filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id,
4318
+ ...value.annotation.file_id ? {
4319
+ providerMetadata: {
4320
+ openai: {
4321
+ fileId: value.annotation.file_id
4322
+ }
4323
+ }
4324
+ } : {}
4311
4325
  });
4312
4326
  }
4313
4327
  } else if (isErrorChunk(value)) {