File size: 636 Bytes
5150311
f83a079
5150311
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""https://ai.google.dev/api/rest/v1beta/HarmCategory"""

SAFETY_SETTINGS = [
    {
        "category": "HARM_CATEGORY_SEXUAL",
        "threshold": "ALLOW",
    },
    {
        "category": "HARM_CATEGORY_DANGEROUS",
        "threshold": "ALLOW",
    },
    {
        "category": "HARM_CATEGORY_HARASSMENT",
        "threshold": "ALLOW",
    },
    {
        "category": "HARM_CATEGORY_HATE_SPEECH",
        "threshold": "ALLOW",
    },
    {
        "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
        "threshold": "ALLOW",
    },
    {
        "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
        "threshold": "ALLOW",
    },
]