(WIP) PaLM API

This commit is contained in:
Cohee
2023-09-23 20:48:56 +03:00
parent 5275e0c904
commit a081f78bd8
8 changed files with 182 additions and 17 deletions

View File

@ -102,10 +102,42 @@ const UNSAFE_EXTENSIONS = [
".ws",
];
const PALM_SAFETY = [
{
category: "HARM_CATEGORY_UNSPECIFIED",
threshold: "BLOCK_NONE"
},
{
category: "HARM_CATEGORY_DEROGATORY",
threshold: "BLOCK_NONE"
},
{
category: "HARM_CATEGORY_TOXICITY",
threshold: "BLOCK_NONE"
},
{
category: "HARM_CATEGORY_VIOLENCE",
threshold: "BLOCK_NONE"
},
{
category: "HARM_CATEGORY_SEXUAL",
threshold: "BLOCK_NONE"
},
{
category: "HARM_CATEGORY_MEDICAL",
threshold: "BLOCK_NONE"
},
{
category: "HARM_CATEGORY_DANGEROUS",
threshold: "BLOCK_NONE"
}
];
const UPLOADS_PATH = './uploads';
module.exports = {
DIRECTORIES,
UNSAFE_EXTENSIONS,
UPLOADS_PATH,
PALM_SAFETY,
}