@ai-sdk/openai 3.0.48 → 3.0.49

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.
@@ -3102,6 +3102,11 @@ async function convertToOpenAIResponsesInput({
3102
3102
  filename: (_a2 = item.filename) != null ? _a2 : "data",
3103
3103
  file_data: `data:${item.mediaType};base64,${item.data}`
3104
3104
  };
3105
+ case "file-url":
3106
+ return {
3107
+ type: "input_file",
3108
+ file_url: item.url
3109
+ };
3105
3110
  default:
3106
3111
  warnings.push({
3107
3112
  type: "other",
@@ -3160,6 +3165,12 @@ async function convertToOpenAIResponsesInput({
3160
3165
  file_data: `data:${item.mediaType};base64,${item.data}`
3161
3166
  };
3162
3167
  }
3168
+ case "file-url": {
3169
+ return {
3170
+ type: "input_file",
3171
+ file_url: item.url
3172
+ };
3173
+ }
3163
3174
  default: {
3164
3175
  warnings.push({
3165
3176
  type: "other",