From 2a08e315de642e7bfadea5fb5f80b6c179adabd0 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 16 Feb 2026 15:28:36 -0800 Subject: [PATCH] Update litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../guardrail_hooks/litellm_content_filter/content_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1f2c7fed793..e5524e419ad 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 @@ -1360,7 +1360,7 @@ class ContentFilterGuardrail(CustomGuardrail): methods.add("regex") else: methods.add("keyword") - return ",".join(sorted(methods)) if methods else "keyword" + return ",".join(sorted(methods)) if methods else "" def _get_patterns_checked_count(self) -> int: """Get total number of patterns and keywords that were evaluated."""