@ai-sdk/openai 2.0.55 → 2.0.57

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
@@ -3471,7 +3471,14 @@ var OpenAIResponsesLanguageModel = class {
3471
3471
  id: (_i = (_h = (_g = this.config).generateId) == null ? void 0 : _h.call(_g)) != null ? _i : generateId2(),
3472
3472
  mediaType: "text/plain",
3473
3473
  title: (_k = (_j = annotation.quote) != null ? _j : annotation.filename) != null ? _k : "Document",
3474
- filename: (_l = annotation.filename) != null ? _l : annotation.file_id
3474
+ filename: (_l = annotation.filename) != null ? _l : annotation.file_id,
3475
+ ...annotation.file_id ? {
3476
+ providerMetadata: {
3477
+ openai: {
3478
+ fileId: annotation.file_id
3479
+ }
3480
+ }
3481
+ } : {}
3475
3482
  });
3476
3483
  }
3477
3484
  }
@@ -4049,7 +4056,14 @@ var OpenAIResponsesLanguageModel = class {
4049
4056
  id: (_s = (_r = (_q = self.config).generateId) == null ? void 0 : _r.call(_q)) != null ? _s : generateId2(),
4050
4057
  mediaType: "text/plain",
4051
4058
  title: (_u = (_t = value.annotation.quote) != null ? _t : value.annotation.filename) != null ? _u : "Document",
4052
- filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id
4059
+ filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id,
4060
+ ...value.annotation.file_id ? {
4061
+ providerMetadata: {
4062
+ openai: {
4063
+ fileId: value.annotation.file_id
4064
+ }
4065
+ }
4066
+ } : {}
4053
4067
  });
4054
4068
  }
4055
4069
  } else if (isErrorChunk(value)) {
@@ -4534,7 +4548,7 @@ var OpenAITranscriptionModel = class {
4534
4548
  };
4535
4549
 
4536
4550
  // src/version.ts
4537
- var VERSION = true ? "2.0.55" : "0.0.0-test";
4551
+ var VERSION = true ? "2.0.57" : "0.0.0-test";
4538
4552
 
4539
4553
  // src/openai-provider.ts
4540
4554
  function createOpenAI(options = {}) {