feat: 调试 suno

This commit is contained in:
Xyfacai
2024-06-13 00:32:14 +08:00
parent 1e8abc7027
commit 606aa8a4a7
17 changed files with 737 additions and 42 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{