Skip to content

Commit

Permalink
chore(version): 0.9.13
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Jan 20, 2025
1 parent d850fd3 commit a6833d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CherryStudio",
"version": "0.9.12",
"version": "0.9.13",
"private": true,
"description": "A powerful AI assistant for producer.",
"main": "./out/main/index.js",
Expand Down
7 changes: 3 additions & 4 deletions src/renderer/src/providers/GeminiProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,9 @@ export default class GeminiProvider extends BaseProvider {
}

private getSafetySettings(modelId: string): SafetySetting[] {
const safetyThreshold =
modelId.includes('gemini-exp-') || modelId.includes('thinking-exp')
? HarmBlockThreshold.BLOCK_NONE
: ('OFF' as HarmBlockThreshold)
const safetyThreshold = modelId.includes('gemini-2.0-flash-exp')
? ('OFF' as HarmBlockThreshold)
: HarmBlockThreshold.BLOCK_NONE

return [
{
Expand Down

0 comments on commit a6833d5

Please sign in to comment.