@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.
@@ -2129,7 +2129,7 @@ async function convertToOpenAIResponsesMessages({
2129
2129
  return {
2130
2130
  type: "input_image",
2131
2131
  ...part.data instanceof URL ? { image_url: part.data.toString() } : typeof part.data === "string" && part.data.startsWith("file-") ? { file_id: part.data } : {
2132
- image_url: `data:${mediaType};base64,${part.data}`
2132
+ image_url: `data:${mediaType};base64,${convertToBase642(part.data)}`
2133
2133
  },
2134
2134
  detail: (_b2 = (_a2 = part.providerOptions) == null ? void 0 : _a2.openai) == null ? void 0 : _b2.imageDetail
2135
2135
  };