﻿# LiteLLM identifies requests that exceed every deployment’s token-per-minute limit

Classify an oversized request separately from temporary tpm exhaustion; LiteLLM’s prerelease refusal changes retry behavior while preserving routing-policy choices.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-oversized-tpm-refusal/
Language: en

The November 15 LiteLLM v1.111.0-dev.4 prerelease changes usage-based routing for a request larger than every deployment’s configured tpm. It reports the estimated request size and avoids retries that cannot make the request fit. Applications should distinguish this permanent fit problem from temporarily exhausted shared capacity.

## Waiting cannot shrink the request

Construct one request whose estimate exceeds every eligible deployment’s configured limit and another that fits but arrives after ordinary capacity is consumed. They should not share an undifferentiated retry loop. The first requires changing the request or selecting an eligible route; the second may become serviceable later. Use synthetic prompts and instrumented endpoints so the distinction is visible without generating a large real bill.

## Inspect the error contract used by the caller

Capture the exception or HTTP response through the interface the application actually uses. Confirm that the caller recognizes the oversized category and displays an actionable explanation without exposing prompt content. A text match against an old error string can break even when the gateway now reports a clearer reason. Retain the estimated size and relevant configured ceiling as structured diagnostic observations where the interface supports them.

## Fallback remains a policy decision

The implementation keeps group fallbacks available. Configure a larger permitted fallback and assert whether the request reaches it, then repeat with that route forbidden. A larger context or quota does not make every alternative acceptable for the task. Keep model capability, data routing and budget rules attached to the fallback decision rather than automatically sending an oversized request to any endpoint that can receive it.

## Token estimates have an input-shape boundary

Exercise every request representation the application sends rather than generalizing from a single string prompt. The PR records a known estimation limitation for one structured input shape. Measure refusal behavior using the supported estimate and document cases that need separate checks. The useful result is bounded retry work with a comprehensible failure reason, not a claim that every protocol’s token accounting is now exact.

## Sources

- [LiteLLM v1.111.0-dev.4 prerelease notes](https://github.com/BerriAI/litellm/releases/tag/v1.111.0-dev.4)
- [LiteLLM implementation and review #51838](https://github.com/BerriAI/litellm/pull/51838)

## Related reading

- [LiteLLM budgets: periods, shared limits and overrun tests](/journal/litellm-budget-reset/)
- [Retrying generation POSTs: idempotency must be explicit](/journal/provider-post-retry-idempotency-ledger/)
