@ai-sdk/openai 4.0.0-beta.16 → 4.0.0-beta.18

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
@@ -3235,6 +3235,11 @@ async function convertToOpenAIResponsesInput({
3235
3235
  filename: (_a2 = item.filename) != null ? _a2 : "data",
3236
3236
  file_data: `data:${item.mediaType};base64,${item.data}`
3237
3237
  };
3238
+ case "file-url":
3239
+ return {
3240
+ type: "input_file",
3241
+ file_url: item.url
3242
+ };
3238
3243
  default:
3239
3244
  warnings.push({
3240
3245
  type: "other",
@@ -3293,6 +3298,12 @@ async function convertToOpenAIResponsesInput({
3293
3298
  file_data: `data:${item.mediaType};base64,${item.data}`
3294
3299
  };
3295
3300
  }
3301
+ case "file-url": {
3302
+ return {
3303
+ type: "input_file",
3304
+ file_url: item.url
3305
+ };
3306
+ }
3296
3307
  default: {
3297
3308
  warnings.push({
3298
3309
  type: "other",
@@ -6809,7 +6820,7 @@ var OpenAITranscriptionModel = class {
6809
6820
  };
6810
6821
 
6811
6822
  // src/version.ts
6812
- var VERSION = true ? "4.0.0-beta.16" : "0.0.0-test";
6823
+ var VERSION = true ? "4.0.0-beta.18" : "0.0.0-test";
6813
6824
 
6814
6825
  // src/openai-provider.ts
6815
6826
  function createOpenAI(options = {}) {