feat: add civic integrity category to harm block settings in GeminiProvider

This commit is contained in:
kangfenmao
2025-01-15 13:56:11 +08:00
parent 2fd2ec8b6e
commit a8536cf296
+2 -1
View File
@@ -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