v1.81.3 - 效能 - CPU 使用量降低 25%
部署此版本
- Docker
- Pip
docker run litellm
docker run \
-e STORE_MODEL_IN_DB=True \
-p 4000:4000 \
docker.litellm.ai/berriai/litellm:v1.81.3-stable
pip install litellm
pip install litellm==1.81.3.rc.2
新模型 / 已更新模型
新模型支援
| 提供者 | 模型 | 上下文視窗 | 輸入($/100 萬 tokens) | 輸出($/100 萬 tokens) | 淘汰日期 |
|---|---|---|---|---|---|
| OpenAI | gpt-audio, gpt-audio-2025-08-28 | 128K | $32/100 萬 audio tokens, $2.5/100 萬 text tokens | $64/100 萬 audio tokens, $10/100 萬 text tokens | - |
| OpenAI | gpt-audio-mini, gpt-audio-mini-2025-08-28 | 128K | $10/100 萬 audio tokens, $0.6/100 萬 text tokens | $20/100 萬 audio tokens, $2.4/100 萬 text tokens | - |
| Deepinfra, Vertex AI, Google AI Studio, OpenRouter, Vercel AI Gateway | gemini-2.0-flash-001, gemini-2.0-flash | - | - | - | 2026-03-31 |
| Groq | openai/gpt-oss-120b | 131K | 0.075/100 萬 cache read | 0.6/100 萬 output tokens | - |
| Groq | groq/openai/gpt-oss-20b | 131K | 0.0375/100 萬 cache read, $0.075/100 萬 text tokens | 0.3/100 萬 output tokens | - |
| Vertex AI | gemini-2.5-computer-use-preview-10-2025 | 128K | $1.25 | $10 | - |
| Azure AI | claude-haiku-4-5 | $1.25/100 萬 cache read, $2/100 萬 cache read above 1 hr, $0.1/100 萬 text tokens | $5/100 萬 output tokens | - | |
| Azure AI | claude-sonnet-4-5 | $3.75/100 萬 cache read, $6/100 萬 cache read above 1 hr, $3/100 萬 text tokens | $15/100 萬 output tokens | - | |
| Azure AI | claude-opus-4-5 | $6.25/100 萬 cache read, $10/100 萬 cache read above 1 hr, $0.5/100 萬 text tokens | $25/100 萬 output tokens | - | |
| Azure AI | claude-opus-4-1 | $18.75/100 萬 cache read, $30/100 萬 cache read above 1 hr, $1.5/100 萬 text tokens | $75/100 萬 output tokens | - |
功能
-
- 文件 - Google Workload Identity Federation(WIF)支援 - PR #19320
-
- 修正 AWS Bedrock AgentCore 的串流問題,回應會在第一個 chunk 後停止,特別影響啟用 OAuth 的 agent - PR #17141
-
- 支援透過 v1/messages 的 bedrock invoke 輸出格式 - PR #19560
-
Gemini(Vertex AI, Google AI Studio)
- 對 Gemini 2.0+ 模型使用 responseJsonSchema - PR #19314
-
- 支援 Volcengine responses api - PR #18508
-
- 新的搜尋提供者 - PR #19433
-
Sarvam ai
- 新增對新 sarvam 模型的支援 - PR #19479
-
- 新增 GMI Cloud 提供者支援 - PR #19376
錯誤修正
-
- 透過 /image_edits endpoint 暴露 stability models,並確保正確的 request 轉換 - PR #19323
- Claude Code x Bedrock Invoke 在 advanced-tool-use-2025-11-20 下失敗 - PR #19373
- 去除 assistant 歷史中的重複 tool calls - PR #19324
- 修正:更正 us.anthropic.claude-opus-4-5 區域內定價 - PR #19310
- 修正使用 Claude 4 透過 bedrock invoke 時的 request 驗證錯誤 - PR #19381
- 處理 Claude 4 模型搭配 tool calls 的 thinking - PR #19506
- 修正 tool calls 的串流 choice index - PR #19506
-
- 修正因改良訊息擷取而導致的 tool call 錯誤 - PR #19369
-
- 在 request 傳送至 vertex 前移除可選的 vertex_count_tokens_location 參數 - PR #19359
-
Gemini(Vertex AI, Google AI Studio)
-
- 修正 Anthropic 模型的 Azure AI 成本 - PR #19530
-
- 新增 tool choice 對應 - PR #19645
AI API 端點(LLMs、MCP、Agents)
功能
錯誤
-
- 修正 MCP 串流工具執行期間重複訊息的問題 - PR #19317
- 修正將 OpenAI 的 Responses API 與 stream=True 及 tool_choice 類型為 allowed_tools(OpenAI 原生參數)一起使用時的 pickle 錯誤 - PR #17205
- 為非-openai 模型串流 tool call 事件 - PR #19368
- 在 responses bridge 中保留 gemini 的工具輸出順序 - PR #19360
- 新增 ID 快取以防止 ID 不匹配的 text-start 與 text-delta - PR #19390
- 為非-openai 模型包含 output_item、reasoning_summary_Text_done 和 reasoning_summary_part_done 事件 - PR #19472
-
- 修正:drop_params 未能為非-OpenAI 提供者移除 prompt_cache_key - PR #19346
-
- 為 ws:// WebSocket 連線停用 SSL - PR #19345
-
- 當從用戶端呼叫 google genai/vertex 端點時,記錄實際的使用者輸入 - PR #19156
-
/messages/count_tokens Anthropic Token Counting
- 確保其可用於 Anthropic、AI Gateway 上的 Azure AI Anthropic - PR #19432
-
- 將 static_headers 傳遞給 MCP 伺服器 - PR #19366
-
- 修正:batch 的 generation config 為空 - PR #19556
-
- 一律重新更新 registry - PR #19420
管理端點 / UI
功能
-
成本估算器
- 修正模型下拉選單 - PR #19529
-
Claude Code 外掛
- 允許透過 UI 新增 Claude Code Plugins - PR #19387
-
防護欄
-
一般
- 遵循自訂驗證標頭覆寫 - PR #19276
-
Playground
-
模型
-
MCP 伺服器
- MCP Tools 分頁重設為總覽 - PR #19468
-
組織
-
團隊
-
記錄
- 在支出記錄表格中包含工具參數 - PR #19640
-
備援 / 負載平衡
錯誤修正
-
Playground
- 增加 playground Compare 檢視中的模型選擇器寬度 - PR #19423
-
虛擬金鑰
- 排序顯示錯誤項目 - PR #19534
-
一般
-
SSO
- 修正現有使用者的 SSO 使用者角色未更新 - PR #19621
-
防護欄
- 確保在編輯與模式切換時防護欄模式會保留 - PR #19265
AI 整合
記錄
- 一般記錄
- Langfuse OTEL
- 忽略服務記錄並修正 callback 覆寫 - PR #19298
- Langfuse
- GCS 儲存桶
- Responses API 記錄
- 修正 pydantic 序列化錯誤 - PR #19486
- Arize Phoenix
- 將 openinference span kinds 新增至 arize phoenix - PR #19267
- Prometheus
- 新增用於使用者數與團隊數的 prometheus 指標 - PR #19520
防護欄
- Bedrock 防護欄
- 確保 post_call 防護欄檢查 input+output - PR #19151
- Prompt Security
- 修正 prompt-security 的防護欄實作 - PR #19374
- Presidio
- 修正在背景執行緒(logging_hook)中執行時 Presidio Guardrail 的當機問題 - PR #19714
- Pillar Security
- 將 Pillar Security 遷移至 Generic Guardrail API - PR #19364
- 政策引擎
- 全新的 LiteLLM Policy engine - 建立政策以管理防護欄、條件 - 依 Key、Team 設定權限 - PR #19612
- 一般
- 為防護欄模式與動作新增不區分大小寫支援 - PR #19480
Prompt 管理
- 一般
- 修正使用正確 ID 查詢與刪除 prompt 資訊 - PR #19358
秘密管理員
- AWS Secret Manager
- 確保自動輪替會更新既有的 AWS secret,而不是建立新的 - PR #19455
- Hashicorp Vault
- 確保金鑰輪替可與 Vault 搭配運作 - PR #19634
支出追蹤、預算與速率限制
- 定價更新
效能 / 負載平衡 / 可靠性改善
-
一般
-
路由器
-
記憶體洩漏/OOM
-
非 root
-
Dockerfile
- Redis Semantic Caching - 在 requirements.txt 中新增缺少的 redisvl 依賴項 - PR #19417
- 提升 OTEL 版本以支援 a2a 相依性 - 由 @Harshit28j 在 #18991 中解決 Microsoft Agents 的 modulenotfounderror
-
DB
- 處理 rolling deployments 期間的 PostgreSQL cached plan errors - PR #19424
-
逾時
- 修正:total timeout 未被遵守 - PR #19389
-
SDK
-
效能
- 透過減少 pre-call processing time,將 chat_completion latency 降低約 21% - PR #19535
- 以 O(1) index check 最佳化 strip_trailing_slash - PR #19679
- 以 set intersection 最佳化 use_custom_pricing_for_model - PR #19677
- perf: 對非萬用字元模型略過 pattern_router.route() - PR #19664
- perf: 為 get_model_info 新增 LRU caching,以加快成本查詢速度 - PR #19606
一般 Proxy 改進
文件改進
- 新增透過 LiteLLM 將 MCP 新增到 Cursor 的教學 - PR #19317
- 在 Vertex AI pass-through 文件中將 vertex_region 修正為 vertex_location - PR #19380
- 釐清 json file 中 Gemini 與 Vertex AI model prefix - PR #19443
- 更新 Claude Code integration guides - PR #19415
- 調整 opencode 教學 - PR #19605
- 新增 spend-queue-troubleshooting 文件 - PR #19659
- docs:為 managed files 新增 litellm-enterprise requirement - PR #19689
Helm
- 在 helm chart 中新增對 keda 的支援 - PR #19337
- 將 Helm chart version 與 LiteLLM release version 同步 - PR #19438
- 在 values.yaml 中啟用 PreStop hook 設定 - PR #19613
一般
- 新增健康檢查腳本與平行執行支援 - PR #19295
新貢獻者
- @dushyantzz 的首次貢獻出現在 PR #19158
- @obod-mpw 的首次貢獻出現在 PR #19133
- @msexxeta 的首次貢獻出現在 PR #19030
- @rsicart 的首次貢獻出現在 PR #19337
- @cluebbehusen 的首次貢獻出現在 PR #19311
- @Lucky-Lodhi2004 的首次貢獻出現在 PR #19315
- @binbandit 的首次貢獻出現在 PR #19324
- @flex-myeonghyeon 的首次貢獻出現在 PR #19381
- @Lrakotoson 的首次貢獻出現在 PR #18321
- @bensi94 的首次貢獻出現在 PR #18787
- @victorigualada 的首次貢獻出現在 PR #19368
- @VedantMadane 的首次貢獻出現在 #19266
- @stiyyagura0901 的首次貢獻出現在 #19276
- @kamilio 的首次貢獻出現在 PR #19447
- @jonathansampson 的首次貢獻出現在 PR #19433
- @rynecarbone 的首次貢獻出現在 PR #19416
- @jayy-77 的首次貢獻出現在 #19366
- @davida-ps 的首次貢獻出現在 PR #19374
- @joaodinissf 的首次貢獻出現在 PR #19506
- @ecao310 的首次貢獻出現在 PR #19520
- @mpcusack-altos 的首次貢獻出現在 PR #19577
- @milan-berri 的首次貢獻出現在 PR #19602
- @xqe2011 的首次貢獻出現在 #19621