openai.internal._chat_headers

(internal) content-type, then the caller's headers, then the credential — so the endpoint's own auth header always wins over a user override of the same name.

Reference version

Signature

function openai.internal._chat_headers(
preview: bool = …
) -> map<string, string> throws ai.errors.InvalidRequest

(internal) content-type, then the caller's headers, then the credential — so the endpoint's own auth header always wins over a user override of the same name.

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