mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
d8d088b669
commit
3ca8dec638
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ def _run(checker, text: str) -> dict:
|
|||
return {"decision": "ALLOW", "score": 0.0, "matched_topic": None}
|
||||
except HTTPException as e:
|
||||
if e.status_code == 403:
|
||||
detail: dict[str, Any] = e.detail if isinstance(e.detail, dict) else {}
|
||||
detail: Dict[str, Any] = e.detail if isinstance(e.detail, dict) else {}
|
||||
return {
|
||||
"decision": "BLOCK",
|
||||
"score": detail.get("score", 1.0),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue