openai.internal._chat_audio_output_mime

(internal) The mime type of an audio OUTPUT payload. The response's `message.audio` object carries the bytes but never says what they are — the format is whatever the request asked for, so it is read back out of the passthrough body (`{"audio":{"format":"wav"}}`). OpenAI accepts wav|mp3|flac|opus|pcm16 and defaults to nothing, so wav is the assumption when the caller enabled the modality some other way.

Reference version

Signature

function openai.internal._chat_audio_output_mime(request_body: baml.json.json | null) -> string

(internal) The mime type of an audio OUTPUT payload. The response's message.audio object carries the bytes but never says what they are — the format is whatever the request asked for, so it is read back out of the passthrough body ({"audio":{"format":"wav"}}). OpenAI accepts wav|mp3|flac|opus|pcm16 and defaults to nothing, so wav is the assumption when the caller enabled the modality some other way.

Source:<builtin>/openai/ns_internal/chat.bamlbytes 1826618547