mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 20:14:13 +00:00
update safety to use model sku ids and not model dirs
This commit is contained in:
parent
a0e61a3c7a
commit
2a9bdb208b
2 changed files with 23 additions and 11 deletions
|
@ -10,14 +10,14 @@ from pydantic import BaseModel
|
|||
|
||||
|
||||
class LlamaGuardShieldConfig(BaseModel):
|
||||
model_dir: str
|
||||
model: str
|
||||
excluded_categories: List[str]
|
||||
disable_input_check: bool = False
|
||||
disable_output_check: bool = False
|
||||
|
||||
|
||||
class PromptGuardShieldConfig(BaseModel):
|
||||
model_dir: str
|
||||
model: str
|
||||
|
||||
|
||||
class SafetyConfig(BaseModel):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue