feat: support 360's models (close #331, close #461)

feat: support 360's models (close #331, close #461)
This commit is contained in:
JustSong
2023-08-26 13:30:21 +08:00
parent fdb2cccf65
commit 5ee24e8acf
7 changed files with 101 additions and 40 deletions

View File

@@ -24,6 +24,10 @@ func testChannel(channel *model.Channel, request ChatRequest) (error, *OpenAIErr
fallthrough
case common.ChannelTypeZhipu:
fallthrough
case common.ChannelTypeAli:
fallthrough
case common.ChannelType360:
fallthrough
case common.ChannelTypeXunfei:
return errors.New("该渠道类型当前版本不支持测试,请手动测试"), nil
case common.ChannelTypeAzure: