mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Render prompt manager after swiping with updated tokens
Including world info and extension prompts
This commit is contained in:
@ -610,6 +610,7 @@ function prepareOpenAIMessages({
|
||||
}
|
||||
} finally {
|
||||
promptManager.populateTokenHandler(chatCompletion.getMessages());
|
||||
promptManager.render(false);
|
||||
}
|
||||
|
||||
const chat = chatCompletion.getChat();
|
||||
@ -1075,6 +1076,10 @@ class TokenHandler {
|
||||
return this.counts;
|
||||
}
|
||||
|
||||
resetCounts() {
|
||||
Object.keys(this.counts).forEach((key) => this.counts[key] = 0 );
|
||||
}
|
||||
|
||||
setCounts(counts) {
|
||||
this.counts = counts;
|
||||
}
|
||||
|
Reference in New Issue
Block a user