﻿# LiteLLM queued chat starts enforcing the budget checks used by ordinary chat

Compare ordinary and queued chat with exhausted budgets and required tags; the prerelease adds checks but explicitly leaves some route behaviors distinct.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-queued-chat-budget-reservation/
Language: en

LiteLLM v1.111.0-dev.4 changes queued chat to run previously skipped request checks, tag mappings and budget reservation. Published on November 15 as a prerelease, it intentionally rejects queued calls that violate those rules. Moving a workload into a queue should be tested as a policy boundary, because accepted work and executable work can diverge.

## Use the same caller through both routes

Send matched synthetic requests through ordinary and queued chat with the same key, team and budget configuration. First verify successful work, then deliberately exhaust a small test allowance. Assert rejection before any unintended provider call. This separates policy enforcement from queue scheduling and reveals integrations that interpreted initial acceptance as an unconditional promise that every queued request will eventually execute.

## Required metadata must survive the queue

Exercise the application’s request_tag_mappings and required user metadata with present, absent and malformed values. Inspect the resulting spend row for accepted work. A queue can preserve prompt text while losing the tags needed for attribution or budget policy. Keep synthetic identities in the fixture and compare exact mapped tags, rather than treating any nonempty metadata object as sufficient evidence that the rule ran.

## Dropped streams still need reconciliation

Cancel a queued streaming request after a known amount of synthetic content has been delivered. Inspect final status, delivered output and recorded usage together. The implementation changes accounting for dropped queued streams, so cancellation should not be equated with no work. Compare this path with a rejected request that never reached the provider. They require different observations in an operator dashboard and in cost analysis.

## Parity has documented limits

The PR explicitly leaves pre-call hooks, model-group aliases and the endpoint-disable control outside this parity change. Retain separate tests for any of those mechanisms the application relies on. A passing budget test does not establish complete route equivalence. The migration result should name newly enforced checks and remaining differences, allowing callers to handle deliberate rejection instead of quietly bypassing the policy through a different entry point.

## 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 #51753](https://github.com/BerriAI/litellm/pull/51753)

## Related reading

- [LiteLLM budgets: periods, shared limits and overrun tests](/journal/litellm-budget-reset/)
- [LiteLLM virtual keys: separate access for each application](/journal/litellm-virtual-key-scopes/)
