---
title: "LiteLLM v1.104.5 counts Claude tokens on Bedrock Mantle when Bedrock Runtime cannot"
url: "/release_notes/v1.104.5/v1-104-5"
canonical_url: "https://docs.litellm.ai/release_notes/v1.104.5/v1-104-5"
type: "release-notes"
last_updated: "2026-10-27"
summary: "Token counts for newer Claude models on Bedrock come from the Bedrock Mantle endpoint instead of a local estimate that undercounts."
related:
  - "/release_notes/v1.104.6/v1-104-6"
  - "/release_notes/v1.104.4/v1-104-4"
---
# LiteLLM v1.104.5 counts Claude tokens on Bedrock Mantle when Bedrock Runtime cannot

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

## Deploy this version

**Docker**

```bash
docker run \
-e LITELLM_MASTER_KEY=sk-<paste-a-long-random-key> \
-e DATABASE_URL=postgresql://<user>:<password>@<host>:5432/<dbname> \
-e STORE_MODEL_IN_DB=True \
-p 4000:4000 \
docker.litellm.ai/berriai/litellm:1.104.5
```

**Pip**

```bash
pip install litellm==1.104.5
```

This release is published as [`ghcr.io/berriai/litellm:v1.104.5`](https://github.com/BerriAI/litellm/pkgs/container/litellm). See the [GitHub release](https://github.com/BerriAI/litellm/releases/tag/v1.104.5) and the full [releases page](https://github.com/BerriAI/litellm/releases)

`v1.104.5` is a patch release on top of [`v1.104.4`](/release_notes/v1.104.4/v1-104-4). It backports the Bedrock Mantle fallback for token counting onto `stable/1.104.x`. There are no new database migrations. The `v1.104.5` tag points at [`5275320`](https://github.com/BerriAI/litellm/commit/5275320b6101fed58dd2294fb2fe93a7d39d599a)

### What's Changed

- Bedrock Runtime CountTokens rejects newer Claude models, so `/v1/messages/count_tokens` fell back to a local estimate that undercounts. On a 400 or 404 for a Claude model the count now comes from the Bedrock Mantle Anthropic endpoint, and only falls back to the local estimate if Mantle also fails. Non-Claude models never call Mantle - [PR #45317](https://github.com/BerriAI/litellm/pull/45317), [PR #46430](https://github.com/BerriAI/litellm/pull/46430)

The fix and the version bump are backported in [PR #47634](https://github.com/BerriAI/litellm/pull/47634)

## Full Changelog

https://github.com/BerriAI/litellm/compare/v1.104.4...v1.104.5

## Related pages

- [v1.104.6](https://docs.litellm.ai/release_notes/v1.104.6/v1-104-6.md)
- [v1.104.4](https://docs.litellm.ai/release_notes/v1.104.4/v1-104-4.md)
