From 774ce7195c8a9f48c643c385728d4397a56dba84 Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Sat, 18 May 2024 18:32:10 +0800 Subject: [PATCH] feat: update model ratio --- common/model-ratio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/model-ratio.go b/common/model-ratio.go index 5670810..8bb78ea 100644 --- a/common/model-ratio.go +++ b/common/model-ratio.go @@ -289,7 +289,7 @@ func GetCompletionRatio(name string) float64 { } return 4.0 / 3.0 } - if strings.HasPrefix(name, "gpt-4") && !strings.HasSuffix(name, "-all") && !strings.Contains(name, "gizmo") { + if strings.HasPrefix(name, "gpt-4") && !strings.HasSuffix(name, "-all") && !strings.HasSuffix(name, "-gizmo-*") { if strings.HasPrefix(name, "gpt-4-turbo") || strings.HasSuffix(name, "preview") || strings.HasPrefix(name, "gpt-4o") { return 3 }