@ai-sdk/openai 2.0.8 → 2.0.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.
package/dist/index.mjs CHANGED
@@ -2029,7 +2029,7 @@ async function convertToOpenAIResponsesMessages({
2029
2029
  return {
2030
2030
  type: "input_image",
2031
2031
  ...part.data instanceof URL ? { image_url: part.data.toString() } : typeof part.data === "string" && part.data.startsWith("file-") ? { file_id: part.data } : {
2032
- image_url: `data:${mediaType};base64,${part.data}`
2032
+ image_url: `data:${mediaType};base64,${convertToBase642(part.data)}`
2033
2033
  },
2034
2034
  detail: (_b2 = (_a2 = part.providerOptions) == null ? void 0 : _a2.openai) == null ? void 0 : _b2.imageDetail
2035
2035
  };