vercel.internal._gw_images_file
(internal) One image prompt part as a `files[]` element. Media is NOT fetched here: the protocol takes a `{type:"url"}` reference directly, so a remote image is handed to the gateway as a link and only local/base64/`data:` sources are inlined.
Reference version
Signature
function vercel.internal._gw_images_file(
media: ai.MediaPart,
preview: bool = …
) -> vercel.internal.GwImagesFile throws baml.errors.InvalidArgument | baml.errors.Io | baml.errors.Timeout | ai.errors.InvalidRequest | ai.errors.NetworkFailure | ai.errors.PreviewUnsupported
(internal) One image prompt part as a files[] element. Media is NOT fetched here: the
protocol takes a {type:"url"} reference directly, so a remote image is
handed to the gateway as a link and only local/base64/data: sources are
inlined.
Source:<builtin>/vercel/ns_internal/images.bamlbytes 5362–6093