mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-17 19:13:42 +08:00
feat: add scholarai channel
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user