---
title: "v1.87.4 - Guardrails & Logging Fixes"
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-09"
related:
  - "/release_notes/v1.87.5/v1-87-5"
  - "/release_notes/v1.87.3/v1-87-3"
---
# v1.87.4 - Guardrails & Logging Fixes

> 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` is a patch release on top of [`v1.87.3`](/release_notes/v1.87.3/v1-87-3). It backports guardrail correctness fixes (a single pre-call hook for model-level guardrails, no DB re-init on every poll, 400 instead of 500 when AIM blocks a request), caps Anthropic cache-control injection, and resolves several logging issues across Datadog batching, passthrough duplication, and Claude Code traces.

### What's Changed

- fix(datadog): split oversized batches on 413 instead of re-queueing forever - [PR #29444](https://github.com/BerriAI/litellm/pull/29444)
- fix: stop use_chat_completions_api flag from leaking into provider request body - [PR #29447](https://github.com/BerriAI/litellm/pull/29447)
- fix: duplicate Claude Code traces - [PR #29311](https://github.com/BerriAI/litellm/pull/29311)
- fix: passthrough endpoints duplicate logs - [PR #29598](https://github.com/BerriAI/litellm/pull/29598)
- fix(integrations): cap Anthropic cache_control injection at 4 blocks - [PR #30480](https://github.com/BerriAI/litellm/pull/30480)
- fix(guardrails): run pre_call hook once for model-level guardrails - [PR #30543](https://github.com/BerriAI/litellm/pull/30543)
- fix(guardrails): stop re-initializing DB guardrails on every poll - [PR #30542](https://github.com/BerriAI/litellm/pull/30542)
- fix(guardrails): return 400 not 500 when AIM blocks a request - [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)
