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

@@ -173,6 +173,10 @@ var ModelRatio = map[string]float64{
// https://platform.deepseek.com/api-docs/pricing/
"deepseek-chat": 1.0 / 1000 * RMB,
"deepseek-coder": 1.0 / 1000 * RMB,
// https://www.deepl.com/pro?cta=header-prices
"deepl-zh": 25.0 / 1000 * USD,
"deepl-en": 25.0 / 1000 * USD,
"deepl-ja": 25.0 / 1000 * USD,
}
var CompletionRatio = map[string]float64{}