feat: add scholarai channel

This commit is contained in:
linzhaoming
2024-06-12 20:35:14 +08:00
parent 58591b8c2a
commit 318a086e10
12 changed files with 7857 additions and 1510 deletions

View File

@@ -20,7 +20,7 @@ const (
APITypePerplexity
APITypeAws
APITypeCohere
APITypeScholarAI
APITypeDummy // this one is only for count, do not add any channel after this
)
@@ -57,6 +57,8 @@ func ChannelType2APIType(channelType int) (int, bool) {
apiType = APITypeAws
case common.ChannelTypeCohere:
apiType = APITypeCohere
case common.ChannelTypeScholarAI:
apiType = APITypeScholarAI
}
if apiType == -1 {
return APITypeOpenAI, false