@ai-sdk/openai 4.0.0-beta.15 → 4.0.0-beta.17

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
@@ -3085,7 +3085,7 @@ async function convertToOpenAIResponsesInput({
3085
3085
  break;
3086
3086
  }
3087
3087
  case "custom": {
3088
- if (part.kind === "openai-compaction") {
3088
+ if (part.kind === "openai.compaction") {
3089
3089
  const providerOpts = (_n = part.providerOptions) == null ? void 0 : _n[providerOptionsName];
3090
3090
  const id = providerOpts == null ? void 0 : providerOpts.itemId;
3091
3091
  if (hasConversation && id != null) {
@@ -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",
@@ -5445,7 +5456,7 @@ var OpenAIResponsesLanguageModel = class {
5445
5456
  case "compaction": {
5446
5457
  content.push({
5447
5458
  type: "custom",
5448
- kind: "openai-compaction",
5459
+ kind: "openai.compaction",
5449
5460
  providerMetadata: {
5450
5461
  [providerOptionsName]: {
5451
5462
  type: "compaction",
@@ -6088,7 +6099,7 @@ var OpenAIResponsesLanguageModel = class {
6088
6099
  } else if (value.item.type === "compaction") {
6089
6100
  controller.enqueue({
6090
6101
  type: "custom",
6091
- kind: "openai-compaction",
6102
+ kind: "openai.compaction",
6092
6103
  providerMetadata: {
6093
6104
  [providerOptionsName]: {
6094
6105
  type: "compaction",
@@ -6809,7 +6820,7 @@ var OpenAITranscriptionModel = class {
6809
6820
  };
6810
6821
 
6811
6822
  // src/version.ts
6812
- var VERSION = true ? "4.0.0-beta.15" : "0.0.0-test";
6823
+ var VERSION = true ? "4.0.0-beta.17" : "0.0.0-test";
6813
6824
 
6814
6825
  // src/openai-provider.ts
6815
6826
  function createOpenAI(options = {}) {