修复:每次清除的消息,比实际上期望的多1条

This commit is contained in:
Raila23
2025-04-12 15:34:35 +08:00
parent e3b0ca8ef6
commit c6df820164
@@ -146,7 +146,7 @@ class LLMRequestSubStage(Stage):
):
logger.debug("上下文长度超过限制,将截断。")
req.contexts = req.contexts[
-(self.max_context_length - self.dequeue_context_length) * 2 :
-(self.max_context_length - self.dequeue_context_length + 1) * 2 :
]
# session_id