From c87e88a53a96e2282cd4167c0b0766c84ffd7084 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Wed, 15 Jan 2025 13:56:11 +0800 Subject: [PATCH] feat: add civic integrity category to harm block settings in GeminiProvider --- src/renderer/src/providers/GeminiProvider.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/providers/GeminiProvider.ts b/src/renderer/src/providers/GeminiProvider.ts index dfe9c765..10114777 100644 --- a/src/renderer/src/providers/GeminiProvider.ts +++ b/src/renderer/src/providers/GeminiProvider.ts @@ -151,7 +151,8 @@ export default class GeminiProvider extends BaseProvider { threshold: 'OFF' as HarmBlockThreshold }, { category: HarmCategory.HARM_CATEGORY_HARASSMENT, threshold: 'OFF' as HarmBlockThreshold }, - { category: HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT, 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 } ] }, this.requestOptions