Просмотр исходного кода

fix: channel test model mapped

1808837298@qq.com 1 год назад
Родитель
Сommit
760514c3e1
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      controller/channel-test.go

+ 1 - 0
controller/channel-test.go

@@ -92,6 +92,7 @@ func testChannel(channel *model.Channel, testModel string) (err error, openAIErr
 	if err != nil {
 	if err != nil {
 		return err, nil
 		return err, nil
 	}
 	}
+	testModel = info.UpstreamModelName
 
 
 	apiType, _ := constant.ChannelType2APIType(channel.Type)
 	apiType, _ := constant.ChannelType2APIType(channel.Type)
 	adaptor := relay.GetAdaptor(apiType)
 	adaptor := relay.GetAdaptor(apiType)