mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-24 06:03:57 +00:00
update method name to run_moderation
This commit is contained in:
parent
70ebc4b448
commit
2d608ddd3b
6 changed files with 295 additions and 295 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue