Skip to content

Commit

Permalink
fix: prompt user that channel test is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Jul 29, 2023
1 parent 065147b commit ec88c0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/channel-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ec88c0c

Please sign in to comment.