LiteLLM is moving to Rust Read the latest updates.
v1.102.4 - Spend Logged Once for Large Responses Bridge Requests
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.102.4
pip install litellm==1.102.4
This release is published as ghcr.io/berriai/litellm:v1.102.4. See the GitHub release and the full releases page
v1.102.4 is a patch release on top of v1.102.3. It fixes large non-streaming chat requests to openai/responses/* models being logged and charged twice. There are no new database migrations or breaking changes
Spend logged once for large Responses bridge requests​
A non-streaming chat completion sent to an openai/responses/* model with a very large prompt (roughly 256 KiB of message text or more) wrote two spend log rows for one request, and key, team and daily spend went up by twice the real cost. The request is now logged once, with the provider's Responses result, and budgets drop by the real cost
What's Changed​
- fix(logging): log spend once for large non-streaming requests on the chat to Responses bridge - PR #44508
Full Changelog​
https://github.com/BerriAI/litellm/compare/v1.102.3...v1.102.4