openai.internal._chat_apply_directives
(internal) Splice each parked directives object back onto the content part that carries it, dropping the reserved key. Runs right after `_chat_prune_nulls` and before the `request_body` passthrough merge, so the authored directives sit on the wire exactly as written and the caller's passthrough still wins last.
Reference version
Signature
function openai.internal._chat_apply_directives(j: baml.json.json) -> baml.json.json
(internal) Splice each parked directives object back onto the content part that carries
it, dropping the reserved key. Runs right after _chat_prune_nulls and
before the request_body passthrough merge, so the authored directives sit
on the wire exactly as written and the caller's passthrough still wins last.
Source:<builtin>/openai/ns_internal/chat.bamlbytes 34147–35105