feat: support perplexity

This commit is contained in:
CaIon committed 2024-03-18 18:00:19 +08:00
1 parent f86e39899f
commit 865816c8e1
5 files changed
+96 -1

No files matched your search

+3
View File
@@ -16,6 +16,7 @@ const (
APITypeTencent
APITypeGemini
APITypeZhipu_v4
APITypePerplexity
APITypeDummy // this one is only for count, do not add any channel after this
)
@@ -43,6 +44,8 @@ func ChannelType2APIType(channelType int) int {
apiType = APITypeGemini
case common.ChannelTypeZhipu_v4:
apiType = APITypeZhipu_v4
case common.ChannelTypePerplexity:
apiType = APITypePerplexity
}
return apiType
}