mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Update litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/guardrail_benchmarks/test_eval.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
37ec9f8995
commit
bcf9acf5ea
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ def _save_confusion_results(label: str, metrics: dict, wrong: list, rows: list)
|
|||
else:
|
||||
safe_label = f"{topic}_{method_name}"
|
||||
safe_label = safe_label.replace(" ", "_")
|
||||
safe_label = re.sub(r"[^a-z0-9_\-]", "", safe_label)
|
||||
safe_label = re.sub(r"[^a-z0-9_.\-]", "", safe_label)
|
||||
safe_label = re.sub(r"_+", "_", safe_label).strip("_")
|
||||
result = {
|
||||
"label": label,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue