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
dca24c34
authored
Jul 23, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update prompts of channel config page
parent
acc94f3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
web/src/pages/Channel/EditChannel.js
+6
-6
No files found.
web/src/pages/Channel/EditChannel.js
View file @
dca24c34
...
@@ -220,7 +220,7 @@ const EditChannel = () => {
...
@@ -220,7 +220,7 @@ const EditChannel = () => {
label
=
'名称'
label
=
'名称'
required
required
name
=
'name'
name
=
'name'
placeholder
=
{
'请
输入名称
'
}
placeholder
=
{
'请
为渠道命名
'
}
onChange
=
{
handleInputChange
}
onChange
=
{
handleInputChange
}
value
=
{
inputs
.
name
}
value
=
{
inputs
.
name
}
autoComplete
=
'new-password'
autoComplete
=
'new-password'
...
@@ -229,7 +229,7 @@ const EditChannel = () => {
...
@@ -229,7 +229,7 @@ const EditChannel = () => {
<
Form
.
Field
>
<
Form
.
Field
>
<
Form
.
Dropdown
<
Form
.
Dropdown
label
=
'分组'
label
=
'分组'
placeholder
=
{
'请选择分组'
}
placeholder
=
{
'请选择
可以使用该渠道的
分组'
}
name
=
'groups'
name
=
'groups'
required
required
fluid
fluid
...
@@ -246,7 +246,7 @@ const EditChannel = () => {
...
@@ -246,7 +246,7 @@ const EditChannel = () => {
<
Form
.
Field
>
<
Form
.
Field
>
<
Form
.
Dropdown
<
Form
.
Dropdown
label
=
'模型'
label
=
'模型'
placeholder
=
{
'请选择该
通
道所支持的模型'
}
placeholder
=
{
'请选择该
渠
道所支持的模型'
}
name
=
'models'
name
=
'models'
required
required
fluid
fluid
...
@@ -298,7 +298,7 @@ const EditChannel = () => {
...
@@ -298,7 +298,7 @@ const EditChannel = () => {
<
Form
.
Field
>
<
Form
.
Field
>
<
Form
.
TextArea
<
Form
.
TextArea
label
=
'模型映射'
label
=
'模型映射'
placeholder
=
{
`此项可选,
为一个 JSON 文本,键为用户请求的
模型名称,值为要替换的模型名称,例如:\n
${
JSON
.
stringify
(
MODEL_MAPPING_EXAMPLE
,
null
,
2
)}
`
}
placeholder
=
{
`此项可选,
用于修改请求体中的模型名称,为一个 JSON 字符串,键为请求中
模型名称,值为要替换的模型名称,例如:\n
${
JSON
.
stringify
(
MODEL_MAPPING_EXAMPLE
,
null
,
2
)}
`
}
name
=
'model_mapping'
name
=
'model_mapping'
onChange
=
{
handleInputChange
}
onChange
=
{
handleInputChange
}
value
=
{
inputs
.
model_mapping
}
value
=
{
inputs
.
model_mapping
}
...
@@ -323,7 +323,7 @@ const EditChannel = () => {
...
@@ -323,7 +323,7 @@ const EditChannel = () => {
label
=
'密钥'
label
=
'密钥'
name
=
'key'
name
=
'key'
required
required
placeholder
=
{
inputs
.
type
===
15
?
"请输入 access token,当前版本暂不支持自动刷新,请每 30 天更新一次"
:
'请输入密钥'
}
placeholder
=
{
inputs
.
type
===
15
?
"请输入 access token,当前版本暂不支持自动刷新,请每 30 天更新一次"
:
'请输入
渠道对应的鉴权
密钥'
}
onChange
=
{
handleInputChange
}
onChange
=
{
handleInputChange
}
value
=
{
inputs
.
key
}
value
=
{
inputs
.
key
}
autoComplete
=
'new-password'
autoComplete
=
'new-password'
...
@@ -346,7 +346,7 @@ const EditChannel = () => {
...
@@ -346,7 +346,7 @@ const EditChannel = () => {
<
Form
.
Input
<
Form
.
Input
label
=
'镜像'
label
=
'镜像'
name
=
'base_url'
name
=
'base_url'
placeholder
=
{
'此项可选,输入镜像站地址,格式为:https://domain.com'
}
placeholder
=
{
'此项可选,
用于通过镜像站来进行 API 调用,请
输入镜像站地址,格式为:https://domain.com'
}
onChange
=
{
handleInputChange
}
onChange
=
{
handleInputChange
}
value
=
{
inputs
.
base_url
}
value
=
{
inputs
.
base_url
}
autoComplete
=
'new-password'
autoComplete
=
'new-password'
...
...
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