docs(enterprise.md): add llm guard to docs

This commit is contained in:
Krrish Dholakia 2024-02-19 21:05:01 -08:00
parent 14513af2e2
commit fde478f70b
2 changed files with 33 additions and 1 deletions

View file

@ -66,7 +66,9 @@ class _ENTERPRISE_LLMGuard(CustomLogger):
analyze_url, json=analyze_payload
) as response:
redacted_text = await response.json()
verbose_proxy_logger.info(
f"LLM Guard: Received response - {redacted_text}"
)
if redacted_text is not None:
if (
redacted_text.get("is_valid", None) is not None