mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
Merge branch 'hiddenlayer-guardrail-integration-update' of https://github.com/Ashton-Sidhu/litellm into hiddenlayer-guardrail-integration-update
This commit is contained in:
commit
fcb16d91af
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ class HiddenlayerGuardrail(CustomGuardrail):
|
|||
|
||||
if result.get("evaluation", {}).get("action") == HiddenlayerAction.BLOCK:
|
||||
detected_reasons = [
|
||||
entry["name"]
|
||||
entry.get("name", "unknown")
|
||||
for entry in result.get("analysis", [])
|
||||
if entry.get("detected")
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue