From ca0eaa769760754f44eb87d71f05f15158702303 Mon Sep 17 00:00:00 2001 From: RedwindA Date: Mon, 29 Sep 2025 18:32:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E9=94=81deepseek=E8=A1=A5=E5=85=A8?= =?UTF-8?q?=E5=80=8D=E7=8E=87=EF=BC=9B=E5=85=81=E8=AE=B8deepseek=E6=B8=A0?= =?UTF-8?q?=E9=81=93=E8=8E=B7=E5=8F=96=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setting/ratio_setting/model_ratio.go | 4 ---- web/src/components/table/channels/modals/EditChannelModal.jsx | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/setting/ratio_setting/model_ratio.go b/setting/ratio_setting/model_ratio.go index 362c6fa1a..887c5bd50 100644 --- a/setting/ratio_setting/model_ratio.go +++ b/setting/ratio_setting/model_ratio.go @@ -501,7 +501,6 @@ func GetCompletionRatio(name string) float64 { } func getHardcodedCompletionModelRatio(name string) (float64, bool) { - lowercaseName := strings.ToLower(name) isReservedModel := strings.HasSuffix(name, "-all") || strings.HasSuffix(name, "-gizmo-*") if isReservedModel { @@ -594,9 +593,6 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) { } } // hint 只给官方上4倍率,由于开源模型供应商自行定价,不对其进行补全倍率进行强制对齐 - if lowercaseName == "deepseek-chat" || lowercaseName == "deepseek-reasoner" { - return 4, true - } if strings.HasPrefix(name, "ERNIE-Speed-") { return 2, true } else if strings.HasPrefix(name, "ERNIE-Lite-") { diff --git a/web/src/components/table/channels/modals/EditChannelModal.jsx b/web/src/components/table/channels/modals/EditChannelModal.jsx index 2eb480e7a..6f5f665b4 100644 --- a/web/src/components/table/channels/modals/EditChannelModal.jsx +++ b/web/src/components/table/channels/modals/EditChannelModal.jsx @@ -103,6 +103,7 @@ const MODEL_FETCHABLE_TYPES = new Set([ 40, 42, 48, + 43, ]); function type2secretPrompt(type) {