From f188147680c66527e6e735f028ebde6a5ba00e4e Mon Sep 17 00:00:00 2001 From: "1808837298@qq.com" <1808837298@qq.com> Date: Wed, 10 Apr 2024 20:10:54 +0800 Subject: [PATCH] feat: support gpt-4-turbo --- 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 2ff1aa4..404fffd 100644 --- a/common/model-ratio.go +++ b/common/model-ratio.go @@ -201,7 +201,7 @@ func GetCompletionRatio(name string) float64 { return 4.0 / 3.0 } if strings.HasPrefix(name, "gpt-4") { - if strings.HasSuffix(name, "preview") { + if strings.HasSuffix(name, "gpt-4-turbo") { return 3 } return 2