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.
This commit is contained in:
crp4222 2026-08-31 11:51:48 +02:00
parent 4af91b7b4f
commit c6505635ec

View file

@ -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: