From dab121c9c711e856f6668c505cb59fd2c36e6fd5 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Thu, 23 Nov 2023 15:51:41 +0900 Subject: [PATCH] [fix] safety settings --- src/ts/process/request.ts | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/ts/process/request.ts b/src/ts/process/request.ts index 8fceb79e..38b2b9b2 100644 --- a/src/ts/process/request.ts +++ b/src/ts/process/request.ts @@ -792,36 +792,6 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model' "prompt": { "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, "maxOutputTokens": arg.maxTokens, "candidate_count": 1