openai.internal._oai_images_mime

(internal) `output_format` names the encoding of the bytes in `b64_json`. The response echoes it for the GPT image models; otherwise the client's own setting is the best available answer, and png is the API default.

Reference version

Signature

function openai.internal._oai_images_mime(format: string | null) -> string

(internal) output_format names the encoding of the bytes in b64_json. The response echoes it for the GPT image models; otherwise the client's own setting is the best available answer, and png is the API default.

Source:<builtin>/openai/ns_internal/images.bamlbytes 1148611757