vercel.internal._gw_images_value

(internal) One `images[]` element as an image value. Raw base64 is the documented shape; a `data:<mime>;base64,` payload carries its own MIME type and wins. A `data:` URL in any OTHER encoding (percent-escaped bytes) is a parse failure, not base64 — storing the URL text as the image's payload would hand user code bytes that are not the image.

Reference version

Signature

function vercel.internal._gw_images_value(
encoded: string,
fallback_mime: string
) -> image throws ai.errors.ParseFailed

(internal) One images[] element as an image value. Raw base64 is the documented shape; a data:<mime>;base64, payload carries its own MIME type and wins. A data: URL in any OTHER encoding (percent-escaped bytes) is a parse failure, not base64 — storing the URL text as the image's payload would hand user code bytes that are not the image.

Source:<builtin>/vercel/ns_internal/images.bamlbytes 1367514427