chore(version): 0.9.13
This commit is contained in:
parent
d850fd315a
commit
a6833d5994
@ -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",
|
||||||
|
|||||||
@ -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 [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user