mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 05:32:25 +00:00
update documentation with required categories
This commit is contained in:
parent
3f25eb4fb1
commit
817cbc8a42
3 changed files with 19 additions and 1 deletions
|
|
@ -22,6 +22,20 @@ class ModerationObjectResults(BaseModel):
|
|||
:param categories: A list of the categories, and whether they are flagged or not.
|
||||
:param category_applied_input_types: A list of the categories along with the input type(s) that the score applies to.
|
||||
:param category_scores: A list of the categories along with their scores as predicted by model.
|
||||
Required set of categories that need to be in response
|
||||
- violence
|
||||
- violence/graphic
|
||||
- harassment
|
||||
- harassment/threatening
|
||||
- hate
|
||||
- hate/threatening
|
||||
- illicit
|
||||
- illicit/violent
|
||||
- sexual
|
||||
- sexual/minors
|
||||
- self-harm
|
||||
- self-harm/intent
|
||||
- self-harm/instructions
|
||||
"""
|
||||
|
||||
flagged: bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue