API integration
LiteLLM v1.108.18 LTS Patch Tightens Billing and Error Handling
BerriAI's LiteLLM v1.108.18 LTS patch fixes GPT Image 2.5 uploads, Azure stream filter results and Anthropic-format stream parsing, and turns an unknown previous_response_id into a 400 instead of a billed 200.
Official announcement
BerriAI published LiteLLM v1.108.18, described in its release notes as an LTS patch with 18 PRs (3 added, 11 fixed, 1 improved) and no action needed to upgrade. The following is attribution to the publisher and commentary, not independently verified testing.
According to the release notes, OpenAI GPT Image 2.5 edits that attach a markup file no longer fail with 400, and SDK tuple or Path uploads now work. Azure streamed chats no longer drop prompt_filter_results or the finish chunk's content_filter_results. The notes say Anthropic-format streams no longer fail or log no spend when an upstream sends a non-object or too-deep JSON line, and Z.AI GLM models no longer answer 400 on reasoning_effort, so /v1/messages thinking reaches them.
The notes state that the Responses API now returns 400 instead of a billed 200 with no history when a chat-bridged follow-up uses an unknown previous_response_id, and the Messages API returns 400 for null or numeric text blocks unless drop_params is set. They also list ElevenLabs scribe_v2_realtime transcription on /v1/realtime with spend tracking, per-deployment deferred_tools handling to preserve prompt cache on non-Anthropic models, and guardrail fixes for /v1/messages tool rewriting and Bedrock during_call system/tool_result blocks.
Analysis
For teams proxying follow-up turns through LiteLLM, the billing change matters most: loose behavior that returned a billed 200 without history becomes a 400, so callers relying on it must handle the error rather than treat it as a successful continuation.
Several fixes tighten malformed-input handling, including null text blocks, bad Anthropic JSON lines and unknown previous_response_id. Requests that were previously tolerated silently may now fail; check client error paths before rollout.
Per-deployment deferred_tools to preserve prompt cache is the change most likely to affect cost when Claude Code traffic is routed to non-Anthropic models. The notes do not quantify savings, so the effect remains unverified until measured in your own deployment; if feasible, compare 400 rates and cache hits on shadow traffic before a full switch.
What remains unverified
This release provides no benchmarks or quantified data, so real prompt-cache savings, the completeness of Z.AI GLM thinking passthrough and the accuracy of ElevenLabs realtime transcription spend tracking are not independently confirmed. The net effect of the unknown previous_response_id 400 response on existing client retry logic also needs measurement. Teams should log error rates, spend and cache hit rates across the upgrade, and confirm that the SDK Path upload route works in the target runtime, including permissions and mount behavior.