update documentation with required categories

This commit is contained in:
Swapna Lekkala 2025-08-05 21:56:56 -07:00
parent 3f25eb4fb1
commit 817cbc8a42
3 changed files with 19 additions and 1 deletions

View file

@ -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