Merge branch 'hiddenlayer-guardrail-integration-update' of https://github.com/Ashton-Sidhu/litellm into hiddenlayer-guardrail-integration-update

This commit is contained in:
Ashton Sidhu 2026-03-18 15:22:16 -04:00
commit fcb16d91af

View file

@ -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")
]