In this article
Exercise each window independently and across rollover; concurrent customer limits require the same request to satisfy every applicable allowance.
The November 13 LiteLLM v1.111.0-dev.2 prerelease adds concurrent limits to reusable customer budgets. A short window and a longer window can both constrain the same customer scope. This changes the acceptance question: resetting the monthly allowance must not silently renew the annual allowance, and a generous annual cap must not bypass an exhausted month.
Use amounts that distinguish the windows
Create a synthetic budget with visibly different short and long allowances. Seed one case below the short cap but above the long cap, then invert the relationship in another case. Both should demonstrate the relevant refusal. A fixture that exceeds both caps cannot establish that both counters are consulted. Save the refusal identity alongside each counter so the operator can explain which allowance currently prevents admission.
A reset belongs to one allowance period
Advance a controlled clock through the short window while keeping the long window active. Confirm the renewed short counter and retained long spend before submitting another request. Do not approximate a calendar boundary by waiting an arbitrary number of seconds in a live account. Explicit synthetic timestamps make the intended comparison repeatable and distinguish a reset error from delayed settlement of an earlier request.
Template edits must preserve an unchanged clock
The same implementation changes duration editing: resubmitting an unchanged budget_duration preserves its reset clock, while changing the duration starts a new window. Test a harmless name edit separately from a real duration change. Otherwise an administrative save can appear to extend an allowance merely because the old deadline moved. Record before and after reset timestamps rather than inferring their meaning from a successful PATCH response.
Explain the scope of the new constraint
Replay the fixture at the customer scopes actually used by the application, retaining organization, team and member identities. The release uses existing window counters; it does not announce an unlimited guarantee against concurrent in-flight overshoot. A useful rollout record names every active window, its reset boundary and its refusal evidence. This lets an application distinguish an exhausted monthly allowance from a longer-term limit that will remain after the next monthly reset.
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.