@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.
package/dist/index.mjs CHANGED
@@ -3475,7 +3475,14 @@ var OpenAIResponsesLanguageModel = class {
3475
3475
  id: (_i = (_h = (_g = this.config).generateId) == null ? void 0 : _h.call(_g)) != null ? _i : generateId2(),
3476
3476
  mediaType: "text/plain",
3477
3477
  title: (_k = (_j = annotation.quote) != null ? _j : annotation.filename) != null ? _k : "Document",
3478
- filename: (_l = annotation.filename) != null ? _l : annotation.file_id
3478
+ filename: (_l = annotation.filename) != null ? _l : annotation.file_id,
3479
+ ...annotation.file_id ? {
3480
+ providerMetadata: {
3481
+ openai: {
3482
+ fileId: annotation.file_id
3483
+ }
3484
+ }
3485
+ } : {}
3479
3486
  });
3480
3487
  }
3481
3488
  }
@@ -4064,7 +4071,14 @@ var OpenAIResponsesLanguageModel = class {
4064
4071
  id: (_s = (_r = (_q = self.config).generateId) == null ? void 0 : _r.call(_q)) != null ? _s : generateId2(),
4065
4072
  mediaType: "text/plain",
4066
4073
  title: (_u = (_t = value.annotation.quote) != null ? _t : value.annotation.filename) != null ? _u : "Document",
4067
- filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id
4074
+ filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id,
4075
+ ...value.annotation.file_id ? {
4076
+ providerMetadata: {
4077
+ openai: {
4078
+ fileId: value.annotation.file_id
4079
+ }
4080
+ }
4081
+ } : {}
4068
4082
  });
4069
4083
  }
4070
4084
  } else if (isErrorChunk(value)) {
@@ -4546,7 +4560,7 @@ var OpenAITranscriptionModel = class {
4546
4560
  };
4547
4561
 
4548
4562
  // src/version.ts
4549
- var VERSION = true ? "3.0.0-beta.39" : "0.0.0-test";
4563
+ var VERSION = true ? "3.0.0-beta.40" : "0.0.0-test";
4550
4564
 
4551
4565
  // src/openai-provider.ts
4552
4566
  function createOpenAI(options = {}) {