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
a3796b90
authored
Nov 26, 2025
by
Seefs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: edit vertex key type
parent
d98e7b3d
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 @
a3796b90
...
...
@@ -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