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
d5777de9
authored
Nov 30, 2025
by
Calcium-Ion
Committed by
GitHub
Nov 30, 2025
Browse files
Options
Browse Files
Download
Plain Diff
fix: edit vertex key type (#2311)
parents
0ba6004f
a3796b90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
web/src/components/table/channels/modals/EditChannelModal.jsx
+7
-0
No files found.
web/src/components/table/channels/modals/EditChannelModal.jsx
View file @
d5777de9
...
...
@@ -1188,6 +1188,13 @@ const EditChannelModal = (props) => {
settings
.
aws_key_type
=
localInputs
.
aws_key_type
||
'ak_sk'
;
}
// type === 41 (Vertex): 始终保存 vertex_key_type 到 settings,避免编辑时被重置
if
(
localInputs
.
type
===
41
)
{
settings
.
vertex_key_type
=
localInputs
.
vertex_key_type
||
'json'
;
}
else
if
(
'vertex_key_type'
in
settings
)
{
delete
settings
.
vertex_key_type
;
}
// type === 1 (OpenAI) 或 type === 14 (Claude): 设置字段透传控制(显式保存布尔值)
if
(
localInputs
.
type
===
1
||
localInputs
.
type
===
14
)
{
settings
.
allow_service_tier
=
localInputs
.
allow_service_tier
===
true
;
...
...
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