mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-12 11:23:42 +08:00
feat: support DeepL's model (close #1126)
This commit is contained in:
@@ -39,6 +39,7 @@ const (
|
||||
Cohere
|
||||
DeepSeek
|
||||
Cloudflare
|
||||
DeepL
|
||||
|
||||
Dummy
|
||||
)
|
||||
|
||||
@@ -33,6 +33,8 @@ func ToAPIType(channelType int) int {
|
||||
apiType = apitype.Cohere
|
||||
case Cloudflare:
|
||||
apiType = apitype.Cloudflare
|
||||
case DeepL:
|
||||
apiType = apitype.DeepL
|
||||
}
|
||||
|
||||
return apiType
|
||||
|
||||
@@ -39,6 +39,7 @@ var ChannelBaseURLs = []string{
|
||||
"https://api.cohere.ai", // 35
|
||||
"https://api.deepseek.com", // 36
|
||||
"https://api.cloudflare.com", // 37
|
||||
"https://api-free.deepl.com", // 38
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user