LiteLLM v1.65.4-stablestable Released Apr 05, 2025
Impact Score: 8/10

LiteLLM v1.65.4-stable - Release Notes & Engineering Impact

Source available - automated, not human-reviewed

Component: litellm · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-24.

Automated impact estimate - compatibility not verified
📄 .MD
⚡ Executive Summary (TL;DR)

LiteLLM v1.65.4-stable introduces a significant architectural shift to improve reliability by migrating database spend updates to Redis, effectively reducing DB deadlocks. The release also broadens model support across Vertex AI, Databricks, and Gemini while enhancing proxy security and operational metrics.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Developers should note the availability of new support for Gemini audio, Anthropic prompt caching refinements, and extended DBRX/Databricks model endpoints.

📊 Product & Engineering Leads

New features include enhanced support for SSE MCP servers and expanded Gemini capabilities, increasing the flexibility of integrated LLM workflows.

⚙️ DevOps & Security

Ops teams should prioritize testing the new Redis-backed database transaction architecture which aims to resolve high-concurrency deadlock issues.

✨ New Features & Capabilities (5)

  • Added support for Gemini audio input and Gemini-2.0-flash
  • Added support for Google AI Studio /v1/files upload API
  • Added support for SSE MCP servers
  • Added DBRX Anthropic model support with thinking and response_format
  • Added authentication support for /metrics endpoints

⚡ Performance & Enhancements (4)

  • Implemented Redis-based spend tracking to eliminate DB deadlocks
  • Refactored database update transactions for improved reliability
  • Added operational metrics for database transaction architecture and provider-level error differentiation
  • Improved UI usage reporting and team model management permissions

🔧 Bug Fixes & Patches (4)

  • Resolved circular reference error in proxy server when max_parallel_requests is 0
  • Fixed Anthropic prompt caching and response_format integration
  • Fixed Databricks model endpoint configurations
  • Corrected Vertex AI credential caching issues

❓ Frequently Asked Questions

Does LiteLLM v1.65.4-stable contain breaking changes?

The release notes do not explicitly document breaking changes; however, it introduces a major architectural shift to Redis-backed transactions for spend logs which may require environment verification.

What is the primary highlight of v1.65.4-stable?

The primary highlight is the significant reliability upgrade that moves database spend updates to Redis to prevent deadlocks under high load.

How should teams prepare to upgrade to v1.65.4-stable?

Teams should review the new database transaction architecture, ensure Redis is properly configured for the proxy, and verify the new security settings for the /metrics endpoint.

📄 View Raw Release Notes (Original Developer Log)
## Docker Run LiteLLM Proxy ```bash docker run -e STORE_MODEL_IN_DB=True -p 4000:4000 ghcr.io/berriai/litellm:main-v1.65.4-stable ``` ## pip install LiteLLM Proxy ```bash pip install litellm==1.65.4.post1 ``` ## What's Changed * Add support to Vertex AI transformation for anyOf union type with null fields by @NickGrab in https://github.com/BerriAI/litellm/pull/9618 * fix(logging): add json formatting for uncaught exceptions (#9615) by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9619 * fix: wrong indentation of ttlSecondsAfterFinished in chart by @Dbzman in https://github.com/BerriAI/litellm/pull/9611 * Fix anthropic thinking + response_format by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9594 * Add support to Vertex AI transformation for anyOf union type with null fields by @NickGrab in https://github.com/BerriAI/litellm/pull/9625 * fix(openrouter/chat/transformation.py): raise informative message for openrouter key error by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9626 * [Reliability] - Reduce DB Deadlocks by storing spend updates in Redis and then committing to DB by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9608 * [Refactor] - Use single class for managing DB update spend transactions by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9600 * Add bedrock latency optimized inference support + Vertex AI Multimodal embedding cost tracking by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9623 * build(pyproject.toml): add new dev dependencies - for type checking by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9631 * install prisma migration files - connects litellm proxy to litellm's prisma migration files by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9637 * update docs for openwebui by @tan-yong-sheng in https://github.com/BerriAI/litellm/pull/9636 * Add gemini audio input support + handle special tokens in sagemaker response by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9640 * [Docs - Release notes v0] v1.65.0-stable by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9643 * [Feat] - MCP improvements, add support for using SSE MCP servers by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9642 * [FIX] - Add password to sync sentinel client by @jmarshall-medallia in https://github.com/BerriAI/litellm/pull/9622 * fix: Anthropic prompt caching on GCP Vertex AI by @sammcj in https://github.com/BerriAI/litellm/pull/9605 * Fixes Databricks llama3.3-70b endpoint and add databricks claude 3.7 sonnet endpoint by @anton164 in https://github.com/BerriAI/litellm/pull/9661 * fix(docs): update xAI Grok vision model reference by @colesmcintosh in https://github.com/BerriAI/litellm/pull/9286 * docs(gemini): fix typo by @GabrielLoiseau in https://github.com/BerriAI/litellm/pull/9581 * Update all_caches.md by @KPCOFGS in https://github.com/BerriAI/litellm/pull/9562 * [Bug fix] - Sagemaker endpoint with inference component streaming by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9515 * Revert "Correct Databricks llama3.3-70b endpoint and add databricks c… by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9668 * Revert "fix: Anthropic prompt caching on GCP Vertex AI" by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9670 * [Refactor] - Expose litellm.messages.acreate() and litellm.messages.create() to make LLM API calls in Anthropic API spec by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9567 * Openrouter streaming fixes + Anthropic 'file' message support by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9667 * fix(cost_calculator.py): allows checking received + sent model name w… by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9669 * Revert "Revert "Correct Databricks llama3.3-70b endpoint and add databricks c…" by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9676 * Update model_prices_and_context_window.json add gemini-2.5-pro-exp-03-25 by @superpoussin22 in https://github.com/BerriAI/litellm/pull/9650 * fix(proxy_server.py): Fix "Circular reference detected" error when max_parallel_requests = 0 by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9671 * UI (new_usage.tsx): Report 'total_tokens' + report success/failure calls by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9675 * [Reliability] - Ensure new Redis + DB architecture tracks spend accurately by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9673 * [Bug fix] - Service accounts - only apply `service_account_settings.enforced_params` on service accounts by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9683 * UI - New Usage Tab fixes by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9696 * [Reliability Fixes] - Ensure no deadlocks occur when updating `DailyUserSpendTransaction` by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9690 * Virtual key based policies in Aim Guardrails by @hxtomer in https://github.com/BerriAI/litellm/pull/9499 * fix(streaming_handler.py): fix completion start time tracking + Anthropic 'reasoning_effort' param mapping by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9688 * Litellm user daily activity allow non admin usage by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9695 * fix(model_management_endpoints.py): fix allowing team admins to update team models by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9697 * Add support for max_completion_tokens to the Cohere chat transformati… by @simha104 in https://github.com/BerriAI/litellm/pull/9701 * fix(gemini/): add gemini/ route embedding optional param mapping support by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9677 * Add Google AI Studio `/v1/files` upload API support by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9645 * [Docs] High Availability Setup (Resolve DB Deadlocks) by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9714 * Bump image-size from 1.1.1 to 1.2.1 in /docs/my-website by @dependabot in https://github.com/BerriAI/litellm/pull/9708 * [Bug fix] Azure o-series tool calling by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9694 * [Reliability Fix] - Use Redis for PodLock Manager instead of PG (ensures no deadlocks occur) by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9715 * Ban hardcoded numbers - merge of https://github.com/BerriAI/litellm/pull/9513 by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9709 * [Feat] Add VertexAI gemini-2.0-flash by @Dobiasd in https://github.com/BerriAI/litellm/pull/9723 * Fix: Use request body in curl log for Gemini streaming mode by @fengjiajie in https://github.com/BerriAI/litellm/pull/9736 * LiteLLM Minor Fixes & Improvements (04/02/2025) by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9725 * fix:Gemini Flash 2.0 implementation is not returning the logprobs by @sajdakabir in https://github.com/BerriAI/litellm/pull/9713 * UI Improvements + Fixes - remove 'default key' on user signup + fix showing user models available for personal key creation by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9741 * Fix prompt caching for Anthropic tool calls by @aorwall in https://github.com/BerriAI/litellm/pull/9706 * passthrough kwargs during acompletion, and unwrap extra_body for openrouter by @adrianlyjak in https://github.com/BerriAI/litellm/pull/9747 * [Feat] UI - Test Key v2 page - allow testing image endpoints + polish the page by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9748 * [Feat] Allow assigning SSO users to teams on MSFT SSO by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9745 * Fix VertexAI Credential Caching issue by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9756 * [Reliability] v2 DB Deadlock Reduction Architecture - Add Max Size for In-Memory Queue + Backpressure Mechanism by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9759 * fix(router.py): support reusable credentials via passthrough router by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9758 * Allow team members to see team models by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9742 * fix(xai/chat/transformation.py): filter out 'name' param for xai non-… by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9761 * Gemini image generation output support by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9646 * [Fix] issue that metadata key exist, but value is None by @chaosddp in https://github.com/BerriAI/litellm/pull/9764 * fix(asr-groq): add groq whisper models to model cost map by @liuhu in https://github.com/BerriAI/litellm/pull/9648 * Update model_prices_and_context_window.json by @caramulrooney in https://github.com/BerriAI/litellm/pull/9620 * [Reliability] Emit operational metrics for new DB Transaction architecture by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9719 * [Security feature] Allow adding authentication on /metrics endpoints by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9766 * [Reliability] Prometheus emit llm provider on failure metric - make it easy to differentiate litellm error vs llm api error by @ishaan-jaff in https://github.com/BerriAI/litellm/pull/9760 * Fix prisma migrate deploy to use correct directory by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9767 * Add DBRX Anthropic w/ thinking + response_format support by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9744 * build: bump litellm-proxy-extras version by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9771 * Update model_prices by @aoaim in https://github.com/BerriAI/litellm/pull/9768 * Move daily user transaction logging outside of 'disable_spend_logs' flag - different tables by @krrishdholakia in https://github.com/BerriAI/litellm/pull/9772 ## New Contributors * @Dbzman made their first contribution in https://github.com/BerriAI/litellm/pull/9611 * @tan-yong-sheng made their first contribution in https://github.com/BerriAI/litellm/pull/9636 * @jmarshall-medallia made their first contribution in https://github.com/BerriAI/litellm/pull/9622 * @GabrielLoiseau made their first contribution in https://github.com/BerriAI/litellm/pull/9581 * @KPCOFGS made their first contribution in https://github.com/BerriAI/litellm/pull/9562 * @simha104 made their first contribution in https://github.com/BerriAI/litellm/pull/9701 * @Dobiasd made their first contribution in https://github.com/BerriAI/litellm/pull/9723 * @sajdakabir made their first contribution in https://github.com/BerriAI/litellm/pull/9713 * @aorwall made their first contribution in https://github.com/BerriAI/litellm/pull/9706 * @adrianlyjak made their first contribution in https://github.com/BerriAI/litellm/pull/9747 * @chaosddp made their first contribution in https://github.com/BerriAI/litellm/pull/9764 * @liuhu made their first contribution in https://github.com/BerriAI/litellm/pull/9648 * @caramulrooney made their first contribution in https://github.com/BerriAI/litellm/pull/9620 * @aoaim made their first contribution in https://github.com/BerriAI/litellm/pull/9768 **Full Changelog**: https://github.com/BerriAI/litellm/compare/v1.65.0-stable...v1.65.4-stable ### Don't want to maintain your internal proxy? get in touch 🎉 Hosted Proxy Alpha: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat ## ## Docker Run LiteLLM Proxy ``` docker run \ -e STORE_MODEL_IN_DB=True \ -p 4000:4000 \ ghcr.io/berriai/litellm:litellm_stable_release_branch-v1.65.4-stable ``` ### Don't want to maintain your internal proxy? get in touch 🎉 Hosted Proxy Alpha: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat ## ## Docker Run LiteLLM Proxy ``` docker run \ -e STORE_MODEL_IN_DB=True \ -p 4000:4000 \ ghcr.io/berriai/litellm:litellm_stable_release_branch-v1.65.4-stable ``` ### Don't want to maintain your internal proxy? get in touch 🎉 Hosted Proxy Alpha: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat ## Load Test LiteLLM Proxy Results | Name | Status | Median Response Time (ms) | Average Response Time (ms) | Requests/s | Failures/s | Request Count | Failure Count | Min Response Time (ms) | Max Response Time (ms) | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | /chat/completions | Passed ✅ | 250.0 | 290.6249604552489 | 6.049265367502635 | 0.0 | 1810 | 0 | 217.5791270000218 | 5146.377050000012 | | Aggregated | Passed ✅ | 250.0 | 290.6249604552489 | 6.049265367502635 | 0.0 | 1810 | 0 | 217.5791270000218 | 5146.377050000012 |