LiteLLM is moving to Rust Read the latest updates.
1.106.0rc3 - Prometheus project_alias label fix, Decision Model stream buffering
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.106.0-rc.3
pip install litellm==1.106.0rc3
This release is published as ghcr.io/berriai/litellm:v1.106.0-rc.3. See the GitHub release and the full releases page
The published GitHub tag is v1.106.0-rc.3. These notes compare it with v1.106.0-rc.2, the previous release candidate on rc/1.106.0. It is a small rc patch: two fixes were backported onto the rc branch and everything else is unchanged from v1.106.0-rc.2, whose release notes cover the previous patch. The v1.106.0-rc.1 release notes cover the full 1.106 line against v1.105.0
Key Highlights
- Prometheus metrics for project keys: proxies that set
custom_prometheus_metadata_labels: ["project_alias"]record latency, request and deployment metrics for project keys again, and the project per-model rate limit gauges show up with a singleproject_aliaslabel - Decision Model stream buffering:
streaming_buffer_until_moderated: trueon a Decision Model guardrail now holds a streamed answer until the decision model passes it, so a blocked answer no longer starts streaming before the policy error
AI Integrations
Logging
Prometheus
- A
custom_prometheus_metadata_labelsentry whose name matches a label a metric already has is no longer added to that metric a second time. Withcustom_prometheus_metadata_labels: ["project_alias"], the project per-model rate limit gauges added inv1.106.0-rc.1raised on every request from a project key with per-model limits, and the rest of the success event was skipped, so latency,litellm_proxy_total_requests_metric_totaland deployment success metrics never counted those requests. They are counted again, andlitellm_project_model_rate_limit_allowed_metricandlitellm_project_model_rate_limit_used_metriccarry oneproject_aliaslabel. See PR #46491, backport of PR #46267
Guardrails
Decision Model
streaming_buffer_until_moderated: trueon a Decision Model guardrail now reaches the guardrail instead of being dropped at load. A streamedpost_callanswer is held until moderation finishes, so a blocked answer returns the policy error with no assistant content. Leaving the setting unset keeps the existing sampled streaming, and a value that is not a boolean now fails the guardrail at load. See PR #46383, backport of PR #46086
PR roll-up by ownership area
- Logging: 1
- Guardrails: 1
Full Changelog
https://github.com/BerriAI/litellm/compare/v1.106.0-rc.2...v1.106.0-rc.3