Raise warning threshold for chatHistory tokens

This commit is contained in:
maver 2023-06-27 20:40:34 +02:00
parent 6cea524f2c
commit 49cb682499

View File

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