Raise warning threshold for chatHistory tokens
This commit is contained in:
parent
6cea524f2c
commit
49cb682499
|
@ -770,8 +770,8 @@ PromptManagerModule.prototype.renderPromptManagerListItems = function () {
|
||||||
const tokenThreshold = tokenBudget * 0.9;
|
const tokenThreshold = tokenBudget * 0.9;
|
||||||
if (this.tokenCache >= tokenThreshold &&
|
if (this.tokenCache >= tokenThreshold &&
|
||||||
'chatHistory' === prompt.identifier) {
|
'chatHistory' === prompt.identifier) {
|
||||||
const warningThreshold = tokenBudget * 0.40;
|
const warningThreshold = tokenBudget * 0.50;
|
||||||
const dangerThreshold = tokenBudget * 0.20;
|
const dangerThreshold = tokenBudget * 0.30;
|
||||||
|
|
||||||
if (tokens <= dangerThreshold) {
|
if (tokens <= dangerThreshold) {
|
||||||
warningClass = 'fa-solid tooltip fa-triangle-exclamation text_danger';
|
warningClass = 'fa-solid tooltip fa-triangle-exclamation text_danger';
|
||||||
|
|
Loading…
Reference in New Issue