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
607d5fc2
authored
May 19, 2025
by
JoeyLearnsToCode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 渠道编辑页增加复制所有模型功能
parent
1667f089
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
web/src/i18n/locales/en.json
+1
-0
web/src/pages/Channel/EditChannel.js
+10
-1
No files found.
web/src/i18n/locales/en.json
View file @
607d5fc2
...
...
@@ -408,6 +408,7 @@
"填入基础模型"
:
"Fill in the basic model"
,
"填入所有模型"
:
"Fill in all models"
,
"清除所有模型"
:
"Clear all models"
,
"复制所有模型"
:
"Copy all models"
,
"密钥"
:
"Key"
,
"请输入密钥"
:
"Please enter the key"
,
"批量创建"
:
"Batch Create"
,
...
...
web/src/pages/Channel/EditChannel.js
View file @
607d5fc2
...
...
@@ -29,6 +29,7 @@ import {
}
from
'@douyinfe/semi-ui'
;
import
{
getChannelModels
,
loadChannelModels
}
from
'../../components/utils.js'
;
import
{
IconHelpCircle
}
from
'@douyinfe/semi-icons'
;
import
{
copy
}
from
'../../helpers'
;
const
MODEL_MAPPING_EXAMPLE
=
{
'gpt-3.5-turbo'
:
'gpt-3.5-turbo-0125'
,
...
...
@@ -873,7 +874,7 @@ const EditChannel = (props) => {
optionList
=
{
modelOptions
}
/
>
<
div
style
=
{{
lineHeight
:
'40px'
,
marginBottom
:
'12px'
}}
>
<
Space
>
<
Space
wrap
=
{
true
}
>
<
Button
type
=
'primary'
onClick
=
{()
=>
{
...
...
@@ -912,6 +913,14 @@ const EditChannel = (props) => {
>
{
t
(
'清除所有模型'
)}
<
/Button
>
<
Button
type
=
'tertiary'
onClick
=
{()
=>
{
copy
(
inputs
.
models
.
join
(
','
));
}}
>
{
t
(
'复制所有模型'
)}
<
/Button
>
<
/Space
>
<
Input
addonAfter
=
{
...
...
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