github BerriAI/litellm v1.113.0-rc.1

pre-releaseone hour ago

Verify this release

cosign verify \
  --certificate-identity https://github.com/BerriAI/project-releaser/.github/workflows/release.yml@refs/heads/main \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  ghcr.io/berriai/litellm:v1.113.0-rc.1

Same command for the docker.io/litellm/litellm image

What's new in 1.113.0-rc.1

665 PRs. 78 added, 221 fixed, 23 changed, 20 improved, 2 removed. 4 need action

Action required

  • Messages API: Remove container, top_k and inference_geo from /v1/messages requests that route to OpenAI models (#54173)
  • Keys, teams and auth: Add /watsonx and /langfuse to allowed_passthrough_routes for non-admin keys that use them (#55007)
  • Guardrails: Point custom guardrail paths at a class, not an instance (#50838)
  • Other: Move calls from /typesafe/... to /v1/systemone or /v1/decisions (#52165)

Highlights

  • Deployment: Fixed proxy with a database crashing at startup on Python 3.10 and prisma 0.13+, broken since v1.111.0 (#54416)
  • Deployment: Fixed dropped requests on pooled keep-alive connections when workers recycle, broken since v1.107.0 (#53882, #53908)
  • Keys, teams and auth: Added per-key and per-team model input and output token limits (ITPM/OTPM) to the v3 rate limiter (#54311)
  • Keys, teams and auth: Added LDAP group sync to team memberships, with LDAP authoritative for matched teams when writes are on (#50130)
  • Caching: Added semantic cache on/off, similarity threshold and TTL overrides per key, user and team (#53905)
  • Caching: Fixed Redis connection count climbing every 10 minutes by reusing the async pool (#34871)
  • Guardrails: Fixed Presidio not masking PII in streamed and non-streamed tool calls (#53396)
  • Logging and observability: Fixed missing Prometheus histograms and metrics with PROMETHEUS_MULTIPROC_DIR or a separate metrics port, broken since v1.110.0 (#54393)
  • Lens: Added an authenticated SDK callback that sends traces to Lens without manual OTLP setup (#55012)
  • Other providers: Added Huawei Cloud MaaS provider with cost map pricing (#54225)

All changes

OpenAI (10)
  • Added the four OpenAI Healthcare model configurations with pricing so spend is tracked (#54199)
  • Fixed max_tokens 400 and Claude Code failures on gpt-chat-latest and chat-latest models (#51151)
  • Fixed Agents API session calls through /openai logging $0 spend, so budgets now apply (#51237)
  • Fixed background: true pass-through responses logging $0 instead of billing the creating key (#53586)
  • Fixed 400 on GPT Image 2.5 image_edit when sending a markup file (#53815)
  • Fixed drop_params not applying to reasoning objects on openai/ chat, Responses and /v1/messages (#53865)
  • Fixed o3 reasoning_effort of minimal or none, now dropped with drop_params or refused clearly (#54066)
  • Fixed chat-latest max input tokens, now 272000 instead of 400000 (#54260)
  • Fixed image edits failing when they name a LiteLLM file id, by sending the deployment's OpenAI file id (#54274)
  • Fixed OpenAI pass-through calls ignoring a deployment's custom model_info prices in spend and budgets (#54551)
Azure (9)
  • Fixed streamed Azure chats dropping prompt_filter_results and finish-chunk content_filter_results (#50932)
  • Fixed pass-through to a new Azure AI Search index failing with a 500 until each instance syncs (#51098)
  • Fixed async Azure transcriptions ignoring the deployment's api_version (#53400)
  • Fixed /azure/... passthrough returning 500 when the model matches a non-Azure group, broken since v1.109.1 (#53904)
  • Fixed azure_ai/kimi-k3.1-pro limits to 1,000,000 input and 262,144 output tokens (#54057)
  • Fixed deprecation dates of four Azure gpt-chat-latest models to match the retirement schedule (#54555)
  • Fixed excessive memory use in Azure Document Intelligence output when page spans overlap (#54568)
  • Fixed client anthropic-beta header being dropped for azure_ai deployments on /v1/messages (#55113)
  • Changed five azure_ai model retirement dates to the later dates Azure states (#54067, #54184)
Anthropic (10)
  • Added a January 22, 2027 retirement date for claude-opus-4-5 in the cost map (#53883)
  • Fixed 400 from Claude on /v1/messages when mixed Claude and Gemini groups send unsigned thinking blocks (#51793)
  • Fixed safeguards classifier and compaction summary calls logging under a random session id (#53405)
  • Fixed 500 on a malformed thinking_blocks, which now answers 400 naming the field (#53762)
  • Fixed 1 phantom output token logged when an error frame follows message_start, now logs 0 (#53914)
  • Fixed Anthropic cache tokens missing from the response token total used by usage-based routing (#53999)
  • Fixed async automatic cache_control insertion crashing on Pydantic Message inputs, broken since v1.112.0-dev.1 (#54055) Also in 1.112.0
  • Fixed 500 when a list or object advisor block id appears in message history (#54167)
  • Fixed inherited Anthropic keys replacing configured bearer credentials on Anthropic fallbacks (#54271)
  • Fixed rate-limit gauges not updating for streamed /v1/messages, /anthropic pass-through and Foundry Claude (#54373)
AWS Bedrock (16)
  • Added the May 23, 2027 end of life date for Claude Opus 4.5 models (#53933)
  • Added Bedrock GovCloud us-gov.openai.gpt-5.6-cyber pricing at its model card price (#54277)
  • Added native pricing and serving of Claude on the bedrock_mantle provider on the Rust gateway (#54946)
  • Fixed Bedrock model discovery ignoring the configured control-plane endpoint (#50840)
  • Fixed a one minute worker stall on small Bedrock tools with shared $defs (#51137)
  • Fixed failures on Bedrock deployments with an empty api_base or runtime endpoint (#51244)
  • Fixed 400 on computer and browser toolsets with Bedrock invoke /v1/messages (#51756)
  • Fixed expired AWS SSO logins or missing profiles returning 500 instead of 401 (#53362)
  • Fixed 400 on encoding_format for OpenAI SDK embeddings on Bedrock Nova 2 (#53755)
  • Fixed Bedrock pass-through UnknownOperationException for bedrock/invoke/<id> and bedrock/converse/<id> models (#53836)
  • Fixed /v1/messages 400 for the server-side-fallback beta on Bedrock Invoke, Mantle and Databricks (#53857)
  • Fixed forwarded Anthropic keys replacing IAM auth on Bedrock fallbacks (#54209)
  • Fixed 400 on Mantle gemma-4 tool schemas that include propertyNames (#54214)
  • Fixed pass-through Bedrock Mantle Messages calls logging $0 or billing at Anthropic rates (#54236)
  • Fixed Nova audio and video embeddings billing $0 on deployments that set only a token price, broken since v1.112.0 (#54304)
  • Fixed 400 from Bedrock Invoke when Claude Code adds tools mid-conversation with inline-tools-2026-09-15 (#55032)
Vertex AI and Gemini (18)
  • Added Gemini page and sheet slice options and Files API references on chat completions (#52611)
  • Added cost tracking for vertex_ai/gemini-4-neon-cyber-permissive (#53896)
  • Added Flex image output token prices for four Vertex Gemini image models (#54718)
  • Fixed Gemini image refusals returning 200 with data: [], they now return an error (#29125)
  • Fixed Gemini TTS returning WAV for format: pcm16 and a doubled header on /v1/audio/speech (#51145)
  • Fixed 400 from newer Gemini models when the last user message is empty (#51311)
  • Fixed Vertex Imagen image edit returning ValueError instead of a 400 BadRequestError on missing image or prompt (#52538)
  • Fixed Gemini image size and imageConfig being ignored, unmappable values now return 400 (#53580)
  • Fixed Gemini batch lines that end malformed with no output being reported as successful (#53957)
  • Fixed Gemini embedding video_metadata that samples no frames, which now answers 400 instead of 500 (#54086)
  • Fixed Gemini Chat Completions rejecting tool_choice value validated (#54191)
  • Fixed 400 for wav as audio.format on Gemini TTS chat completions (#54289)
  • Fixed gemini/gemini-2.5-flash-image Flex image output tokens billed at the standard rate (#54331)
  • Fixed cache_control on a later turn caching only that turn, which gave Gemini 400s or wrong answers, broken since v1.105.0 (#54434)
  • Fixed missing success logging and spend for streamGenerateContent calls when the client disconnects early (#54545)
  • Fixed /v1/messages with cache_control failing with a 400 on Gemini 4 models (#54999) Also in 1.108.22
  • Changed GET /v1beta/files on /gemini to list only files the calling key owns, admins still see all (#54308)
  • Improved memory use of concurrent Vertex image edits by streaming request bodies (#53877)
Other providers (32)
  • Added MiniMax-H3-Image support on /v1/images/generations and /v1/images/edits with spend tracking (#50881)
  • Added Nace nace/parse-* document parsing as an OCR provider on /v1/ocr with spend tracking (#52519)
  • Added cost tracking for together_ai/deepseek-ai/DeepSeek-V4.1-Flash-1017-fast (#53906)
  • Added a December 11, 2026 retirement date for databricks/databricks-gpt-5-nano (#53907)
  • Added fal.ai fal_ai/recraft/vectorize/pro and FLUX 3 Max video promotional pricing through December 7 (#53974)
  • Added function tool support for 19 more Perplexity Agent API models, and new ones get tools by default (#54047)
  • Added Volcengine Ark Seedream image generation, editing and pricing (#54076)
  • Added Huawei Cloud MaaS provider with cost map pricing (#54225)
  • Added Fireworks Qwen4 Max and Hy4 Flash serverless pricing so requests no longer track at $0 (#54237)
  • Added pricing for Fal Krea 3 LoRA text-to-image and edit models (#54380)
  • Added pricing for xAI grok-4.6-latest and grok-4.7-latest and xai/grok-4.6 batch prices (#54381)
  • Added Fireworks Inkling 2 Small pricing so its requests no longer track at $0 (#54499)
  • Added Fireworks GLM 5.3 Flex, GLM 5.3 Flash Flex and GLM 5.3 Spot pricing (#54560)
  • Added Databricks Gemini Nano Banana 2.1, Gemini 4 Neon and Kimi K3.1 Pro Fast to the model cost map (#54745)
  • Added retirement dates for xAI grok-code-fast and grok-code-fast-1-0825 in the cost map (#54764)
  • Fixed OpenRouter streams dropping chunks that carry only reasoning_details, such as Claude's thinking signature (#48412)
  • Fixed streamed vLLM chat dropping prompt_token_ids and spend rows storing prompt text with message logging off (#51087)
  • Fixed DeepSeek V4 on /v1/messages ignoring output_config.effort and thinking (#51317)
  • Fixed GitHub Copilot invalid_pdf_request errors when messages include HTML or plain-text documents (#53554)
  • Fixed Ollama model info lookups ignoring the call's api_base and api_key, and added retries (#53830)
  • Fixed Perplexity agent models rejecting or dropping function tools on chat completions (#53952)
  • Fixed Mistral rejecting unknown message fields when drop_params is on (#53962, #54040)
  • Fixed 400 on logprobs and top_logprobs for nvidia_nim/ chat calls (#54008)
  • Fixed null context window and output limits for OpenRouter models, now read from OpenRouter's catalog (#54046)
  • Fixed streamed watsonx chat calls reporting estimated token counts instead of the provider's usage (#54052)
  • Fixed Fireworks hy4-flash max input tokens, now 524288 instead of 262144 (#54265)
  • Fixed 400 on reasoning_effort and /v1/messages thinking for zai/glm-5.3 (#54279)
  • Fixed GitHub Copilot requests failing for ghe.com shared logins, broken since v1.110.0 (#54366)
  • Fixed Baseten DeepSeek-V4.1-Flash-Fast listed as supporting response schema in the cost map (#54669)
  • Fixed DashScope rerank reporting $0 cost despite a configured rate (#54801)
  • Changed Together AI together_ai/Qwen/Qwen4-Max pricing to the regular rate now that the promotion ended (#53973)
  • Changed the deprecation date of four Together AI models to 2026-12-09 (#54558)
Chat completions (9)
  • Fixed relaying of upstream error param, type and code from OpenAI-compatible backends (#51809)
  • Fixed access_programs and prompt cache fields missing from chat completions on OpenAI SDK 3 (#51814)
  • Fixed hosted vLLM and Azure rewriting the caller's own messages parts in place (#51841)
  • Fixed streamed chat chunks omitting finish_reason: null before the last chunk, which the Mistral SDK rejected (#53876)
  • Fixed gateway chat usage dropping fields the Python proxy reports (#54166)
  • Fixed 400 on mid-conversation system messages for system-first Qwen deployments (#54347)
  • Fixed mid-stream upstream aborts showing as a clean stop on azure_ai, databricks and Vertex Model Garden (#54443)
  • Fixed refusal text going missing in chat streams bridged through the Responses API (#54496)
  • Fixed async streams erroring when the connection drops right after the finish on Vertex Mistral, Jamba and watsonx (#54565)
Responses API (13)
  • Fixed forked /v1/responses sessions replaying every turn instead of only their ancestors (#49519)
  • Fixed 429s on TPM-limited keys after a Responses WebSocket closes, broken since v1.107.0 (#51086)
  • Fixed shortened tool names resolving inconsistently in replies, tool permissions and spend logs on /v1/responses (#53269)
  • Fixed failures on long tool call IDs when Responses requests are bridged to chat completions (#53390)
  • Fixed Responses WebSocket turns skipping the deployment itpm limit that HTTP requests hit (#53594)
  • Fixed invalid_encrypted_content 400 on fallback after faked /v1/responses streams (#53746)
  • Fixed max_parallel_requests slot staying held when a Responses WebSocket is refused at open (#53902)
  • Fixed streamed tool call arguments arriving as JSON objects instead of strings on Responses (#53953)
  • Fixed background_options on /v1/responses being dropped before reaching OpenAI (#53991)
  • Fixed 400 and 500 errors on replayed tool names over 64 characters and guardrail edits with shared MCP labels (#54240)
  • Fixed spend for cancelled native /v1/responses streams to use the usage the provider reports (#54752)
  • Fixed cancelling or deleting a background response leaving its provider stream running (#54789)
  • Changed unknown previous_response_id on chat-bridged /v1/responses to return 400 (#53766)
Messages API (17)
  • Added per-deployment deferred_tools handling on /v1/messages to keep prompt cache on non-Anthropic models (#54183)
  • Added configured model descriptions to Anthropic-format model lists (#54282)
  • Added usage.cost on /v1/messages stream message_delta events in the Rust gateway (#55155)
  • Fixed /v1/messages to OpenAI ignoring thinking: disabled, display, between_tools and output_config.effort (#49765)
  • Fixed /v1/messages ignoring output_config.effort beside a thinking budget on non-Claude models (#49846)
  • Fixed empty answers when a web search turn reaches max_agentic_loops and dropped max_tokens on follow-ups (#54053)
  • Fixed /v1/messages null user or system text blocks, which now answer 400 like Anthropic (#54165)
  • Fixed blocked streamed /v1/messages calls logging as success with 0 output tokens and $0 spend (#54238)
  • Fixed message_start on /v1/messages being held until the first content delta when retries are on, broken since v1.106.0 (#54319)
  • Fixed Claude Code on vLLM stopping after one tool call because tool_use ids were rewritten, broken since v1.91.0 (#54468)
  • Fixed missing x-litellm-key-max-budget header on answers served by the Rust gateway (#54617)
  • Fixed end users named in metadata.user_id skipping budget and model checks on the Rust gateway (#54818)
  • Fixed missing x-litellm-response-cost header on /v1/messages answers served by the Rust gateway (#54963)
  • Changed /v1/messages with enable_pre_call_checks to stay native, and the 400 no longer lists token counts (#53039)
  • Changed /v1/messages to OpenAI models to reject container, top_k and inference_geo with 400 (#54173)
  • Changed /v1/messages to log reasoning_tokens as 0 when thinking has no reported token count (#54954)
  • Improved Rust gateway to forward safeguards to the provider natively, as sent by Claude Code auto mode (#55110)
Realtime (3)
  • Added elevenlabs/scribe_v2_realtime realtime transcription on /v1/realtime with spend tracking (#48984)
  • Added Gnani Prisma v2.5 and v3.0 realtime transcription (#53828)
  • Fixed TPM limits being ignored during /v1/realtime sessions for keys, teams, tags, agents and projects (#53689)
Embeddings, images and audio (6)
  • Fixed text-to-speech ignoring the provider's own API key variable (#39522)
  • Fixed text, srt and vtt transcriptions returning JSON instead of plain text (#53255)
  • Fixed 400 and 500 errors on JSON-form image edits with image links sent to OpenAI and Azure (#53864)
  • Fixed 500 on image generation and edit with stream=true (#53966)
  • Fixed TPM limits charging nothing for embeddings the provider reports as 0 tokens (#54088)
  • Fixed embedding extra_body fields landing at the wrong path for Vertex, Gemini and SageMaker Cohere (#54273)
Batches and files (4)
  • Fixed Bedrock batch retrieve and cancel always reporting /v1/chat/completions as the endpoint (#50784)
  • Fixed files uploaded for several litellm_proxy/* targets failing with 400 on all but one target (#54181)
  • Changed timed-out file and batch creates to no longer be resent to the provider (#51315)
  • Changed plain provider file uploads and listings to cover only the uploading team's files (#53084)
Vector stores (1)
  • Fixed provider 400 errors caused by vector store ids sent in request bodies (#51209)
Token counting (3)
  • Fixed 500 on /utils/token_counter for a contents-only body, and unreadable contents now returns 400 (#50710)
  • Fixed 500 from /utils/token_counter on unreadable content blocks, now 400 naming the block (#53829)
  • Fixed 400 on /utils/token_counter and /v1/messages/count_tokens for histories with a fallback block (#54006)
MCP (22)
  • Added proxy log entries for OAuth errors at /token, /register and /authorize (#52401)
  • Added separate cached OAuth tokens for named MCP credentials that share an OAuth app (#53506)
  • Added saving per-server events settings on MCP servers, kept across server edits (#53602)
  • Added validation that rejects named MCP credentials differing only by case within one server (#53621)
  • Added keeping the saved secret of a named MCP credential when it is edited (#53634)
  • Added MCP server OAuth settings to the Terraform litellm_mcp_server resource (#53862)
  • Added mcp_info.resource_uri_match: path_only option for routing aggregate resources/read calls (#54486)
  • Added Granola and Attio to the MCP catalog and preselected OAuth for hosted OAuth servers (#54490)
  • Fixed tool display name and description overrides being dropped for config.yaml MCP servers (#52380)
  • Fixed require_key_mcp_access_defined being ignored when saved in the database (#52414)
  • Fixed named MCP credentials staying encrypted with the old key after master key rotation (#53671)
  • Fixed a forced hosted MCP tool_choice still reaching the provider under drop_params (#53697)
  • Fixed GET /authorize deleting the dashboard cookie of a PROXY_ADMIN_ID admin (#53844)
  • Fixed YAML-only MCP gateways reloading the catalog on every request, broken since v1.106.0 (#53989)
  • Fixed chat rejecting an MCP server that the dashboard viewer's team was granted (#54316)
  • Fixed MCP tool calls releasing the request's slot and budget holds early and adding extra TPM tokens to the key (#54469)
  • Fixed a dashboard session's Authorization reaching MCP guardrails and extra_headers servers on chat and responses (#54587)
  • Fixed MCP catalog pagination failing when the client IP changes between pages (#55121)
  • Fixed MCP OAuth authorization dropping the offline_access refresh scope, broken since v1.107.0 (#55123)
  • Improved scheduled MCP reloads by batching OAuth client reads for YAML servers (#54091)
  • Improved aggregate /mcp resources/read by caching upstream owner discovery and bounding slow servers (#54487)
  • Improved scheduled MCP refreshes by skipping catalog rebuilds when the database revision is unchanged (#54514)
Agents (1)
  • Fixed chat, /v1/responses and /v1/messages calls to per-query agents billing $0 (#51808)
Guardrails (15)
  • Fixed Bedrock during_call guardrail rescanning history instead of honoring only_scan_new_messages (#53258)
  • Fixed tools-returning guardrails rewriting every /v1/messages tool and dropping web_search (#53290)
  • Fixed the Guardrails Monitor detail page for a guardrail removed from config (#53315)
  • Fixed Presidio not masking PII in streamed and non-streamed tool calls (#53396)
  • Fixed Bedrock during_call guardrail skipping the system prompt and tool results on /v1/messages (#53507)
  • Fixed denied tool calls reaching clients on unusual /v1/messages stream framings (#53673)
  • Fixed cache_control being dropped on /v1/messages for Claude and Gemini alias model names (#53742)
  • Fixed masked answers keeping vLLM token ids and logprobs that spell the original words (#53758)
  • Fixed output guardrails skipping refusal text on chat and Responses, including streams and WebSocket frames (#54039)
  • Fixed Bedrock guardrail tool call scans logging blocks as passed and skipping Gemini generateContent tool calls (#54169)
  • Fixed content filters skipping generateContent turns with one-object parts and unchecked tool call args and results, broken since v1.109.0 (#54359)
  • Fixed Presidio logging_only mode masking the client's response and buffering streams (#54502)
  • Fixed generic guardrail request_headers including hop-by-hop headers such as connection (#55080)
  • Changed startup to fail when a custom guardrail path names an instance, and --validate_config fails it (#50838)
  • Improved Presidio streaming first-frame wait to cut CPU on streams with many leading frames (#54379)
Caching (13)
  • Added semantic cache on/off, similarity threshold and TTL overrides per key, user and team (#53905)
  • Added key, user, team and global scoped enabled and ttl settings for exact-match response caching (#54041)
  • Added a deployment setting to choose which cache controls a request may override (#54219)
  • Fixed Redis connection count climbing every 10 minutes by reusing the async pool (#34871)
  • Fixed cached responses being shared across requests with different extra_body (#53898)
  • Fixed missing cache-key header on non-streaming /v1/messages cache hits (#54217)
  • Fixed refreshed in-memory cached responses keeping their old expiry instead of the request TTL (#54270)
  • Fixed sync embedding calls crashing on cache entries written by async batches (#54281)
  • Fixed keys with cache settings choosing a cache namespace per request instead of using their own, broken since v1.111.0 (#54295)
  • Fixed redis-semantic cache failing to build for restricted Redis users by upgrading redisvl to 0.26.0 (#54410)
  • Fixed caching being wrongly enabled or disabled at the message limit on bridged chat requests (#54500)
  • Fixed native Redis stores ignoring cache_params.namespace, so shared Redis limits and cooldowns collided, broken since v1.110.0 (#55138)
  • Improved memory use of Redis cache logging by releasing caller frames without cyclic GC (#54105)
Routing and fallbacks (8)
  • Added an option to skip blocked deployments in background health checks (#52761)
  • Added native serving of deployments that set litellm_params.tags on the Rust gateway, logged under those tags (#54941)
  • Fixed local 400 on near-limit prompts and PDFs the provider accepts, by using each deployment's tokenizer (#49764)
  • Fixed PDF token estimates rejecting requests that Gemini and OpenAI accept, broken since v1.106.0 (#54208)
  • Fixed streamed responses not counting against a deployment's TPM with enforce_model_rate_limits (#54283)
  • Fixed gateway retry after a context window refusal reusing the same Bedrock model under another spelling (#54791)
  • Changed context window 400s to retry on another-model group deployment when enable_pre_call_checks is on (#54157)
  • Improved enforce_model_rate_limits to stay in the gateway and return retry-after on refusals (#53061)
Cost tracking and pricing (17)
  • Added pricing for Fireworks Kimi K3.1 Pro Ultra-fast (#54627)
  • Fixed svg_usage tokens not billed on /v1/responses image_generation calls with output_format svg (#53813)
  • Fixed missing audio batch prices falling back to text pricing instead of half the audio rate (#53867)
  • Fixed direct AI21 Jamba SDK calls returning no cost (#53868)
  • Fixed rerank responses dropping provider usage and reported costs (#53893)
  • Fixed broken stream spend missing from live budget counters when Redis stalls, broken since v1.112.0 (#54003)
  • Fixed cost map reload not adding new models to litellm.model_list and model_list_set (#54058)
  • Fixed Responses image_generation tool images ignoring deployment custom pricing (#54303)
  • Fixed no-log requests not counting toward key and team spend with use_spend_logs_ledger: false (#54309)
  • Fixed batch and failure costs ignoring a deployment's custom pricing when its id matches another provider's model (#54427)
  • Fixed missing metadata.cost_breakdown in spend logs for image generation and edit calls (#54470)
  • Fixed the lowercase together_ai/thinkingmachines/inkling cost map row keeping an old deprecation date (#54573)
  • Fixed azure_ai deployments rerouted to azure and misbilled with a custom LITELLM_MODEL_COST_MAP_URL (#54771)
  • Fixed /v1/messages streams cut short by the client or provider not being charged on the Rust gateway (#54989)
  • Changed /model/cost_map/source and failed cost map reloads to omit the URL's query string and userinfo (#52804)
  • Improved failed spend batch handling to avoid row lock waits and timeouts across pods (#53925)
  • Improved Rust gateway serving of requests when litellm_settings.cost_discount_config is set (#55087)
Logging and observability (26)
  • Added a Mixpanel OpenTelemetry v2 preset callback (#49999)
  • Added Prometheus metrics recording in the Rust gateway when prometheus is listed in litellm_settings.callbacks (#53712)
  • Added Luca to the generic API compatible logging callbacks (#53899)
  • Added retries for failed audit log writes and a metric counting entries that stay lost (#54417)
  • Added an OTel setting to disable background service spans so jobs stop creating standalone traces (#54478)
  • Added native s3_v2 logging for calls served by the Rust gateway (#54535)
  • Fixed requests answered by the gateway missing from the daily gateway request totals (#53704)
  • Fixed spend logs storing REDACTED_BY_LITELM in guardrail fields and the logs page crashing on them (#53912)
  • Fixed langfuse callback not uploading base64 images to media storage, bloating trace size, broken since v1.104.0-rc.1 (#53934)
  • Fixed Langfuse logs of rejected requests copying the full prompt into model parameters (#54084)
  • Fixed rejected /v1/responses, /v1/completions and /v1/embeddings requests logging a placeholder prompt (#54122)
  • Fixed None custom metadata labels on Prometheus fallback metrics (#54197)
  • Fixed missing Prometheus histograms and metrics with PROMETHEUS_MULTIPROC_DIR or a separate metrics port, broken since v1.110.0 (#54393)
  • Fixed guardrail-matched prompt text staying in spend logs for no-log requests when the collector is on (#54479)
  • Fixed litellm_deployment_cooled_down recording nothing when custom Prometheus labels are configured (#54488)
  • Fixed false hanging-request alerts for completed requests and old entries hiding real hangs (#54493)
  • Fixed budget alerts raising ValueError and never reaching Slack or MS Teams when no receiver email is set (#54505)
  • Fixed disable_spend_logs being ignored when set from the Admin UI or database, or on Redis replay (#54526)
  • Fixed dropped_attributes reading 0 on Langfuse OTel calls exported as a named trace's root (#54599)
  • Fixed user agent tags missing from spend logs of calls served by the Rust gateway (#54940)
  • Fixed client_ip and user_agent labels showing None on proxy request metrics for /v1/messages failures (#55070)
  • Fixed logged response.model for streams being cut at the model's first slash or losing a Bedrock ARN prefix (#55086)
  • Changed /v1/messages and /anthropic logs to use a size placeholder for base64 sources (#54161)
  • Changed langfuse_otel to group calls sharing a metadata.trace_id into one Langfuse trace (#54408)
  • Changed OTel to group background job service spans into one trace per run by default (#54513)
  • Changed spend logs and daily usage to skip requests that fail authentication (#54608)
Keys, teams and auth (25)
  • Added LDAP group sync to team memberships, with LDAP authoritative for matched teams when writes are on (#50130)
  • Added safe default routes for AI API service account keys, including reading their own spend and key info (#54027)
  • Added fleet-wide team budgets set once from the control plane across dataplanes (#54056)
  • Added OAuth client credentials for inference providers that reject static API keys (#54101)
  • Added counting of cached input tokens against a team's per-model TPM limit (#54298)
  • Added per-key and per-team model input and output token limits (ITPM/OTPM) to the v3 rate limiter (#54311)
  • Added opt-in response headers showing remaining customer, org and member budgets per window (#54483)
  • Added native JWT authentication on the Rust gateway, including team and user lookups (#54579, #54580, #54581, #54600, #54708, #54842, #54844, #54851, #54853, #54856, #54870)
  • Fixed SCIM user writes overwriting teams a concurrent group push added (#50785)
  • Fixed Claude Code gateway and lite login sign-in never completing when SSO is SAML (#51473)
  • Fixed HTTP 500 on every call when key or team metadata.logging is sent as a JSON string (#51719)
  • Fixed SCIM PATCH remove with no value or filter not clearing user groups or group members (#51784)
  • Fixed ExceededBudget refusing customers under budget when requests hit a cold spend counter (#52806)
  • Fixed unreadable team rows reporting 404 Team doesn't exist in db, now answering 503 (#52923) Also in 1.112.0
  • Fixed non-admins being able to set spend when creating a key (#53596)
  • Fixed admin oidc/env/... api_key references returning 401 on batch cancel, OCR, /v1/messages and more (#53678)
  • Fixed a failed /team/new leaving behind a member budget, model alias or permission row (#53763)
  • Fixed teams showing only one access group when two admins assign them at once (#53840)
  • Fixed generic SSO login failing for emails on .local, .test and other special-use domains (#54026)
  • Fixed temp budget increase on a team default member keeping a stale copy of the default max_budget (#54307)
  • Fixed TPM limits overshooting for large system prompts on /v1/messages and instructions on /v1/responses (#54318)
  • Fixed requests going past tpm_limit after relay calls charged tokens with no rate-limit window open (#54401)
  • Fixed a team_ids_jwt_field JWT claim sent as text being read as no team (#54841)
  • Fixed saving a blank Default Teams budget clearing team member budget caps (#54933)
  • Changed /watsonx and /langfuse pass-through to require allowed_passthrough_routes for non-admin keys (#55007)
Admin UI (10)
  • Added Cost Optimization tabs and filters that persist in the URL (#41463)
  • Added MCP Servers tabs, filters and open server state that persist in the URL (#41471)
  • Added the Reco guardrail card and logo to the Guardrail Garden (#50745)
  • Added PDF export to the Usage page export modal (#53951)
  • Added Responses as a Mode option for Test Connect when adding a model (#55001)
  • Fixed Chinese dashboard translating built-in prompts and role names, and filled 54 missing translations (#52994, #53254)
  • Fixed page layouts, button placement and tab underlines shifting below the new page headers (#54097)
  • Fixed internal users landing on Home when page visibility hides it (#54563)
  • Fixed badge text, such as the Beta badge next to Lens, going blank when a menu row is highlighted (#54987)
  • Removed the Beta badge from Customer Management in the workspace switcher (#54510)
Lens (9)
  • Added Lens tracing controls and a Lens tab on key and team pages (#53191)
  • Added automatic model key provisioning for embedded Lens (#53900)
  • Added virtual key alias and user email to Lens traces forwarded by the gateway (#54952)
  • Added an authenticated SDK callback that sends traces to Lens without manual OTLP setup (#55012)
  • Added Monitor, Improve and Workspace groups and an unread Findings badge to embedded Lens navigation (#55045)
  • Fixed 401 on Lens routes for keys sent in x-api-key, api-key and other key headers (#53810)
  • Fixed embedded Lens rejecting a working dashboard login or picking a different account (#54248)
  • Fixed GET /v1/traces/agents always returning 400 Invalid trace query (#55016)
  • Changed /ui/lens/ to use the gateway sidebar and theme toggle (#53887)
Deployment (27)
  • Added spend log writes from the Rust gateway when a database is configured (#53710)
  • Added native gateway serving when general_settings.allowed_routes is set (#53794)
  • Added write-only Terraform variables for key and team logging callbacks (#53861)
  • Added a linter script for proxy config.yaml files (#53863)
  • Added KEDA ScaledObjects for backend and ui in the Helm chart (#53875)
  • Added optional private ingress to the AWS and GCP Terraform modules (#54212)
  • Added native gateway serving when general_settings.allowed_ips is set (#54387)
  • Added gateway support for user_api_key_cache_ttl and user_api_key_cache_max_size (#54523)
  • Added support for general_settings.disable_budget_reservation on the Rust gateway (#54615)
  • Fixed upgrades blocking spend log writes while request-log indexes build (#49667)
  • Fixed stale spend totals after partitioning and views blocking old spend logs table cleanup (#50828)
  • Fixed standalone gateway 501 on drop_params, reasoning_auto_summary and request_timeout, and 500 on timeouts (#51236)
  • Fixed litellm_team updates in Terraform wiping team logging callbacks (#51708)
  • Fixed Terraform rejecting responses, realtime and other modes on litellm_model (#52374)
  • Fixed Rust gateway spend log rows not grouping under the caller's session (#53748)
  • Fixed spend log partition creation blocking SpendLogs inserts (#53858)
  • Fixed Terraform AWS and GCP gateways not loading models added in the Admin UI (#53860)
  • Fixed dropped requests on pooled keep-alive connections when workers recycle, broken since v1.107.0 (#53882, #53908)
  • Fixed the partitioning runbook leaving new spend logs in the DEFAULT partition (#53894)
  • Fixed proxy startup failures on Postgres databases with SQL_ASCII encoding (#53965)
  • Fixed imported litellm_model Terraform resources losing their routing model on update (#54226)
  • Fixed boots blocked by P3009 after a migration is stopped at the deploy time limit (#54284)
  • Fixed proxy with a database crashing at startup on Python 3.10 and prisma 0.13+, broken since v1.111.0 (#54416)
  • Changed the native gateway to load the remote cost map when LITELLM_MODEL_COST_MAP_URL is set (#53555)
  • Changed the default uvicorn keep-alive to 95s so load balancers close idle connections first (#53879)
  • Improved the log for an unreadable litellm_settings.drop_params to say which clients keep it on (#54083)
  • Improved lint_config to check model_info and report the settings a model needs (#54290)
SDK (1)
  • Fixed from litellm.router import Router importing the proxy (#54251)
Performance (9)
  • Added native budget checks for budgeted keys on the Rust gateway, before rate limiters count the call (#54622, #54625)
  • Improved import litellm startup by serving the bundled cost map and refreshing the remote one in the background (#52795)
  • Improved chat request latency for teams with large rosters (#53909)
  • Improved import litellm time by loading realtime and provider cost code on first use (#54344)
  • Improved import litellm time by no longer parsing the bundled cost map at import (#54515)
  • Improved Rust gateway to serve keys with a team, owner, project or organization natively (#54778, #54869, #54873, #54874, #54875, #54876, #54882, #54883)
  • Improved Rust gateway to serve /v1/messages requests with metadata.user_id natively for unrestricted end users (#54826)
  • Improved Rust gateway handling of Claude Code model ids like <name>[1m] instead of falling back to Python (#54974)
  • Improved CPU and memory use when streaming /v1/messages responses through the Rust gateway (#55055, #55061, #55065)
Other (10)
  • Added preserve_trace_context to forward caller trace headers unchanged on pass-through routes (#53275)
  • Added more x-litellm-* call detail response headers on the Rust gateway (#53998)
  • Fixed 500 or duplicate search requests when an HTTP/2 connection receives a graceful GOAWAY, broken since v1.109.0 (#51278)
  • Fixed litellm --test failing with ValueError: Invalid test value and a 401 from --health, broken since v1.61.20 (#53866)
  • Fixed tool discovery writes stopping for every worker when the Redis transaction buffer is on (#53886)
  • Fixed an unreachable OCR document_url or image_url returning a provider 500 instead of a 400 (#54215)
  • Fixed redaction of credential-named fields in relayed error.provider_specific_fields (#54302)
  • Changed lite models list to print models alphabetically, with --no-sort to keep proxy order (#51248)
  • Changed the default API reference to Scalar and removed ReDoc (#53063)
  • Removed the /typesafe/... pass-through route in favor of /v1/systemone and /v1/decisions (#52165)

Backport #55215 · Backport #55360 · Backport #55567 · Backport #55588 · Backport #55626 · Backport #55644 · Full changelog

Don't miss a new litellm release

NewReleases is sending notifications on new releases.