openai.internal._chat_audio_format

(internal) `input_audio.format` is the mime subtype, with the one alias the API needs. Unknown subtypes are forwarded rather than rejected: OpenAI documents wav/mp3 but transcodes others, and a compatible server may accept more (this is the engine's behaviour; sys_llm hard-errored on anything but wav/mp3).

Reference version

Signature

function openai.internal._chat_audio_format(mime_type: string) -> string

(internal) input_audio.format is the mime subtype, with the one alias the API needs. Unknown subtypes are forwarded rather than rejected: OpenAI documents wav/mp3 but transcodes others, and a compatible server may accept more (this is the engine's behaviour; sys_llm hard-errored on anything but wav/mp3).

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