From 7c2fd9e6a6805281f04d38ea21b58413b88ebef1 Mon Sep 17 00:00:00 2001 From: Jeff <33599649+Fu-Jie@users.noreply.github.com> Date: Wed, 31 Dec 2025 12:39:43 +0800 Subject: [PATCH] Fix token calculation by removing summary model ID --- plugins/filters/async-context-compression/异步上下文压缩.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/filters/async-context-compression/异步上下文压缩.py b/plugins/filters/async-context-compression/异步上下文压缩.py index 7aa97c4..e103d6d 100644 --- a/plugins/filters/async-context-compression/异步上下文压缩.py +++ b/plugins/filters/async-context-compression/异步上下文压缩.py @@ -746,7 +746,7 @@ class Filter: # 计算当前总 Token (使用摘要模型进行计数) total_tokens = await asyncio.to_thread( - self._calculate_messages_tokens, messages, summary_model_id + self._calculate_messages_tokens, messages ) if total_tokens > max_context_tokens: