[fix] safety settings
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user