IMAGE_PART_MEDIA_TYPES
@forge/monorepo / backend/src / IMAGE_PART_MEDIA_TYPES
Variable: IMAGE_PART_MEDIA_TYPES
constIMAGE_PART_MEDIA_TYPES: readonly ["image/png","image/jpeg","image/webp","image/gif"]
Defined in: backend/src/files/turn-parts.ts:44
Media types that may travel as an image part, by modality.
An allow-list, not a image/* wildcard — the same choice read_attachment makes for text. A wildcard admits
every future format a provider does not accept, and the failure arrives from the provider as a 400 nobody can
act on. image/svg+xml is deliberately absent: an SVG is a document that can fetch, and a model asked to
"look at" one is being handed markup.