Download utils_old.py from airworkx/vertexchat: direct link, hf CLI and curl.
- Browser
- Download file 699 Bytes
-
https://huggingface.co/airworkx/vertexchat/resolve/main/utils_old.py
- Command line
-
hf download hf://airworkx/vertexchat/utils_old.py
-
curl -L -o utils_old.py https://huggingface.co/airworkx/vertexchat/resolve/main/utils_old.py
699 Bytes
| """https://ai.google.dev/api/rest/v1beta/HarmCategory""" | |
| SAFETY_SETTTINGS = [ | |
| { | |
| "category": "HARM_CATEGORY_SEXUAL", | |
| "threshold": "BLOCK_ONLY_HIGH", | |
| }, | |
| { | |
| "category": "HARM_CATEGORY_DANGEROUS", | |
| "threshold": "BLOCK_ONLY_HIGH", | |
| }, | |
| { | |
| "category": "HARM_CATEGORY_HARASSMENT", | |
| "threshold": "BLOCK_ONLY_HIGH", | |
| }, | |
| { | |
| "category": "HARM_CATEGORY_HATE_SPEECH", | |
| "threshold": "BLOCK_ONLY_HIGH", | |
| }, | |
| { | |
| "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", | |
| "threshold": "BLOCK_ONLY_HIGH", | |
| }, | |
| { | |
| "category": "HARM_CATEGORY_DANGEROUS_CONTENT", | |
| "threshold": "BLOCK_ONLY_HIGH", | |
| }, | |
| ] | |