From 57718dda6fb2429262da001a86152f0cbd3961e2 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Wed, 15 Jan 2025 15:22:37 +0800 Subject: [PATCH] feat: update harmblockthreshold for harm_category_civic_integrity --- src/renderer/src/providers/GeminiProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/providers/GeminiProvider.ts b/src/renderer/src/providers/GeminiProvider.ts index 10114777..347a6d8d 100644 --- a/src/renderer/src/providers/GeminiProvider.ts +++ b/src/renderer/src/providers/GeminiProvider.ts @@ -152,7 +152,7 @@ export default class GeminiProvider extends BaseProvider { }, { category: HarmCategory.HARM_CATEGORY_HARASSMENT, threshold: 'OFF' as HarmBlockThreshold }, { category: HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT, threshold: 'OFF' as HarmBlockThreshold }, - { category: 'HARM_CATEGORY_CIVIC_INTEGRITY' as HarmCategory, threshold: 'OFF' as HarmBlockThreshold } + { category: 'HARM_CATEGORY_CIVIC_INTEGRITY' as HarmCategory, threshold: 'BLOCK_NONE' as HarmBlockThreshold } ] }, this.requestOptions