Skip to content

Commit

Permalink
chore: update prompts of channel config page
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Jul 23, 2023
1 parent ce93c9b commit 806bf82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions web/src/pages/Channel/EditChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const EditChannel = () => {
label='名称'
required
name='name'
placeholder={'请输入名称'}
placeholder={'请为渠道命名'}
onChange={handleInputChange}
value={inputs.name}
autoComplete='new-password'
Expand All @@ -229,7 +229,7 @@ const EditChannel = () => {
<Form.Field>
<Form.Dropdown
label='分组'
placeholder={'请选择分组'}
placeholder={'请选择可以使用该渠道的分组'}
name='groups'
required
fluid
Expand All @@ -246,7 +246,7 @@ const EditChannel = () => {
<Form.Field>
<Form.Dropdown
label='模型'
placeholder={'请选择该通道所支持的模型'}
placeholder={'请选择该渠道所支持的模型'}
name='models'
required
fluid
Expand Down Expand Up @@ -298,7 +298,7 @@ const EditChannel = () => {
<Form.Field>
<Form.TextArea
label='模型映射'
placeholder={`此项可选,为一个 JSON 文本,键为用户请求的模型名称,值为要替换的模型名称,例如:\n${JSON.stringify(MODEL_MAPPING_EXAMPLE, null, 2)}`}
placeholder={`此项可选,用于修改请求体中的模型名称,为一个 JSON 字符串,键为请求中模型名称,值为要替换的模型名称,例如:\n${JSON.stringify(MODEL_MAPPING_EXAMPLE, null, 2)}`}
name='model_mapping'
onChange={handleInputChange}
value={inputs.model_mapping}
Expand All @@ -323,7 +323,7 @@ const EditChannel = () => {
label='密钥'
name='key'
required
placeholder={inputs.type === 15 ? "请输入 access token,当前版本暂不支持自动刷新,请每 30 天更新一次" : '请输入密钥'}
placeholder={inputs.type === 15 ? "请输入 access token,当前版本暂不支持自动刷新,请每 30 天更新一次" : '请输入渠道对应的鉴权密钥'}
onChange={handleInputChange}
value={inputs.key}
autoComplete='new-password'
Expand All @@ -346,7 +346,7 @@ const EditChannel = () => {
<Form.Input
label='镜像'
name='base_url'
placeholder={'此项可选,输入镜像站地址,格式为:https://domain.com'}
placeholder={'此项可选,用于通过镜像站来进行 API 调用,请输入镜像站地址,格式为:https://domain.com'}
onChange={handleInputChange}
value={inputs.base_url}
autoComplete='new-password'
Expand Down

0 comments on commit 806bf82

Please sign in to comment.