openai.internal._restore_format_schema
(internal) Put the output type's schema back over the pruned body, verbatim: the prune treats a `null` in it as an unset option, which it is not.
Reference version
Signature
function openai.internal._restore_format_schema(
body: baml.json.json,
structured: openai.internal.StructuredOutput | null
) -> baml.json.json throws never
(internal) Put the output type's schema back over the pruned body, verbatim: the
prune treats a null in it as an unset option, which it is not.
Source:<builtin>/openai/ns_internal/responses.bamlbytes 27380–27884