Merge pull request #310 from Calcium-Ion/feat/suno-api

Feat/suno api
This commit is contained in:
Calcium-Ion
2024-06-21 14:59:59 +08:00
committed by GitHub
35 changed files with 1991 additions and 6 deletions

View File

@@ -27,6 +27,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.ChannelTypeSunoAPI {
return errors.New("suno channel test is not supported"), nil
}
w := httptest.NewRecorder()
c, _ := gin.CreateTestContext(w)
c.Request = &http.Request{