remove assert

This commit is contained in:
Xi Yan 2025-01-15 11:18:21 -08:00
parent 6cec64c2e4
commit 24193f4395

View file

@ -267,7 +267,6 @@ class LlamaGuardShield:
event.event_type == ChatCompletionResponseEventType.progress
and event.delta.type == "text"
):
assert isinstance(event.delta.text, str)
content += event.delta.text
content = content.strip()