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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fix import issue
Sameer Kankute2f6279d1894c
diff --git a/litellm/router.py b/litellm/router.pyindex 67ccec4c6ef..8eb2c417511 100644--- a/litellm/router.py+++ b/litellm/router.py@@ -1255,6 +1255,10 @@ class Router:# Encrypted content affinity# ---------------------------------------------------------------------if "encrypted_content_affinity" in optional_pre_call_checks:+ from litellm.router_utils.pre_call_checks.encrypted_content_affinity_check import (+ EncryptedContentAffinityCheck,+ )+if self.optional_callbacks is None:self.optional_callbacks = []@@ -1289,11 +1293,6 @@ 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