Turn on native structured outputs and JSON schema outputs for LiteLLM per provider with supports_native_structured_outputs or supports_json_schema_outputs. Providers that can enforce a schema natively now do, so you get dependable structured responses without a cleanup pass.
See the LiteLLM structured output docs for usage.