From 1e59395280a73d8b88449d7fab7ffd6bed8915fd Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 16 Sep 2024 20:12:54 -0700 Subject: [PATCH] fix guardrail linting change --- litellm/integrations/custom_guardrail.py | 5 ----- 1 file changed, 5 deletions(-) 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 []