[fix] safety settings

This commit is contained in:
kwaroran
2023-11-23 15:51:41 +09:00
parent ccc39ba9c9
commit dab121c9c7

View File

@@ -792,36 +792,6 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
"prompt": { "prompt": {
"text": stringlizeChat(formated, currentChar?.name ?? '', arg.continue) "text": stringlizeChat(formated, currentChar?.name ?? '', arg.continue)
}, },
"safetySettings":[
{
"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"
}
],
"temperature": arg.temperature, "temperature": arg.temperature,
"maxOutputTokens": arg.maxTokens, "maxOutputTokens": arg.maxTokens,
"candidate_count": 1 "candidate_count": 1