@ai-sdk/openai 2.0.0-alpha.7 → 2.0.0-alpha.9

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.
@@ -118,7 +118,7 @@ function convertToOpenAIChatMessages({
118
118
  type: "file",
119
119
  file: {
120
120
  filename: (_c = part.filename) != null ? _c : `part-${index}.pdf`,
121
- file_data: `data:application/pdf;base64,${part.data}`
121
+ file_data: `data:application/pdf;base64,${convertToBase64(part.data)}`
122
122
  }
123
123
  };
124
124
  } else {