chore(version): 0.9.13

This commit is contained in:
kangfenmao 2025-01-20 13:04:55 +08:00
parent d850fd315a
commit a6833d5994
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "CherryStudio", "name": "CherryStudio",
"version": "0.9.12", "version": "0.9.13",
"private": true, "private": true,
"description": "A powerful AI assistant for producer.", "description": "A powerful AI assistant for producer.",
"main": "./out/main/index.js", "main": "./out/main/index.js",

View File

@ -114,10 +114,9 @@ export default class GeminiProvider extends BaseProvider {
} }
private getSafetySettings(modelId: string): SafetySetting[] { private getSafetySettings(modelId: string): SafetySetting[] {
const safetyThreshold = const safetyThreshold = modelId.includes('gemini-2.0-flash-exp')
modelId.includes('gemini-exp-') || modelId.includes('thinking-exp') ? ('OFF' as HarmBlockThreshold)
? HarmBlockThreshold.BLOCK_NONE : HarmBlockThreshold.BLOCK_NONE
: ('OFF' as HarmBlockThreshold)
return [ return [
{ {