mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-26 11:42:01 +00:00
feat(starter)!: simplify starter distro; litellm model registry changes
This commit is contained in:
parent
3344d8a9e5
commit
f6ba8a123d
59 changed files with 229 additions and 2304 deletions
|
|
@ -146,9 +146,9 @@ class LlamaGuardSafetyImpl(Safety, ShieldsProtocolPrivate):
|
|||
pass
|
||||
|
||||
async def register_shield(self, shield: Shield) -> None:
|
||||
# Allow any model to be registered as a shield
|
||||
# The model will be validated during runtime when making inference calls
|
||||
pass
|
||||
model_id = shield.provider_resource_id
|
||||
if not model_id:
|
||||
raise ValueError("Llama Guard shield must have a model id")
|
||||
|
||||
async def run_shield(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue