feat: Add support for VolcEngine (Doubao) channel #313 #734

This commit is contained in:
1808837298@qq.com committed 2025-02-11 23:47:15 +08:00
1 parent e514764816
commit 4d6bce1ddd
10 files changed
+285 -297

No files matched your search

+3
View File
@@ -28,6 +28,7 @@ const (
APITypeMistral
APITypeDeepSeek
APITypeMokaAI
APITypeVolcEngine
APITypeDummy // this one is only for count, do not add any channel after this
)
@@ -80,6 +81,8 @@ func ChannelType2APIType(channelType int) (int, bool) {
apiType = APITypeDeepSeek
case common.ChannelTypeMokaAI:
apiType = APITypeMokaAI
case common.ChannelTypeVolcEngine:
apiType = APITypeVolcEngine
}
if apiType == -1 {
return APITypeOpenAI, false