---
title: "v1.87.4 - 防護欄與記錄修正"
url: "/release_notes/v1.87.4/v1-87-4"
canonical_url: "https://docs.litellm.ai/release_notes/v1.87.4/v1-87-4"
type: "release-notes"
last_updated: "2026-10-08"
related:
  - "/release_notes/v1.87.5/v1-87-5"
  - "/release_notes/v1.87.3/v1-87-3"
---
# v1.87.4 - 防護欄與記錄修正

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt

## 部署此版本 {#deploy-this-version}

**Docker**

```bash
docker run \
-e STORE_MODEL_IN_DB=True \
-p 4000:4000 \
docker.litellm.ai/berriai/litellm:1.87.4
```

**Pip**

```bash
pip install litellm==1.87.4
```

`v1.87.4` 是建置在 [`v1.87.3`](/release_notes/v1.87.3/v1-87-3) 之上的修補版發行。它回補了防護欄正確性修正（模型層級防護欄只會執行一次 pre_call hook、每次輪詢不重新初始化 DB、AIM 封鎖請求時回傳 400 而非 500），限制 Anthropic cache-control 注入，並修正跨 Datadog 批次處理、passthrough 重複，以及 Claude Code traces 的多個記錄問題。

### 有哪些變更 {#whats-changed}

- fix(datadog): 將過大的批次在 413 時拆分，而不是永遠重新排入佇列 - [PR #29444](https://github.com/BerriAI/litellm/pull/29444)
- fix: 停止 use_chat_completions_api 標記滲入提供者請求本文 - [PR #29447](https://github.com/BerriAI/litellm/pull/29447)
- fix: 重複的 Claude Code traces - [PR #29311](https://github.com/BerriAI/litellm/pull/29311)
- fix: passthrough 端點重複記錄 - [PR #29598](https://github.com/BerriAI/litellm/pull/29598)
- fix(integrations): 將 Anthropic cache_control 注入上限設為 4 個區塊 - [PR #30480](https://github.com/BerriAI/litellm/pull/30480)
- fix(guardrails): model-level 防護欄的 pre_call hook 只執行一次 - [PR #30543](https://github.com/BerriAI/litellm/pull/30543)
- fix(guardrails): 停止在每次輪詢時重新初始化 DB 防護欄 - [PR #30542](https://github.com/BerriAI/litellm/pull/30542)
- fix(guardrails): 當 AIM 封鎖請求時回傳 400 而不是 500 - [PR #30573](https://github.com/BerriAI/litellm/pull/30573)

## 完整變更記錄 {#full-changelog}

https://github.com/BerriAI/litellm/compare/v1.87.3...v1.87.4

## Related pages

- [v1.87.5](https://docs.litellm.ai/release_notes/v1.87.5/v1-87-5.md)
- [v1.87.3](https://docs.litellm.ai/release_notes/v1.87.3/v1-87-3.md)
