openai.internal._chat_body_mentions

(internal) Does the passthrough body mention `key` at all (even as an explicit null)? Used for the Azure max_tokens guard, where "the caller said something about this key" is the question, not "what did they say".

Reference version

Signature

function openai.internal._chat_body_mentions(overrides: baml.json.json | null, key: string) -> bool

(internal) Does the passthrough body mention key at all (even as an explicit null)? Used for the Azure max_tokens guard, where "the caller said something about this key" is the question, not "what did they say".

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