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
dd87d0a4
authored
Jun 22, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update base url setting
parent
c90fc7e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
web/src/pages/Channel/EditChannel.js
+2
-16
No files found.
web/src/pages/Channel/EditChannel.js
View file @
dd87d0a4
...
@@ -181,9 +181,9 @@ const EditChannel = () => {
...
@@ -181,9 +181,9 @@ const EditChannel = () => {
inputs
.
type
!==
3
&&
inputs
.
type
!==
8
&&
(
inputs
.
type
!==
3
&&
inputs
.
type
!==
8
&&
(
<
Form
.
Field
>
<
Form
.
Field
>
<
Form
.
Input
<
Form
.
Input
label
=
'
Base URL
'
label
=
'
镜像
'
name
=
'base_url'
name
=
'base_url'
placeholder
=
{
'请输入
自定义 Base URL,格式为:https://domain.com,可不填,不填
使用渠道默认值'
}
placeholder
=
{
'请输入
镜像站地址,格式为:https://domain.com,可不填,不填则
使用渠道默认值'
}
onChange
=
{
handleInputChange
}
onChange
=
{
handleInputChange
}
value
=
{
inputs
.
base_url
}
value
=
{
inputs
.
base_url
}
autoComplete
=
'new-password'
autoComplete
=
'new-password'
...
@@ -240,20 +240,6 @@ const EditChannel = () => {
...
@@ -240,20 +240,6 @@ const EditChannel = () => {
}}
>
填入所有模型
<
/Button
>
}}
>
填入所有模型
<
/Button
>
<
/div
>
<
/div
>
{
{
inputs
.
type
===
1
&&
(
<
Form
.
Field
>
<
Form
.
Input
label
=
'代理'
name
=
'base_url'
placeholder
=
{
'请输入 OpenAI API 代理地址,如果不需要请留空,格式为:https://api.openai.com'
}
onChange
=
{
handleInputChange
}
value
=
{
inputs
.
base_url
}
autoComplete
=
'new-password'
/>
<
/Form.Field
>
)
}
{
batch
?
<
Form
.
Field
>
batch
?
<
Form
.
Field
>
<
Form
.
TextArea
<
Form
.
TextArea
label
=
'密钥'
label
=
'密钥'
...
...
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