openai.internal._oai_images_response_format
(internal) `response_format` is dall-e-only. An explicit setting always wins; otherwise the GPT image models get the field omitted (they reject it and always answer base64) and everything else gets `b64_json`, because a `url` answer — the dall-e default — is not what a media output type wants.
Reference version
Signature
function openai.internal._oai_images_response_format(
model: string,
explicit: string | null
) -> string | null
(internal) response_format is dall-e-only. An explicit setting always wins; otherwise
the GPT image models get the field omitted (they reject it and always answer
base64) and everything else gets b64_json, because a url answer — the
dall-e default — is not what a media output type wants.
Source:<builtin>/openai/ns_internal/images.bamlbytes 7158–7395