mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 14:08:00 +00:00
fix: instantiate abstract PromptGuardSafetyImpl class
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
This commit is contained in:
parent
19123ca957
commit
eef61e2b26
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,9 @@ class PromptGuardSafetyImpl(Safety, ShieldsProtocolPrivate):
|
|||
|
||||
return await self.shield.run(messages)
|
||||
|
||||
async def run_moderation(self, input: str | list[str], model: str):
|
||||
raise NotImplementedError("run_moderation not implemented for PromptGuard")
|
||||
|
||||
|
||||
class PromptGuardShield:
|
||||
def __init__(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue