TECHNOLOGY

LiteLLM adds calendar-year budgets rather than a fixed twelve-month duration

In this article
THE QUICK TAKE

Verify timezone-aware year boundaries, leap-day inclusion and repeated reset behavior; annual calendar admission cannot be inferred from a twelve-month label alone.

LiteLLM v1.111.0-dev.2, released on November 13 as a prerelease, adds annual calendar reset periods. The implementation uses a January 1 boundary with the configured timezone and reset time, including leap days. Budget acceptance should inspect the actual window represented by a saved deadline, because a label such as per year cannot establish whether the system means a calendar period or elapsed duration.

Choose the boundary before testing spend

Create a synthetic annual budget and record its configured timezone, reset time and saved deadline. Place known usage immediately before and after the corresponding year boundary. Compare admission and accounting with a written calendar oracle. A test performed only in midyear can confirm the form saves but never establish which period contains a boundary request or when the next allowance becomes available.

Leap days belong to the represented year

Use a controlled clock to compare leap and non-leap years with the same annual configuration. Inspect window start, end and usage inclusion rather than approximating the year as a constant number of seconds. The release reuses calendar helpers across admission and reset paths. Acceptance should show they describe the same year for each saved deadline, including timezone-aware comparisons, not merely that one next-reset timestamp looks plausible.

Reset retries need stable window identity

Interrupt a harmless reset fixture and retry it with the same captured time. Compare stored period identity and remaining allowance. Calendar support does not make arbitrary maintenance retries safe by itself, so preserve the application’s existing idempotency checks and accounting evidence. Keep reset execution, usage settlement and alert evaluation as separate observations; a correct form option does not prove every consumer adopted the new annual window consistently.

Preserve existing schedule semantics

Retain a small monthly and daily control set when adopting annual support. Do not rewrite established budgets merely to use the new label. The implementation describes a targeted annual addition, not a general financial-calendar system. A useful migration report names the calendar boundary, timezone, leap-year cases and tested consumers, showing that requests and resets agree on the represented year while existing schedules keep their intended meaning.

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