From 2f5f6ba84f1a72f96495ca115ea2b35d58adc185 Mon Sep 17 00:00:00 2001 From: CaIon Date: Tue, 7 Jul 2026 20:56:36 +0800 Subject: [PATCH] feat: prepare for 5.6 --- setting/ratio_setting/model_ratio.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setting/ratio_setting/model_ratio.go b/setting/ratio_setting/model_ratio.go index 6093643a..1c9b259d 100644 --- a/setting/ratio_setting/model_ratio.go +++ b/setting/ratio_setting/model_ratio.go @@ -504,8 +504,8 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) { } // gpt-5 匹配 if strings.HasPrefix(name, "gpt-5") { - if strings.HasPrefix(name, "gpt-5.5") { - return 6, true + if !strings.Contains(name, ".") { + return 8, true } if strings.HasPrefix(name, "gpt-5.4") { if strings.HasPrefix(name, "gpt-5.4-nano") { @@ -513,7 +513,8 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) { } return 6, true } - return 8, true + // gpt-5.5 and later models are unlocked + return 6, false } // gpt-4.5-preview匹配 if strings.HasPrefix(name, "gpt-4.5-preview") {