From 3b53a2a5ce015a5231932bb12ea7bda6483a625b Mon Sep 17 00:00:00 2001 From: CalciumIon <1808837298@qq.com> Date: Thu, 7 Nov 2024 16:42:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84audio=E5=80=8D?= =?UTF-8?q?=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/model-ratio.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/model-ratio.go b/common/model-ratio.go index d866394..f3283df 100644 --- a/common/model-ratio.go +++ b/common/model-ratio.go @@ -425,6 +425,8 @@ func GetCompletionRatio(name string) float64 { func GetAudioRatio(name string) float64 { if strings.HasPrefix(name, "gpt-4o-realtime") { return 20 + } else if strings.HasPrefix(name, "gpt-4o-audio") { + return 40 } return 20 }