From 01877a81aaa3e2ff203919e767769545b575265b Mon Sep 17 00:00:00 2001 From: Hongbro886 Date: Tue, 19 May 2026 19:09:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E5=86=B7=E5=90=AF=E5=8A=A8=E6=9D=83=E9=87=8D=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/history/weight_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/history/weight_utils.py b/app/common/history/weight_utils.py index 4a43c2dd..842f74a7 100644 --- a/app/common/history/weight_utils.py +++ b/app/common/history/weight_utils.py @@ -178,7 +178,7 @@ def _calculate_frequency_factor(settings, total_count, max_total_count, is_cold_ factor = math.sqrt(max_total_count + 1) / math.sqrt(total_count + 1) if is_cold_start: - factor = min(0.8 + (factor * 0.2), factor) + factor = max(0.8 + (factor * 0.2), factor) return factor * settings["frequency_weight"]