Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs fix + linting fix

Ishaan Jaffer36d181e39876
diff --git a/docs/my-website/release_notes/v1.79.3-stable/index.md b/docs/my-website/release_notes/v1.79.3-stable/index.md
index 923f0e5fa60..a1d0e06d81e 100644
--- a/docs/my-website/release_notes/v1.79.3-stable/index.md
+++ b/docs/my-website/release_notes/v1.79.3-stable/index.md
@@ -73,48 +73,29 @@ Get started with the built-in guardrails on AI Gateway [here](https://docs.litel
---
-
### Performance – `/responses` 19× Lower Median Latency
-This update improves latency and reduces memory overhead from per-request setup by including our internal network management for connection handling while the responses API was already using the same pipeline.
-
-As a result, end-to-end latency improved across all percentiles:
-
-`/responses`
-
-**Median latency:** 3,600 ms → **190 ms** (−94.7%, ~19× faster)
-
-**p95 latency:** 4,300 ms → **280 ms** (−93.5%)
-
-**p99 latency:** 4,600 ms → **590 ms** (−87.2%)
-
-**Average latency:** 3,571 ms → **208 ms** (−94.2%)
-
-**RPS:** 231.3 → **1,058.6** (+357.5%)
-
-#### **Test Setup**
-
-**Locust**
-
-- **Concurrent users:** 1,000
-- **Ramp-up:** 500
-
-**System Specs**
-
-- **CPU:** 4 vCPUs
-- **Memory:** 8 GB RAM
-- **LiteLLM Workers:** 4
-- **Instances**: 4
-
-> Database used; Redis unused.
+This update significantly improves `/responses` latency by integrating our internal network management for connection handling, eliminating per-request setup overhead.
-**Configuration (config.yaml)**
+#### Results
-View the complete configuration: [gist.github.com/AlexsanderHamir/config.yaml](https://gist.github.com/AlexsanderHamir/550791675fd752befcac6a9e44024652)
+| 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% |
-**Load Script (no_cache_hits.py)**
+#### Test Setup
-View the complete load testing script: [gist.github.com/AlexsanderHamir/no_cache_hits.py](https://gist.github.com/AlexsanderHamir/99d673bf74cdd81fd39f59fa9048f2e8)
+| 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](https://gist.github.com/AlexsanderHamir/550791675fd752befcac6a9e44024652) |
+| **Load Script** | [no_cache_hits.py](https://gist.github.com/AlexsanderHamir/99d673bf74cdd81fd39f59fa9048f2e8) |
---
diff --git a/litellm/proxy/guardrails/guardrail_registry.py b/litellm/proxy/guardrails/guardrail_registry.py
index 9369acd6462..c175cd54a50 100644
--- a/litellm/proxy/guardrails/guardrail_registry.py
+++ b/litellm/proxy/guardrails/guardrail_registry.py
@@ -3,7 +3,7 @@
import importlib
import os
from datetime import datetime, timezone
-from typing import Dict, List, Optional, Type, cast
+from typing import Any, Dict, List, Optional, Type, cast
import litellm
from litellm._logging import verbose_proxy_logger
@@ -233,7 +233,7 @@ class GuardrailRegistry:
try:
guardrail_name = guardrail.get("guardrail_name")
# Properly serialize LitellmParams Pydantic model to dict
- litellm_params_obj = guardrail.get("litellm_params", {})
+ litellm_params_obj: Any = guardrail.get("litellm_params", {})
if hasattr(litellm_params_obj, 'model_dump'):
litellm_params_dict = litellm_params_obj.model_dump()
else:
@@ -285,7 +285,7 @@ class GuardrailRegistry:
try:
guardrail_name = guardrail.get("guardrail_name")
# Properly serialize LitellmParams Pydantic model to dict
- litellm_params_obj = guardrail.get("litellm_params", {})
+ litellm_params_obj: Any = guardrail.get("litellm_params", {})
if hasattr(litellm_params_obj, 'model_dump'):
litellm_params_dict = litellm_params_obj.model_dump()
else: