feat: support DeepL's model (close #1126)

This commit is contained in:
JustSong
2024-04-27 13:37:22 +08:00
parent e64e7707a0
commit 007906216d
20 changed files with 305 additions and 10 deletions

View File

@@ -39,6 +39,7 @@ const (
Cohere
DeepSeek
Cloudflare
DeepL
Dummy
)

View File

@@ -33,6 +33,8 @@ func ToAPIType(channelType int) int {
apiType = apitype.Cohere
case Cloudflare:
apiType = apitype.Cloudflare
case DeepL:
apiType = apitype.DeepL
}
return apiType

View File

@@ -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() {