Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7100c787
authored
Feb 26, 2025
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Update Gemini safety settings default value
parent
8a30d64a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
setting/model_setting/gemini.go
+1
-1
web/src/pages/Setting/Model/SettingGeminiModel.js
+1
-1
No files found.
setting/model_setting/gemini.go
View file @
7100c787
...
...
@@ -6,7 +6,7 @@ import (
)
var
geminiSafetySettings
=
map
[
string
]
string
{
"default"
:
"
OFF
"
,
"default"
:
"
BLOCK_NONE
"
,
"HARM_CATEGORY_CIVIC_INTEGRITY"
:
"BLOCK_NONE"
,
}
...
...
web/src/pages/Setting/Model/SettingGeminiModel.js
View file @
7100c787
...
...
@@ -10,7 +10,7 @@ import {
import
{
useTranslation
}
from
'react-i18next'
;
const
GEMINI_SETTING_EXAMPLE
=
{
'default'
:
'
OFF
'
,
'default'
:
'
BLOCK_NONE
'
,
'HARM_CATEGORY_CIVIC_INTEGRITY'
:
'BLOCK_NONE'
,
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment