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

This commit is contained in:
1808837298@qq.com
2025-02-11 23:47:15 +08:00
parent 81d11e5d31
commit 28c13e5a0f
10 changed files with 285 additions and 297 deletions

View File

@@ -23,6 +23,7 @@ import (
"one-api/relay/channel/task/suno"
"one-api/relay/channel/tencent"
"one-api/relay/channel/vertex"
"one-api/relay/channel/volcengine"
"one-api/relay/channel/xunfei"
"one-api/relay/channel/zhipu"
"one-api/relay/channel/zhipu_4v"
@@ -77,6 +78,8 @@ func GetAdaptor(apiType int) channel.Adaptor {
return &deepseek.Adaptor{}
case constant.APITypeMokaAI:
return &mokaai.Adaptor{}
case constant.APITypeVolcEngine:
return &volcengine.Adaptor{}
}
return nil
}