Merge commit 'c3178720975ee0b2767bc3b0ad98cfc533f22b6d'

This commit is contained in:
Laisky.Cai
2024-04-26 13:01:12 +00:00
8 changed files with 27 additions and 1 deletions

View File

@@ -170,6 +170,9 @@ var ModelRatio = map[string]float64{
"command-light-nightly": 0.5,
"command-r": 0.5 / 1000 * USD,
"command-r-plus ": 3.0 / 1000 * USD,
// https://platform.deepseek.com/api-docs/pricing/
"deepseek-chat": 1.0 / 1000 * RMB,
"deepseek-coder": 1.0 / 1000 * RMB,
}
var CompletionRatio = map[string]float64{}
@@ -288,6 +291,9 @@ func GetCompletionRatio(name string) float64 {
if strings.HasPrefix(name, "gemini-") {
return 3
}
if strings.HasPrefix(name, "deepseek-") {
return 2
}
switch name {
case "llama2-70b-4096":
return 0.8 / 0.64