AIGenLab
EN

UPDATElitellm v1.111.1

LiteLLM v1.111.1 cuts failed-auth rows from spend logs

Version & typev1.111.1 · Feature
In short

Requests rejected before authentication no longer create zero-cost spend-log or daily-usage rows, so billing reports stop collecting failed-auth noise.

What changed in this release

18 checkpoints in 4 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.

Pre-auth denials

  • IP check denials: a failed pre-auth IP check no longer reaches billing tables.
  • Body-safety denials: a block before authentication no longer creates a billing row.
  • Route check denials: a pre-auth route failure also creates no billing row.
  • Credential denials: virtual-key, JWT, OAuth, blocked-key, and expired-key refusals all carry the failure marker.
  • Sessions and host steps: undecodable session hashes and pre-auth host steps are treated as pre-auth failures.

Spend rows

  • Spend logs: pre-auth failures write no zero-cost spend-log row.
  • Daily usage: the daily-usage table no longer receives these requests.
  • Database writes: rejected authentication requests no longer trigger these billing writes.
  • Both paths: Python and Rust authentication read the same failure marker.

Preserved behavior

  • Successful requests: authenticated requests keep writing billing records on the existing path.
  • Model access denials: a post-auth model-access denial still writes a failure row.
  • Budgets and rate limits: post-auth key or team budget and rate-limit denials keep their failure rows.
  • Client responses: HTTP status and response content do not change with this fix.
  • Callbacks and metrics: logging callbacks and error metrics stay unchanged.

Upgrade checks

  • Upgrade action: the release says no extra action is needed; move directly to v1.111.1.
  • Image scope: both the ghcr.io and docker.io image addresses ship this release.
  • Signature check: both addresses use the same cosign command, with certificate identity pointing to release.yml.
  • Build: the release contains 3 PRs, 1 fix, and backports #54993 and #55005.

Read the original announcement

On this page
  1. Release inventory
  2. Failed authentication no…
  3. Pre-auth refusals now car…
  4. Spend logs and daily usag…
  5. Post-auth failures still…
  6. Upgrade without config ed…
  7. All three gateways log co…
  8. From v1.108.21 to v1.111.1
  9. Release analysis
  10. Questions
  11. Sources & method

ContextFailed authentication no longer reaches billing tables

The practical change in v1.111.1 is narrow: requests rejected before authentication no longer leave zero-cost rows in spend logs or daily usage. Authenticated requests and post-auth failures keep their accounting path. The PR describes cleaner reports and fewer database writes.

The release has 3 PRs and 1 fix, and needs no extra upgrade action. It adds a failure marker to pre-auth refusals; Python and Rust both use it to decide whether to write a spend row. Only database spend tracking changes; client responses, callbacks, and error metrics do not.

The inventory has 4 groups: pre-auth denials, spend rows, preserved behavior, and upgrade checks. The chart maps the release across those groups and marks unchanged paths; the sections take each group in turn, then compare products and versions.

The release inventory falls into four groups: pre-auth denials, spend rows, preserved behavior, and upgrade checks; the spread counts only the items listed for this release.
Where the 18 grouped changes landWhere the 18 grouped changes landPre-auth denials5Spend rows4Preserved behavior5Upgrade checks4
AIGenLab original

Pre-auth refusals now carry one failure marker

  1. One marker: IP, body-safety, and route checks rejected before authentication all set AUTHENTICATION_FAILURE_MARKER.
  2. Credential denials: virtual-key, JWT, OAuth, blocked-key, and expired-key refusals all use the same failure marker.
  3. Both paths: Python and Rust authentication read the marker, and Rust separates end-user budget denials before key lookup.

Spend logs and daily usage stop taking failed-auth rows

  1. Result: pre-auth failures create no spend-log or daily-usage row, removing a class of zero-cost failures from reports.
  2. Writes: these requests no longer trigger the related database writes, so authentication noise stops growing billing tables.
  3. Decision: tracks_failure_spend returns false when the marker is set; this rule decides whether a row is written.

Post-auth failures still write rows and client responses stay put

  1. Kept: post-auth denials from model access, key or team budgets, and rate limits still write failure rows.
  2. Unchanged: client HTTP responses, logging callbacks, and error metrics stay as they were.
  3. Boundary: the fix suppresses database spend tracking only for pre-auth failures and leaves other failure classes alone.

Upgrade without config edits, then check images and patch scope

  1. Upgrade: the release says no extra action is needed, so existing deployments can move directly to v1.111.1.
  2. Images: both the ghcr.io and docker.io addresses ship this release and use the same verification command.
  3. Build: the release contains 3 PRs, 1 fix, and backports #54993 and #55005.

All three gateways log cost; LiteLLM now keeps failed auth out of spend rows

LiteLLM keeps pre-auth failures out of spend rows, Portkey exposes request logs and status, and Kong splits cost into input and output. This table compares what a request leaves in a log or billing table, not feature counts. Start with billing scope, request status, or token cost detail, then read each product's documented entry and fields.

The products answer different questions: LiteLLM changes which requests enter billing tables, Portkey supplies request logs and status, and Kong supplies input-output token and cost fields. Use LiteLLM for failed-auth billing noise, Portkey for request troubleshooting, and Kong for an input-output cost split. Field count is not a ranking.

Record entry touched by the fixLiteLLM v1.111.1Portkey Gateway v1.15.2Kong AI Gateway 2.3.0
Per-request billing or log recordPre-auth failures: no spend-log or daily-usage row; post-auth failures: failure rowChronological request logs: timestamp, type, model, tokens, thinking tokens, costPer GenAI category: input_tokens, output_tokens, cache-write tokens, input_token_cost, output_token_cost
Usage aggregation entrySpend logs and daily usage tablesThe Logs page lists requests; DO NOT TRACK retains tokens, cost, latencyAI analytics receive token and cost fields

From v1.108.21 to v1.111.1, one fix lands in LTS and mainline

Both releases include #54608; only the channel, PR count, and backport differ. v1.108.21 is the LTS release published at 2026-11-28T22:10:07+00:00, followed by v1.111.1 the next day. Both notes list the spend-log and daily-usage fix: under both releases, pre-auth failures write no row. LTS users use the lts tag; mainline users use v1.111.1. Neither needs extra action.

The shared row matters most: both notes list #54608 for the same authentication-failure accounting fix. Differences are the channel, PR count, and backport numbers. Do not migrate between LTS and mainline for this fix. Stay on lts or use the explicit v1.111.1 tag; both carry the same fix.

Featurev1.108.21 (LTS)v1.111.1
Request rejected before authenticationWrites no spend-log or daily-usage rowWrites no spend-log or daily-usage row
Release channelThe lts image tag always points to the latest LTS releaseShips under the explicit v1.111.1 tag
Build6 PRs, 1 fix, backport #549863 PRs, 1 fix, backports #54993 and #55005

Release analysisUpgrade first if you bill by key or team; model-only teams can wait

Operators who split LiteLLM costs by key, team, or customer gain the most. A bad-key scan used to leave zero-cost failure rows; it no longer does. Model-only teams can wait. If bills go to customers, the first post-upgrade report should already show less failure noise.

Portkey v1.15.2 lists timestamp, request type, model, tokens, cost, and status per request; Kong 2.3.0 splits cost into input_token_cost and output_token_cost and includes cache tokens. LiteLLM adds no cost fields here, and the three address different visibility layers.

LiteLLM's value is a cleaner billing boundary, not a richer cost breakdown. Portkey adds request status, and Kong adds input-output cost detail. For single-request debugging this release does not help; for clean cost accounting it closes the failed-auth gap.

Station view, not independently tested: sample one day of spend logs and daily usage, confirm pre-auth failures produce 0 rows while post-auth budget or rate-limit denials still produce failure rows, then resume billing reports. Cover both Python and Rust paths with a bad credential and a budget denial.

AIGenLab views

Not independently tested

After upgrading, sample one day of spend logs and daily usage before letting billing reports continue.

The fix separates pre-auth failures from post-auth denials; sampling confirms the deployment follows the intended branch.

Operators who split costs by key, team, or customer should upgrade first; model-only teams can wait for a maintenance window.

The change affects billing row writes only and leaves model calls and client responses unchanged.

This fix is not a substitute for request-level status checks; Portkey's Status column and Kong's cost split address different layers.

The official materials expose different fields and entry points, and LiteLLM adds no cost-split fields in this release.

Questions

Which deployments should upgrade first?
Station view, not independently tested: proxies billing by key, team, or customer should upgrade first; model-only deployments can wait for a maintenance window. The change affects billing rows, not model calls or client responses, and the release requires no extra upgrade action. Teams already tracking LTS patches can receive the same fix through that channel without switching to the main line for this item; deployments that do not split costs by owner also need no advance configuration change.
How should you sample the logs after upgrading?
Station view, not independently tested: sample a bad credential and a post-auth budget or rate-limit denial on both Python and Rust paths. Confirm no spend-log or daily-usage row for the former and a failure row for the latter. Record the request time, denial type, and table queried, and check the two sample categories separately: first spend logs, then daily usage, confirming both. Do not substitute a successful call for these two failure samples; if either side still shows a pre-auth failure row, that deployment needs further investigation.
Do failures after authentication still write rows?
Yes. Post-auth model-access, key or team budget, and rate-limit denials still write failure rows; this fix suppresses only database spend tracking for pre-auth failures. Client HTTP responses, log callbacks, and error metrics also remain unchanged, so acceptance should focus on billing rows rather than response content or callback fields. Keep post-auth budget denials on the sample checklist to avoid mistaking them for rows that this fix should have removed.

Official sources and scope

Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.