﻿# Test the client contract when LiteLLM omits gateway headers

A development release can omit LiteLLM-specific response headers. Check ordinary, streaming and error responses and update clients that consume them.

Author: Retrivium editorial team
Updated: 2026-11-22
Canonical URL: https://retrivium.ai/journal/daily-20261122-agent-litellm-client-header-contract/
Language: en

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

- [LiteLLM development release](https://github.com/BerriAI/litellm/releases/tag/v1.112.0-dev.2)
- [Merged header option](https://github.com/BerriAI/litellm/pull/52949)

## Related reading

- [LiteLLM proxy guide](/journal/litellm-proxy-guide/)
- [Streaming gateway behavior](/journal/daily-20261120-agent-litellm-messages-responses-cancel/)
