From 6e2c871015afd08eb89d13111853004769157587 Mon Sep 17 00:00:00 2001 From: HynoR <20227709+HynoR@users.noreply.github.com> Date: Tue, 21 Jan 2025 00:53:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=92=8C=E6=A8=A1=E5=9E=8B=E5=80=8D=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/model-ratio.go | 5 ++++- relay/channel/deepseek/constants.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/model-ratio.go b/common/model-ratio.go index e9e80e47..8fd996d6 100644 --- a/common/model-ratio.go +++ b/common/model-ratio.go @@ -401,10 +401,13 @@ func GetCompletionRatio(name string) float64 { case "command-r-plus-08-2024": return 4 default: - return 2 + return 4 } } if strings.HasPrefix(name, "deepseek") { + if name == "deepseek-reasoner" { + return 4 + } return 2 } if strings.HasPrefix(name, "ERNIE-Speed-") { diff --git a/relay/channel/deepseek/constants.go b/relay/channel/deepseek/constants.go index b17c2c41..1d7b1e32 100644 --- a/relay/channel/deepseek/constants.go +++ b/relay/channel/deepseek/constants.go @@ -1,7 +1,7 @@ package deepseek var ModelList = []string{ - "deepseek-chat", "deepseek-coder", + "deepseek-chat", "deepseek-reasoner", } var ChannelName = "deepseek"