diff --git a/litellm/integrations/custom_guardrail.py b/litellm/integrations/custom_guardrail.py index a94d2c69f..25512716c 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_hook super().__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 []