This commit is contained in:
Ashwin Bharambe 2024-11-12 11:11:01 -08:00
parent 593ba80162
commit d0ad198be9
2 changed files with 4 additions and 1 deletions

View file

@ -128,7 +128,6 @@ class LlamaGuardSafetyImpl(Safety, ShieldsProtocolPrivate):
pass
async def register_shield(self, shield: Shield) -> None:
print(f"Registering shield {shield}")
if shield.shield_type != ShieldType.llama_guard:
raise ValueError(f"Unsupported shield type: {shield.shield_type}")