update method name to run_moderation

This commit is contained in:
Swapna Lekkala 2025-08-04 14:15:42 -07:00
parent 70ebc4b448
commit 2d608ddd3b
6 changed files with 295 additions and 295 deletions

View file

@ -221,7 +221,7 @@ class LlamaGuardSafetyImpl(Safety, ShieldsProtocolPrivate):
return await impl.run(messages)
async def create(
async def run_moderation(
self,
input: str | list[str],
model: str | None = None, # To replace with default model for llama-guard