Browse Source

feat: add unsupported test case for kling channel

skynono 8 months ago
parent
commit
616e6953cc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      controller/channel-test.go

+ 3 - 0
controller/channel-test.go

@@ -40,6 +40,9 @@ func testChannel(channel *model.Channel, testModel string) (err error, openAIErr
 	if channel.Type == common.ChannelTypeSunoAPI {
 	if channel.Type == common.ChannelTypeSunoAPI {
 		return errors.New("suno channel test is not supported"), nil
 		return errors.New("suno channel test is not supported"), nil
 	}
 	}
+	if channel.Type == common.ChannelTypeKling {
+		return errors.New("kling channel test is not supported"), nil
+	}
 	w := httptest.NewRecorder()
 	w := httptest.NewRecorder()
 	c, _ := gin.CreateTestContext(w)
 	c, _ := gin.CreateTestContext(w)