LiteLLM is moving to Rust Read the latest updates.
Performance –
LiteLLM v1.79.3-stable - Built-in Guardrails on AI Gateway
Deploy this version​
- Docker
- Pip
docker run litellm
docker run \
-e STORE_MODEL_IN_DB=True \
-p 4000:4000 \
docker.litellm.ai/berriai/litellm:v1.79.3-stable
pip install litellm
pip install litellm==1.79.3.rc.1
Key Highlights​
- LiteLLM Custom Guardrail - Built-in guardrail with UI configuration support
- Performance Improvements -
/responsesAPI 19× Lower Median Latency - Veo3 Video Generation (Vertex AI + Google AI Studio) - Use OpenAI Video API to generate videos with Vertex AI and Google AI Studio Veo3 models
Built-in Guardrails on AI Gateway​
This release introduces built-in guardrails for LiteLLM AI Gateway, allowing you to enforce protections without depending on an external guardrail API.
- Blocking Keywords - Block known sensitive keywords like "litellm", "python", etc.
- Pattern Detection - Block known sensitive patterns like emails, Social Security Numbers, API keys, etc.
- Custom Regex Patterns - Define custom regex patterns for your specific use case.
Get started with the built-in guardrails on AI Gateway here.
Performance – /responses 19× Lower Median Latency​
This update significantly improves /responses latency by integrating our internal network management for connection handling, eliminating per-request setup overhead.
Results​
| Metric | Before | After | Improvement |
|---|---|---|---|
| Median latency | 3,600 ms | 190 ms | −95% (~19× faster) |
| p95 latency | 4,300 ms | 280 ms | −93% |
| p99 latency | 4,600 ms | 590 ms | −87% |
| Average latency | 3,571 ms | 208 ms | −94% |
| RPS | 231 | 1,059 | +358% |
Test Setup​
| Category | Specification |
|---|---|
| Load Testing | Locust: 1,000 concurrent users, 500 ramp-up |
| System | 4 vCPUs, 8 GB RAM, 4 workers, 4 instances |
| Database | PostgreSQL (Redis unused) |
| Configuration | config.yaml |
| Load Script | no_cache_hits.py |