跳至主要內容

v1.93.0rc1 - GPT-5.6、Client-Forwarded MCP Credentials 與 Meta Model API

部署此版本

docker run \
-e STORE_MODEL_IN_DB=True \
-p 4000:4000 \
docker.litellm.ai/berriai/litellm:1.93.0-rc.1

重點摘要

  • GPT-5.6 與更多新模型 - OpenAI GPT-5.6(sol / terra / luna)在 OpenAI 與 Azure 的 day-0 定價與中繼資料、xAI Grok-4.5、OpenAI Realtime 2.1(以及 -mini)、Google Cloud Chirp 3 語音轉文字,以及 Bedrock Claude Opus 4.8 的 jp 區域推論設定檔。
  • Meta Model API 提供者 - 新的 OpenAI 相容提供者(meta)可在 Chat Completions、/v1/messages 與 Responses 上 day-0 提供 muse-spark-1.1
  • Client-forwarded MCP credentials - 新的 true_passthroughoauth_delegate 驗證模式,加上 dcr_bridge 密封信封路徑,讓用戶端可保有自己的上游 MCP 憑證,並對兩個 authorize 分支強制 PKCE S256,且將上游 discovery 綁定至每個伺服器。
  • shadcn / Base UI 儀表板遷移 - 共用 DataTable、圖表(recharts)與全高側邊欄 shell 轉移到 Base UI 基元,並重新設計帳號選單與可重複使用的篩選/欄位可見性控制。
  • 更智慧的複雜度路由器 - 關鍵字層級覆寫、語義關鍵字比對、可選的 LLM-based 分類器,以及自動路由器的每次決策路由記錄。

新提供者與端點

新提供者(1 個新提供者)

提供者支援的 LiteLLM 端點說明
Meta Model API (meta)Chat Completions、/v1/messages、ResponsesOpenAI 相容的 Meta Model API 提供者,可在 day-0 提供 muse-spark-1.1 - PR #32701

新模型 / 更新模型

新模型支援(31 個新定價項目)

提供者模型上下文視窗輸入($/1M tokens)輸出($/1M tokens)功能
OpenAIgpt-5.6(以及 -sol / -terra / -luna1.05M$5.00(terra $2.50、luna $1.00)$30.00(terra $15.00、luna $6.00)推理、視覺、函式呼叫、提示快取、PDF 輸入、網頁搜尋
Azureazure/gpt-5.6(以及 us / eu 區域 + -sol / -terra / -luna1.05M$5.00$30.00推理、視覺、函式呼叫、提示快取、PDF 輸入、網頁搜尋
Azureazure/{us,eu}/gpt-5.4azure/{us,eu}/gpt-5.5(data-zone + long-context)1.05M$2.75 / $5.50$16.50 / $33.00推理、視覺、函式呼叫、提示快取、PDF 輸入
OpenAIgpt-realtime-2.1gpt-realtime-2.1-mini128K$4.00 / $0.60$24.00 / $2.40音訊輸入/輸出、函式呼叫
xAIxai/grok-4.5xai/grok-4.5-latest500K$2.00$6.00推理、視覺、函式呼叫、網頁搜尋
Metameta/muse-spark-1.11.05M$1.25$4.25推理、視覺、函式呼叫、提示快取、PDF 輸入、網頁搜尋
Amazon Bedrockjp.anthropic.claude-opus-4-81M$5.50$27.50推理、電腦使用、視覺、PDF 輸入、自適應思考
Google Vertex AIvertex_ai/chirp_3(Speech-to-Text)n/a$0.00026667 / secn/a音訊轉錄

GPT-5.6 在 OpenAI 與 Azure 皆提供 priority、flex、batch,以及高於 272k 的長上下文定價層級 - PR #32659PR #32678。Azure gpt-5.4 / gpt-5.5 新增了 data-zone 與 long-context 項目 - PR #32279,而 Bedrock 區域推論設定檔現在會在 get_model_info 中解析為其區域定價 - PR #32389

功能

  • OpenAI
    • 新增 GPT-5.6(sol / terra / luna)定價與中繼資料 - PR #32659
    • 新增具區域處理加成的 gpt-realtime-2.1 模型 - PR #32387
    • verbosity 參數轉送至聊天完成提供者 - PR #32254
  • Azure
    • 新增 Azure GPT-5.6(sol / terra / luna)定價與中繼資料 - PR #32678
    • 新增 Azure data-zone 與 long-context 的 gpt-5.4 / gpt-5.5 定價 - PR #32279
  • xAI
    • 新增 xai/grok-4.5 定價與中繼資料 - PR #32549
  • Meta
    • 新增 Meta Model API 提供者與 muse-spark-1.1 的 day-0 支援 - PR #32701
  • Amazon Bedrock
    • jp.anthropic.claude-opus-4-8 新增至模型成本映射 - PR #32840
    • 保留 clear_tool_uses_20250919 context-management 編輯,並輸出 Claude Invoke 的 context-management-2025-06-27 beta 版 - PR #32658
    • 將對應的 Claude 4.8+ 項目標記為 supports_mid_conversation_system - PR #32882
  • Google Vertex AI
    • 新增 Google Cloud Speech-to-Text Chirp 3 轉錄支援 - PR #32274
  • Anthropic
    • 將 adaptive thinking/effort 轉譯為 pre-4.6 模型支援,並將真實提供者串接至 capability probes - PR #32867PR #32874
    • 透過在 lookup candidates 中移除 @version 後綴,將 @default Vertex AI 模型解析為 adaptive thinking - PR #32833

錯誤修正

  • Amazon Bedrock
    • 保留 stream 參數並為 Bedrock Mantle 串流解碼 SSE - PR #32141
    • 當 invoke Messages 串流結束且沒有 message_stop 時,發出 SSE 錯誤事件 - PR #32159
    • 在 strip-and-retry 重新簽署時,停止過時的 SigV4 標頭覆蓋新的簽章 - PR #32371
    • 在訊息層級快取點上遵守 cache_control ttl - PR #32538, PR #32551
    • 在 Claude Invoke 中保留對話中段的系統訊息,並以模型支援為條件 - PR #32578, PR #32831
    • 在即時處理常式中遵守 AWS 驗證參數 - PR #32275
  • Google Vertex AI
    • 當自訂 api_base 沒有路徑時,建構完整請求路徑 - PR #32367
    • 對於具有自訂 api_base 的 openai-path partner models,直接回傳 create_vertex_url 結果 - PR #32380
    • 轉送即時健康檢查參數 - PR #32550
  • Azure
    • 以路徑在查詢字串之前來建構 responses input_items URL - PR #32270
  • 一般
    • 在串流 /v1/messages 回應中轉送提供者回應標頭 - PR #32160
    • 在 OpenAI 相容串流中顯示回應內的錯誤酬載 - PR #32237
    • 在來自 DB 的模型中全面解析 os.environ/ 參照 - PR #32405
    • 停止每個請求的自訂定價覆蓋共享的 model_cost 定價 - PR #32163

LLM API 端點

功能

  • Responses API
    • 在 responses bridge 中保留 Codex CLI 的自訂工具往返與允許清單 - PR #32258
    • 在 chat -> responses 使用量轉換中保留 reasoning_tokens - PR #32837
  • 轉送
    • 串流非 SSE 的 pass-through 回應,而不是將它們緩衝在記憶體中 - PR #32386
  • 一般
    • 合併 websearch 工具參數 - PR #32162
    • /v1/messages/v1/responses 的第一個區塊上標記 completion_start_time - PR #32284

錯誤

  • Responses API
    • 使 response-id 編碼具備冪等性,以防止重複編碼 - PR #32034
    • 將取消時的上游 4xx 對應為用戶端錯誤,而不是 500,並在 get 時顯示上游錯誤狀態 - PR #32271, PR #32287
    • 在串流內錯誤事件上拋出 APIError,並將 ErrorEventError.param 擴充為接受 dict - PR #32835
    • 停止將同步 success_handlerasync_success_handler 同時排程 - PR #32239
    • input_items 後續動作解密 response ids - PR #32269
  • Rerank
    • 以 debug 記錄 optional_rerank_params,使請求內容不會寫入記錄 - PR #32533
  • 一般
    • 停止在 pass-through 中讓 request 參數覆蓋合併後的目標查詢參數 - PR #32404

管理端點 / UI

功能

  • UI(shadcn / Base UI 遷移)
    • 將 shadcn primitives 從 Radix 切換為 Base UI - PR #32124
    • 新增共用的可組合 DataTable,並以 shadcn table primitives 重新設計樣式,包含篩選抽屜、欄位可見性與搜尋 - PR #32680, PR #32209, PR #32856
    • shadcn charts 基礎,搭配相容 tremor 的包裝器,並將 caching、projects、activity、usage 與 per-user 圖表轉換為 shadcn/recharts - PR #32668, PR #32721, PR #32722, PR #32725, PR #32726, PR #32729
    • 全高側邊欄 shell,搭配內容範圍的頂部列、重新設計的帳戶選單,以及共用的 CopyButton - PR #32793, PR #32931, PR #32945
    • 型別化的 openapi-fetch 基礎(fetchClient),附帶第一個型別化呼叫端 - PR #29884
  • 儀表板
    • 管理儀表板上的企業授權到期橫幅 - PR #32540
    • 請求記錄與 session 側邊欄上的 session id 篩選器,以及 duration/start-time 排序 - PR #32568, PR #32432
    • 模型頁面的成本最佳化回饋橫幅 - PR #32174
    • 在伺服器建立與編輯表單中公開 MCP max_concurrent_requests - PR #32397
    • 將 gateway 麵包屑以 AI Gateway 選取器為根 - PR #32886
    • 端到端支援 Redis URL 與 Database Index UI 欄位 - PR #32075
  • 驗證與管理
    • 具有 JSON merge patch 語義的 RESTful PATCH /team/{team_id},可由組織管理員存取 - PR #32883
    • 當 token 沒有 team claims 時,JWT 驗證會回退到 DB team memberships - PR #31356
    • 用於 Claude Code apiKeyHelper 支援的 lite auth print-token - PR #32846
    • GET /key/list 新增 expires 篩選器 - PR #32953
    • 使 Microsoft Graph endpoint 可針對 GCC High 設定 - PR #32517

錯誤

  • UI
    • 將 key models 下拉選單選項範圍限制為該 key 的 team - PR #32382
    • 載入時反映已儲存的「Store Prompts in Spend Logs」切換狀態 - PR #32145
    • 防止 reasoning 區塊擴大 chat playground 版面配置 - PR #32485
    • 將 Virtual Keys 的「Key Hash」篩選標籤重新命名為「Key ID」 - PR #32672
    • 透過 UI primitives 傳遞 refs,並在 refs 被吞掉時讓測試失敗 - PR #32401
    • 移除 lite CLI 中 --base-url 的尾隨斜線 - PR #32845
  • 驗證與管理
    • 在 SSO callback 中顯示 OAuth 錯誤參數 - PR #32433
    • team_id 解析 team org,以便組織管理員可以更新 team budgets - PR #32560
    • 在來自 DB 的模型中,遵守所有 AWS 驗證參數的 os.environ/ 參照 - PR #32256
    • 在寫入 spend logs 前,將 Bearer-prefixed API keys 雜湊化 - PR #31799

AI 整合

記錄

  • OpenTelemetry
    • 在串流 LLM span 上標記 gen_ai.response.time_to_first_chunk - PR #32236
    • 在失敗的 LLM 請求上發出 gen_ai.client.operation.exception 事件,並在 v2 錯誤 span 上還原 error.* span 屬性 - PR #32655, PR #32524
    • 將 litellm 錯誤詳細資料鍵移至 litellm.* 命名空間下 - PR #32591
  • Prometheus
    • 當 gauge 為 NoOpMetric 時,略過 budget metric 的 DB/cache 查詢 - PR #32834
  • DataDog
    • 事先拆分記錄批次,以維持在 intake payload 限制內 - PR #32860
  • 一般
    • allm_passthrough_route 分類為 async,以避免重複的成功回呼 - PR #32265
    • 在串流 ModifyResponseException 路徑中,於 post_call_failure_hook 將其彈出前先擷取 logging_obj - PR #32665

防護欄

  • Model Armor
    • pre_mcp_call / during_mcp_call 模式中掃描 MCP 工具呼叫 - PR #32296
  • 內容過濾器
    • 為 Content Filter 新增 pre_mcp_call 支援 - PR #32936
  • CrowdStrike AIDR
    • 僅傳送自上一個 assistant 回合以來的新訊息 - PR #31974
  • GraySwan
    • 傳遞 GraySwan 掃描 id 標頭 - PR #32544
  • 一般
    • 在共用內容輔助工具中遍歷 Responses-API 文字分類體系 - PR #32542
    • 透過對 Bedrock guardrails 提升 ModifyResponseException,以遵守 disable_exception_on_block - PR #32289
    • 在沒有 false-COMPLIANT 結果的情況下比對多模式 guardrail_mode - PR #32832
    • 依提供者篩選 Add-Guardrail 模式下拉選單 - PR #32712
    • 在持久化前遮罩嵌入於 guardrail_response 中的憑證 - PR #32687
    • 在 headroom guardrail 上記錄真實 token/壓縮統計資料 - PR #32158

密鑰管理器

  • 一般
    • 強化外部 secret-manager 名稱驗證 - PR #32092

支出追蹤、預算與速率限制

  • 預算
    • 在達到支出上限後對 key 進行節流,而非撤銷存取權限 - PR #31300
    • team_id 解析 team org,以便 org 管理員可以更新 team 預算 - PR #32560
  • 速率限制
    • 在單一 key 上進行 per-tag RPM 限制 - PR #31502
    • 在 router 上分開 ITPM/OTPM deployment 速率限制 - PR #31952
    • 在本地速率限制錯誤時觸發 gateway 備援 - PR #31788
    • 在串流的標準記錄物件中填入 x-ratelimit-* 剩餘/限制值 - PR #32711
  • 成本追蹤
    • 強制執行 Dashscope tiered pricing 的預算與成本追蹤 - PR #32942
    • 在 batch 成本工作中正確計價 Anthropic pass-through 訊息批次 - PR #32307
    • group_by=team 時,依 team_id 篩選 /global/spend/report - PR #32170
    • 在記錄 UI 中加總多輪 session 成本,並限制 logs 分頁數量 - PR #32796, PR #31825
    • 遵守 store_prompts_in_spend_logsguardrail_information - PR #32688

MCP 閘道

  • 用戶端轉送的憑證 (true_passthrough / oauth_delegate / dcr_bridge)
    • 新增 true_passthroughoauth_delegate 驗證模式,並將上游 OAuth discovery 綁定到各個 server - PR #31989, PR #32414
    • 新增 dcr_bridge 資料欄與接線、供用戶端持有憑證使用的 sealed-envelope 模組,以及 discovery facade 與 register/token relay,並強制使用 PKCE S256 - PR #32745, PR #32748, PR #32753, PR #32747
    • 透過單一 envelope bearer 接受 dcr_bridge oauth_delegate 用戶端,並提供 key derivation 的消費者輔助工具 - PR #32824, PR #32794
    • 在用戶端轉送的 pass-through 工具呼叫上轉送上游 401 - PR #32556
  • OAuth 2.0(On-Behalf-Of)
    • 透過 REST API 與儀表板提供 oauth2_token_exchange 驗證類型,以及可在 UI 和 API 中選擇的 entra_obo token_exchange 設定檔 - PR #31772, PR #31983, PR #32144
    • 在建立時明確持久化 oauth2_flow,啟動時回填舊版空值列,並直接從 DB 列讀取 - PR #32288, PR #32290, PR #32292
    • 在 MCP 編輯頁面新增 OAuth 流程選擇器 - PR #32298
    • 將 outbound concurrency limit 套用至 OBO 工具呼叫 - PR #32071
  • 語意過濾
    • 將 semantic filter 套用至展開後的 litellm_proxy 工具,並顯示被篩除的數量 - PR #32285
    • 在 filter 回應標頭中保留完整的工具名稱 - PR #32282
    • 在 semantic-filter context-window 錯誤時採取封閉失敗並顯示錯誤 - PR #32715
  • Bug 修正
    • 將回傳 isError=true 的 MCP 工具呼叫記錄為失敗 - PR #32238
    • 當 proxy origin 不再與其已註冊的 redirect_uri 相符時,重新註冊 DCR client - PR #32527
    • 當 mint 相關欄位變更時,使 browser-authorized upstream token 失效 - PR #32652
    • 延後 proxy 匯入,讓 completion(tools=...) 在沒有 proxy extras 的情況下也可運作 - PR #32339
    • 別名/顯示名稱工具路由、REST 篩選器與 BYOK 驗證 - PR #32320

效能/負載平衡/可靠性改善

  • 路由
    • 為 complexity auto router 提供 keyword tier 覆寫與 semantic keyword 比對 - PR #32859
    • 為 complexity router 提供可選的 LLM-based classifier,以及自訂技術關鍵字與每次決策的 routing 記錄 - PR #32169, PR #32262, PR #32943
  • 可靠性
    • 當 client 已中斷連線時,復原 Prisma DB reconnect 迴圈 - PR #32323
    • 獨立設定 coordination Redis 與 response cache,並從 REDIS_* env 建立 usage cache - PR #32661, PR #32635
    • 僅在連線池 kwargs 中 ssl 為 truthy 時使用 SSLConnection - PR #32825
    • 將 Prometheus /metrics Mount 保留在 gateway route trim 中 - PR #32317
    • general_settings request allowlist 接到 litellm globals - PR #32243
  • 熱路徑
    • 在請求熱路徑上對缺失的 user/key 查詢使用 negative cache - PR #32368
    • 停止 CacheCodec 在 cache 往返時丟棄 null 欄位 - PR #32207

文件更新

  • 將 OSS 貢獻者導向每日 OSS 分支 - PR #32830

依擁有權區域彙整的 PR

依擁有區域分類的 PR 數量(總計:240)

  • 其他(CI / chore / tests / 重構 / 版本號更新):56
  • UI:42
  • MCP:36
  • 模型與提供者:31
  • 效能:14
  • 支出 / 預算 / 速率限制:13
  • LLM API 端點:13
  • 防護欄:10
  • 驗證與管理:9
  • 記錄:9
  • 文件:6
  • 密鑰管理器:1

新貢獻者

  • @thibault-linktree 完成了他們的首次貢獻,見 PR #32034
  • @akapur99 完成了他們的首次貢獻,見 PR #32829

完整變更記錄

https://github.com/BerriAI/litellm/compare/v1.92.0-rc.1...v1.93.0-rc.1