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 guardrail linting change
Ishaan Jaff1e59395280a7
diff --git a/litellm/integrations/custom_guardrail.py b/litellm/integrations/custom_guardrail.pyindex a94d2c69f62..25512716cd9 100644--- a/litellm/integrations/custom_guardrail.py+++ b/litellm/integrations/custom_guardrail.py@@ -17,11 +17,6 @@ class CustomGuardrail(CustomLogger):self.event_hook: Optional[GuardrailEventHooks] = event_hooksuper().__init__(**kwargs)- # older v1 implementation - not used, just kept for backward compatibility- self.moderation_check: Literal["pre_call", "in_parallel"] = kwargs.get(- "moderation_check", "pre_call"- )-def should_run_guardrail(self, data, event_type: GuardrailEventHooks) -> bool:metadata = data.get("metadata") or {}requested_guardrails = metadata.get("guardrails") or []