From 24bf7950d85c7894a38677bffe5771ae981993b6 Mon Sep 17 00:00:00 2001 From: YeungYeah Date: Wed, 12 Jun 2024 21:59:28 +0800 Subject: [PATCH] chore: set the google safety setting to lowest --- app/client/platforms/google.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/client/platforms/google.ts b/app/client/platforms/google.ts index a786f5275..953aacb06 100644 --- a/app/client/platforms/google.ts +++ b/app/client/platforms/google.ts @@ -85,19 +85,19 @@ export class GeminiProApi implements LLMApi { safetySettings: [ { category: "HARM_CATEGORY_HARASSMENT", - threshold: "BLOCK_ONLY_HIGH", + threshold: "BLOCK_NONE", }, { category: "HARM_CATEGORY_HATE_SPEECH", - threshold: "BLOCK_ONLY_HIGH", + threshold: "BLOCK_NONE", }, { category: "HARM_CATEGORY_SEXUALLY_EXPLICIT", - threshold: "BLOCK_ONLY_HIGH", + threshold: "BLOCK_NONE", }, { category: "HARM_CATEGORY_DANGEROUS_CONTENT", - threshold: "BLOCK_ONLY_HIGH", + threshold: "BLOCK_NONE", }, ], };