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]

Fix routing of encrypted content

Sameer Kankuteca597e18c8a0
diff --git a/litellm/router.py b/litellm/router.py
index 652cd68b555..67ccec4c6ef 100644
--- a/litellm/router.py
+++ b/litellm/router.py
@@ -1289,6 +1289,11 @@ class Router:
)
elif pre_call_check == "enforce_model_rate_limits":
_callback = ModelRateLimitingCheck(dual_cache=self.cache)
+ elif pre_call_check == "encrypted_content_affinity":
+ from litellm.router_utils.pre_call_checks.encrypted_content_affinity_check import (
+ EncryptedContentAffinityCheck,
+ )
+ _callback = EncryptedContentAffinityCheck()
if _callback is None:
continue