From 24193f4395540854697515489fc664523d548cf5 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Wed, 15 Jan 2025 11:18:21 -0800 Subject: [PATCH] remove assert --- llama_stack/providers/inline/safety/llama_guard/llama_guard.py | 1 - 1 file changed, 1 deletion(-) diff --git a/llama_stack/providers/inline/safety/llama_guard/llama_guard.py b/llama_stack/providers/inline/safety/llama_guard/llama_guard.py index 1496074a9..bc4d9640c 100644 --- a/llama_stack/providers/inline/safety/llama_guard/llama_guard.py +++ b/llama_stack/providers/inline/safety/llama_guard/llama_guard.py @@ -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()