mirror of
https://github.com/linux-do/new-api.git
synced 2025-12-26 08:35:58 +08:00
fix: api type error
This commit is contained in:
@@ -16,6 +16,7 @@ const (
|
||||
APITypeTencent
|
||||
APITypeGemini
|
||||
APITypeZhipu_v4
|
||||
APITypeOllama
|
||||
APITypePerplexity
|
||||
|
||||
APITypeDummy // this one is only for count, do not add any channel after this
|
||||
@@ -44,6 +45,8 @@ func ChannelType2APIType(channelType int) int {
|
||||
apiType = APITypeGemini
|
||||
case common.ChannelTypeZhipu_v4:
|
||||
apiType = APITypeZhipu_v4
|
||||
case common.ChannelTypeOllama:
|
||||
apiType = APITypeOllama
|
||||
case common.ChannelTypePerplexity:
|
||||
apiType = APITypePerplexity
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user