From 9969ed2d7c3d4625d92b36cb3ea7ef3d98a06c35 Mon Sep 17 00:00:00 2001 From: "1808837298@qq.com" <1808837298@qq.com> Date: Thu, 3 Oct 2024 20:47:54 +0800 Subject: [PATCH] feat: update model ratio --- common/model-ratio.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/model-ratio.go b/common/model-ratio.go index 3713c2c4..36dc19e7 100644 --- a/common/model-ratio.go +++ b/common/model-ratio.go @@ -340,10 +340,7 @@ func GetCompletionRatio(name string) float64 { return 3 } if strings.HasPrefix(name, "gpt-4o") { - if strings.HasPrefix(name, "gpt-4o-mini") || name == "gpt-4o-2024-08-06" { - return 4 - } - return 3 + return 4 } return 2 } @@ -351,7 +348,7 @@ func GetCompletionRatio(name string) float64 { return 4 } if name == "chatgpt-4o-latest" { - return 3 + return 4 } if strings.Contains(name, "claude-instant-1") { return 3