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(router): log the hashed affinity key so JWT callers stay distinguishable
mateo-berri1b42b81f4e04
diff --git a/litellm/router_utils/pre_call_checks/deployment_affinity_check.py b/litellm/router_utils/pre_call_checks/deployment_affinity_check.pyindex ea450864604..6f3ea8eb78a 100644--- a/litellm/router_utils/pre_call_checks/deployment_affinity_check.py+++ b/litellm/router_utils/pre_call_checks/deployment_affinity_check.py@@ -533,9 +533,9 @@ class DeploymentAffinityCheck(CustomLogger):return typed_healthy_deploymentsverbose_router_logger.debug(- "DeploymentAffinityCheck: api-key affinity hit -> deployment=%s user_key=%s",+ "DeploymentAffinityCheck: caller affinity hit -> deployment=%s user_key=%s",model_id,- self._shorten_for_logs(user_key),+ self._shorten_for_logs(self._hash_user_key(user_key)),)return [deployment]@@ -626,7 +626,7 @@ class DeploymentAffinityCheck(CustomLogger):deployment_model_name,model_id,self.ttl_seconds,- self._shorten_for_logs(user_key),+ self._shorten_for_logs(self._hash_user_key(user_key)),)else:verbose_router_logger.debug(