Skip to content Skip to footer

How to Upgrade AI Libraries Without Breaking Tool Calls, Billing or Audit Logs

What Happened

LiteLLM v1.108.20 is an LTS patch release with seven PRs and three fixes; its release notes say no upgrade action is required. It changes Anthropic handling so tool messages with a non-string tool_call_id return a 400 error. Cancelled OpenAI and Azure /v1/responses streams now bill using provider-reported usage. It also fixes GET /audit returning 500 after team or key updates, including for records saved before the upgrade. The audit fix is also present in v1.111.0. The lts container tag follows the latest LTS patch rather than a fixed version [1].

A separate v0.40.19-rc0 release candidate reports faster short histories, draft proposals and conversation snapshots in inkling2; more compact Engram history buffers in mlxrunner; and a llama-server bump. The available notes do not specify the llama-server version or describe a stable v0.40.19 release [2][4]. Streamlit 1.67.1.dev20261126 is a nightly development build with no accompanying feature or change notes [3].

Why It Matters to Businesses

The LiteLLM patch touches three production controls: request validation, usage-based charges and audit availability. Applications that emit malformed Anthropic tool-call IDs may now receive an explicit 400 rather than continuing through the previous behavior. Finance and observability systems should expect cancelled streams to reflect provider-reported usage. Teams that rely on audit retrieval can test the fix against both new and older records [1].

The release candidate and Streamlit nightly are evaluation inputs, not evidence of production-ready changes. In particular, an unspecified llama-server bump needs compatibility testing before it can be treated as a routine dependency update [2][3][4].

Kimbodo Engineering Perspective

We would prioritize the LiteLLM patch where audit failures or cancelled-stream accounting affect operations. The claim that no upgrade action is required is useful release guidance, but it does not replace application-specific tests. We would treat the v0.40.19 candidate as a performance experiment and the Streamlit nightly as a build to assess only when a team needs to investigate a specific issue [1][2][3].

For reproducible deployments, we would pin the tested LiteLLM image by digest. The moving lts tag is convenient for finding the latest patch, but should not silently change a production deployment between test and rollout [1].

How We Would Implement It

  • Inventory deployed library and image versions, then test the LiteLLM LTS patch in staging with representative Anthropic tool messages, cancelled OpenAI and Azure response streams, and audit records from before and after team or key changes [1].
  • Verify LiteLLM release images with Cosign against BerriAI’s release-workflow identity and the GitHub Actions OIDC issuer before promoting a tested image. Apply the same check to database, non-root and Docker Hub variants if used [1].
  • Compare provider-reported stream usage with gateway billing and internal cost reports; alert on unexpected differences rather than assuming cancellation means zero cost [1].
  • Benchmark v0.40.19-rc0 against the current deployment using short conversations, draft proposals and snapshots. Test llama-server compatibility separately because the notes do not identify the bumped version [2][4].
  • Keep the Streamlit nightly outside the production upgrade path until its behavior is tested against the application; the available build notice lists no changes to assess [3].

Risks, Costs and Security

The main regression risks are stricter tool-call validation, changed accounting for cancelled streams and compatibility effects from the unspecified llama-server bump [1][2][4]. Testing those paths costs more than a basic startup check, but targets the behavior most likely to affect users or invoices.

Image signature verification helps establish that a LiteLLM image came from the expected release workflow; it does not establish that the image is free of vulnerabilities or suitable for a particular application. Pair verification with digest pinning, dependency scanning, least-privilege deployment and a rollback plan [1].

Where Kimbodo Comes In

Kimbodo builds and operates this in production for businesses — see our AI Application Development practice, or Estimate My AI Application.

Sources

  1. [1] 1.108.20 (LTS)
  2. [2] v0.40.19
  3. [3] 1.67.1.dev20261126
  4. [4] v0.40.19-rc0

Leave a comment

0.0/5

Engineering Founded & Customer Focused

KIMBODO LLC. © 2026. All Rights Reserved.