change safety settings

This commit is contained in:
yanjunze 2024-02-15 16:18:06 +08:00 committed by GitHub
parent 1d6ee64e1d
commit af617269d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,19 +55,19 @@ export class GeminiProApi implements LLMApi {
safetySettings: [ safetySettings: [
{ {
category: "HARM_CATEGORY_HARASSMENT", category: "HARM_CATEGORY_HARASSMENT",
threshold: "BLOCK_ONLY_HIGH", threshold: "BLOCK_NONE",
}, },
{ {
category: "HARM_CATEGORY_HATE_SPEECH", category: "HARM_CATEGORY_HATE_SPEECH",
threshold: "BLOCK_ONLY_HIGH", threshold: "BLOCK_NONE",
}, },
{ {
category: "HARM_CATEGORY_SEXUALLY_EXPLICIT", category: "HARM_CATEGORY_SEXUALLY_EXPLICIT",
threshold: "BLOCK_ONLY_HIGH", threshold: "BLOCK_NONE",
}, },
{ {
category: "HARM_CATEGORY_DANGEROUS_CONTENT", category: "HARM_CATEGORY_DANGEROUS_CONTENT",
threshold: "BLOCK_ONLY_HIGH", threshold: "BLOCK_NONE",
}, },
], ],
}; };