From 49cb682499326bc30afe8b4fb7a97aeab6d27815 Mon Sep 17 00:00:00 2001 From: maver Date: Tue, 27 Jun 2023 20:40:34 +0200 Subject: [PATCH] Raise warning threshold for chatHistory tokens --- public/scripts/PromptManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/PromptManager.js b/public/scripts/PromptManager.js index f3a2f2d57..e779d305f 100644 --- a/public/scripts/PromptManager.js +++ b/public/scripts/PromptManager.js @@ -770,8 +770,8 @@ PromptManagerModule.prototype.renderPromptManagerListItems = function () { const tokenThreshold = tokenBudget * 0.9; if (this.tokenCache >= tokenThreshold && 'chatHistory' === prompt.identifier) { - const warningThreshold = tokenBudget * 0.40; - const dangerThreshold = tokenBudget * 0.20; + const warningThreshold = tokenBudget * 0.50; + const dangerThreshold = tokenBudget * 0.30; if (tokens <= dangerThreshold) { warningClass = 'fa-solid tooltip fa-triangle-exclamation text_danger';