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
b664a220
authored
Dec 31, 2024
by
Calcium-Ion
Committed by
GitHub
Dec 31, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #683 from iszcz/new512
Update channel-test.go
parents
d15074c8
60a3d1b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
controller/channel-test.go
+5
-1
No files found.
controller/channel-test.go
View file @
b664a220
...
...
@@ -5,7 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/bytedance/gopkg/util/gopool"
"io"
"math"
"net/http"
...
...
@@ -24,6 +23,8 @@ import (
"sync"
"time"
"github.com/bytedance/gopkg/util/gopool"
"github.com/gin-gonic/gin"
)
...
...
@@ -32,6 +33,9 @@ func testChannel(channel *model.Channel, testModel string) (err error, openAIErr
if
channel
.
Type
==
common
.
ChannelTypeMidjourney
{
return
errors
.
New
(
"midjourney channel test is not supported"
),
nil
}
if
channel
.
Type
==
common
.
ChannelTypeMidjourneyPlus
{
return
errors
.
New
(
"midjourney plus channel test is not supported!!!"
),
nil
}
if
channel
.
Type
==
common
.
ChannelTypeSunoAPI
{
return
errors
.
New
(
"suno channel test is not supported"
),
nil
}
...
...
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