LiteLLM is moving to Rust Read the latest updates.
LiteLLM v1.104.4 fixes count_tokens, team batch access and guardrail settings
Deploy this version
- Docker
- Pip
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.4
pip install litellm==1.104.4
This release is published as ghcr.io/berriai/litellm:v1.104.4. See the GitHub release and the full releases page
v1.104.4 is a patch release on top of v1.104.3. It backports the token counting fixes, team-scoped batch access and an Admin UI guardrail settings fix onto stable/1.104.x. There are no new database migrations. The v1.104.4 tag points at 5346a40
Key Highlights
- Token counting: Anthropic-format count requests for OpenAI and Gemini models are converted the same way
/v1/messagesinference converts them, and count responses say where the number came from - Team batches: team keys can read and cancel their own team's batches and download the finished results
- Guardrail settings: the Admin UI's Add Guardrail wizard lists its providers again
LLM API Endpoints
Bugs
- Token counting
- Anthropic-format count requests for OpenAI and Gemini models are converted the same way
/v1/messagesinference converts them - Count responses carry
litellm_count_source, which isprovider,token_count_modelorlocal_estimate. When a provider count fails and local counting is on, the response is a local estimate labelledlocal_estimate - New
model_infosettingstoken_count_framingandtoken_count_modeltune the count for one deployment. When a count model answers, the response also carrieslitellm_count_model - These fixes come from PR #47389, with PR #47446 and PR #47454 keeping earlier Google
countTokensrequest shapes and prompt plus messages inputs working as before
- Anthropic-format count requests for OpenAI and Gemini models are converted the same way
Management Endpoints / UI
Bugs
- Team keys can read and cancel their own team's batches and download the finished results. The same model check applies to file, fine-tuning, vector store, character and video ids - PR #47067
GET /guardrails/ui/add_guardrail_settingsreturned 500 on every call, so the Add Guardrail wizard in the Admin UI listed no providers. It loads again - PR #45935
The team batch fix is backported in PR #47344
PR roll-up by ownership area
- LLM API Endpoints: 3
- Auth & Management: 1
- Guardrails: 1
Full Changelog
https://github.com/BerriAI/litellm/compare/v1.104.3...v1.104.4