Skip to content

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]

Update litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py

jquinterae0ffdf5a6ea
diff --git a/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py b/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py
index 7ce825c729c..55fbd54bc85 100644
--- a/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py
+++ b/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py
@@ -1084,7 +1084,7 @@ class ContentFilterGuardrail(CustomGuardrail):
self,
keyword: str,
action: ContentFilterAction,
- description: str,
+ description: Optional[str],
text: str,
detections: Optional[List[ContentFilterDetection]],
) -> str: