From fcc5c8f4ba0a7332d639d138aeb794bfe48e9f3e Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Tue, 31 Dec 2024 13:15:25 -0800 Subject: [PATCH] Adjust context window management cutoff for deepseek --- src/core/Cline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Cline.ts b/src/core/Cline.ts index 9c233b245d..f6999a094c 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -840,7 +840,7 @@ export class Cline { let maxAllowedSize: number switch (contextWindow) { case 64_000: // deepseek models - maxAllowedSize = contextWindow - 25_000 + maxAllowedSize = contextWindow - 27_000 break case 128_000: // most models maxAllowedSize = contextWindow - 40_000