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
Merge branch 'main' into litellm_fix_custom_gaurdrail_fix
Sameer Kankutef5de678f4d55
diff --cc litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.pyindex 3e355a3b95d,0dac30f72b2..243b34687a6--- a/litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py+++ b/litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py@@@ -180,10 -180,10 +180,10 @@@ class UnifiedLLMGuardrails(CustomLoggercall_type: Optional[CallTypesLiteral] = Noneif user_api_key_dict.request_route is not None:call_types = get_call_types_for_route(user_api_key_dict.request_route)- if call_types is not None:- call_type = call_types[0] # type: ignore- if call_types is not None and len(call_types) > 0:++ if call_types is not None and len(call_types) > 0: # type: ignore+ call_type = call_types[0]if call_type is None:- call_type = _infer_call_type(call_type=None, completion_response=response)+ call_type = _infer_call_type(call_type=None, completion_response=response) # type: ignoreif call_type is None:return response