Prevent chat history warnings from showing too early

This commit is contained in:
maver 2023-07-03 19:32:43 +02:00
parent abe986ec4b
commit a53e99b831
1 changed files with 1 additions and 1 deletions

View File

@ -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;