TECHNOLOGY

LiteLLM begins enforcing stored customer hierarchy limits on incoming requests

In this article
THE QUICK TAKE

Exhaust one customer hierarchy level at a time and inspect provider calls and accounting; hierarchy storage, identity resolution and enforcement need separate evidence.

LiteLLM v1.111.0-dev.2, released on November 13 as a prerelease, puts customer organization, team and member budgets and limits on the request path. Stored configuration becomes an admission decision. Acceptance should demonstrate which level rejects a request and which identities receive usage, because merely displaying a saved customer budget does not prove it has governed model calls.

Isolate each limiting level

Create a synthetic hierarchy where only the organization cap binds, then only the team cap and finally only the member cap. Keep all other limits comfortably above the fixture. Assert the intended rejection reason and zero unwanted provider calls. If several ceilings are exhausted simultaneously, a passing rejection cannot identify which new check actually ran or reveal a missing lower-level control hidden by a broader limit.

Resolve membership from authoritative configuration

Send customer identity headers with synthetic values and compare them with the configured member, team and organization links. A caller-provided identifier should resolve under the gateway’s documented trust boundary, not be accepted as arbitrary membership. Include a mismatch and a missing identity as controls. Record the effective hierarchy used for both admission and later spend so a request cannot be checked under one customer and charged to another.

Successful calls should charge the intended levels

Run a small known workload and compare the member, team and organization counters with an independent ledger. Check daily history and recurring-window behavior separately from request admission. Hierarchical rollup can intentionally represent the same economic event at several levels; summing every level together would double-count it. Keep the analytical question explicit when comparing leaf totals with parent views.

Treat new rejection as a policy migration

Inspect callers that previously relied on customer budgets being informational only. A newly rejected request should produce a comprehensible outcome, not an automatic attempt to remove customer headers or choose an untracked route. The prerelease adds enforcement; it does not prove every business plan is configured appropriately. A reviewable rollout joins stored hierarchy, resolved membership, limiting-level tests and correctly attributed accepted work.

Sources

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.

Explore GPU hosting
← All articles