Support for MokaAI M3E

This commit is contained in:
Jerry
2025-01-22 04:21:08 +08:00
parent 53a941a6c0
commit 126f04e08f
11 changed files with 341 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ const (
APITypeVertexAi
APITypeMistral
APITypeDeepSeek
APITypeMokaAI
APITypeDummy // this one is only for count, do not add any channel after this
)
@@ -78,6 +78,8 @@ func ChannelType2APIType(channelType int) (int, bool) {
apiType = APITypeMistral
case common.ChannelTypeDeepSeek:
apiType = APITypeDeepSeek
case common.ChannelTypeMokaAI:
apiType = APITypeMokaAI
}
if apiType == -1 {
return APITypeOpenAI, false