Skip to content

Commit

Permalink
chore: send a notice to user indicating that the current channel typ…
Browse files Browse the repository at this point in the history
…e does not support testing
  • Loading branch information
songquanpeng committed Jul 23, 2023
1 parent 889af8b commit bc2f48b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controller/channel-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ import (

func testChannel(channel *model.Channel, request ChatRequest) (error, *OpenAIError) {
switch channel.Type {
case common.ChannelTypePaLM:
fallthrough
case common.ChannelTypeAnthropic:
fallthrough
case common.ChannelTypeBaidu:
fallthrough
case common.ChannelTypeZhipu:
return errors.New("该渠道类型当前版本不支持测试,请手动测试"), nil
case common.ChannelTypeAzure:
request.Model = "gpt-35-turbo"
default:
Expand Down

0 comments on commit bc2f48b

Please sign in to comment.