Skip to content

Commit

Permalink
Merge pull request #683 from iszcz/new512
Browse files Browse the repository at this point in the history
Update channel-test.go
  • Loading branch information
Calcium-Ion authored Dec 31, 2024
2 parents e6ea5e5 + 687f07b commit 16725d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion controller/channel-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/bytedance/gopkg/util/gopool"
"io"
"math"
"net/http"
Expand All @@ -24,6 +23,8 @@ import (
"sync"
"time"

"github.com/bytedance/gopkg/util/gopool"

"github.com/gin-gonic/gin"
)

Expand All @@ -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
}
Expand Down

0 comments on commit 16725d1

Please sign in to comment.