mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
(WIP) PaLM API
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user