@ai-sdk/openai 2.0.17 → 2.0.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.
@@ -2203,9 +2203,10 @@ async function convertToOpenAIResponsesMessages({
2203
2203
  };
2204
2204
  } else if (part.mediaType === "application/pdf") {
2205
2205
  if (part.data instanceof URL) {
2206
- throw new import_provider6.UnsupportedFunctionalityError({
2207
- functionality: "PDF file parts with URLs"
2208
- });
2206
+ return {
2207
+ type: "input_file",
2208
+ file_url: part.data.toString()
2209
+ };
2209
2210
  }
2210
2211
  return {
2211
2212
  type: "input_file",
@@ -2499,7 +2500,8 @@ var OpenAIResponsesLanguageModel = class {
2499
2500
  constructor(modelId, config) {
2500
2501
  this.specificationVersion = "v2";
2501
2502
  this.supportedUrls = {
2502
- "image/*": [/^https?:\/\/.*$/]
2503
+ "image/*": [/^https?:\/\/.*$/],
2504
+ "application/pdf": [/^https?:\/\/.*$/]
2503
2505
  };
2504
2506
  this.modelId = modelId;
2505
2507
  this.config = config;