feat: 添加Mistral渠道 (close #546)

This commit is contained in:
CalciumIon
2024-11-05 17:11:33 +08:00
parent b6f4ca0bd6
commit 91aa48450a
7 changed files with 133 additions and 0 deletions
+3
View File
@@ -25,6 +25,7 @@ const (
APITypeCloudflare
APITypeSiliconFlow
APITypeVertexAi
APITypeMistral
APITypeDummy // this one is only for count, do not add any channel after this
)
@@ -72,6 +73,8 @@ func ChannelType2APIType(channelType int) (int, bool) {
apiType = APITypeSiliconFlow
case common.ChannelTypeVertexAi:
apiType = APITypeVertexAi
case common.ChannelTypeMistral:
apiType = APITypeMistral
}
if apiType == -1 {
return APITypeOpenAI, false