Przeglądaj źródła

chore: set the google safety setting to lowest

YeungYeah 1 rok temu
rodzic
commit
24bf7950d8
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      app/client/platforms/google.ts

+ 4 - 4
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",
         },
       ],
     };