From c6505635ecdf91499882efa40464a253ed059390 Mon Sep 17 00:00:00 2001 From: crp4222 <121295348+crp4222@users.noreply.github.com> Date: Mon, 31 Aug 2026 11:51:48 +0200 Subject: [PATCH] fix(guardrails): advertise the privaite floor the guardrail is tested against The ImportError told users to install privaite>=0.2.4 while the guardrail relies on APIs and a block_entities config field that only later releases provide; 0.4.2 is the version its tests run against. --- litellm/proxy/guardrails/guardrail_hooks/privaite/privaite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/guardrails/guardrail_hooks/privaite/privaite.py b/litellm/proxy/guardrails/guardrail_hooks/privaite/privaite.py index d2bcb3ce476..fdf4d251757 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/privaite/privaite.py +++ b/litellm/proxy/guardrails/guardrail_hooks/privaite/privaite.py @@ -372,7 +372,7 @@ class PrivaiteGuardrail(CustomGuardrail): except ImportError as exc: # pragma: no cover raise RuntimeError( "The PrivAiTe guardrail requires the 'privaite' package. " - "Install it with: pip install 'privaite>=0.2.4'" + "Install it with: pip install 'privaite>=0.4.2'" ) from exc if self.block_entities and "block_entities" not in PIIConfig.model_fields: