diff --git a/public/scripts/PromptManager.js b/public/scripts/PromptManager.js index a8e453666..f8412876b 100644 --- a/public/scripts/PromptManager.js +++ b/public/scripts/PromptManager.js @@ -941,7 +941,7 @@ PromptManagerModule.prototype.renderPromptManagerListItems = function () { let warningTitle = ''; const tokenBudget = this.serviceSettings.openai_max_context - this.serviceSettings.openai_max_tokens; - if ( + if ( this.tokenUsage > tokenBudget * 0.8 && 'chatHistory' === prompt.identifier) { const warningThreshold = this.configuration.warningTokenThreshold; const dangerThreshold = this.configuration.dangerTokenThreshold;