In this article
Verify header removal at the client boundary and keep request correlation available through approved telemetry.
LiteLLM v1.112.0-dev.2, published November 21, 2026, includes a setting to omit the gateway’s x-litellm-* response headers. The merged change describes coverage for normal replies, streams and errors. The default keeps the headers. The option targets the LiteLLM prefix and leaves provider headers in place. Those details matter to teams using the gateway for an external API or consuming its metadata internally.
Inventory dependencies before changing the setting
Check whether the client, proxy or support tooling reads a LiteLLM header to label a model, correlate a request or show a cost estimate. Take inventory at the receiving boundary as well as in the gateway code. An application can depend on information added well after its own handler creates the payload. If a value is required, decide which approved interface or internal telemetry should supply it.
Check every response class
Use an owned test deployment and a stub provider that returns a predictable payload. Compare an ordinary success, a completed stream, a harmless validation error and a controlled upstream failure. Keep the test inputs and upstream payload fixed when switching the option. Verify that the targeted headers disappear while status, expected body and required transport headers still match the intended contract. The stream must continue to deliver its ordinary terminal event.
Test what the real client sees
An ingress proxy, edge service or SDK may add or normalize headers. Record the response at the actual application boundary to distinguish changes in LiteLLM from changes elsewhere. Inventory the remaining provider headers and assess them separately according to the application’s disclosure policy. Changing this option alone does not define a full public metadata policy.
Preserve a support path
Keep a test case that customer support can correlate using an approved identifier. Verify that private internal diagnostics remain available to the appropriate operators. Record the exact development build and the enabled default alongside the alternative. Qualify the behavior before choosing this setting in a wider deployment.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.