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
9b2fdc13
authored
May 21, 2024
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 删除无用代码
parent
9dd29b3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
web/src/components/ChannelsTable.js
+6
-6
No files found.
web/src/components/ChannelsTable.js
View file @
9b2fdc13
...
@@ -310,12 +310,12 @@ const ChannelsTable = () => {
...
@@ -310,12 +310,12 @@ const ChannelsTable = () => {
const
setChannelFormat
=
(
channels
)
=>
{
const
setChannelFormat
=
(
channels
)
=>
{
for
(
let
i
=
0
;
i
<
channels
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
channels
.
length
;
i
++
)
{
if
(
channels
[
i
].
type
===
8
)
{
//
if (channels[i].type === 8) {
showWarning
(
//
showWarning(
'检测到您使用了“自定义渠道”类型,请更换为“OpenAI”渠道类型!'
,
//
'检测到您使用了“自定义渠道”类型,请更换为“OpenAI”渠道类型!',
);
//
);
showWarning
(
'下个版本将不再支持“自定义渠道”类型!'
);
//
showWarning('下个版本将不再支持“自定义渠道”类型!');
}
//
}
channels
[
i
].
key
=
''
+
channels
[
i
].
id
;
channels
[
i
].
key
=
''
+
channels
[
i
].
id
;
let
test_models
=
[];
let
test_models
=
[];
channels
[
i
].
models
.
split
(
','
).
forEach
((
item
,
index
)
=>
{
channels
[
i
].
models
.
split
(
','
).
forEach
((
item
,
index
)
=>
{
...
...
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