feat: support cohere (close #195)

This commit is contained in:
CaIon committed 2024-04-24 18:49:56 +08:00
1 parent 213e659164
commit cae9dbe141
11 files changed
+322 -2

No files matched your search

+3
View File
@@ -19,6 +19,7 @@ const (
APITypeOllama
APITypePerplexity
APITypeAws
APITypeCohere
APITypeDummy // this one is only for count, do not add any channel after this
)
@@ -52,6 +53,8 @@ func ChannelType2APIType(channelType int) int {
apiType = APITypePerplexity
case common.ChannelTypeAws:
apiType = APITypeAws
case common.ChannelTypeCohere:
apiType = APITypeCohere
}
return apiType
}