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 5b00c21f15
commit c87e88a53a

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