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>
This commit is contained in:
Ishaan Jaff 2026-02-16 15:28:36 -08:00 committed by GitHub
parent 15047614bd
commit 2a08e315de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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."""