From 70ebc4b44846b475d60bcadee35a10f4edbb159a Mon Sep 17 00:00:00 2001 From: Swapna Lekkala Date: Fri, 1 Aug 2025 16:21:40 -0700 Subject: [PATCH] minor fix --- llama_stack/providers/inline/safety/llama_guard/llama_guard.py | 2 +- 1 file changed, 1 insertion(+), 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 6b75f5a8e..3724112d2 100644 --- a/llama_stack/providers/inline/safety/llama_guard/llama_guard.py +++ b/llama_stack/providers/inline/safety/llama_guard/llama_guard.py @@ -423,7 +423,7 @@ class LlamaGuardShield: def create_safe_moderation_object(self, model: str) -> ModerationObject: """Create a ModerationObject for safe content.""" categories = dict.fromkeys(OPENAI_TO_LLAMA_CATEGORIES_MAP.keys(), False) - category_scores = dict.fromkeys(OPENAI_TO_LLAMA_CATEGORIES_MAP.keys(), 0.0) + category_scores = dict.fromkeys(OPENAI_TO_LLAMA_CATEGORIES_MAP.keys(), 1.0) category_applied_input_types = {key: [] for key in OPENAI_TO_LLAMA_CATEGORIES_MAP.keys()} return ModerationObject(