mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 01:17:39 +01:00
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;
|
||||
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';
|
||||
|
Loading…
Reference in New Issue
Block a user