Explorar el Código

fix: prompt user that channel test is unavailable

JustSong hace 2 años
padre
commit
ec88c0c240
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      controller/channel-test.go

+ 2 - 0
controller/channel-test.go

@@ -23,6 +23,8 @@ func testChannel(channel *model.Channel, request ChatRequest) (error, *OpenAIErr
 	case common.ChannelTypeBaidu:
 		fallthrough
 	case common.ChannelTypeZhipu:
+		fallthrough
+	case common.ChannelTypeXunfei:
 		return errors.New("该渠道类型当前版本不支持测试,请手动测试"), nil
 	case common.ChannelTypeAzure:
 		request.Model = "gpt-35-turbo"