Render prompt manager when chat history is altered
Recounts tokens
This commit is contained in:
parent
d9e7eba617
commit
1281417a97
|
@ -502,6 +502,11 @@ PromptManagerModule.prototype.init = function (moduleConfiguration, serviceSetti
|
|||
});
|
||||
}
|
||||
|
||||
// Re-render when chat history changes.
|
||||
eventSource.on(event_types.MESSAGE_DELETED, () => this.render());
|
||||
eventSource.on(event_types.MESSAGE_EDITED, () => this.render());
|
||||
eventSource.on(event_types.MESSAGE_RECEIVED, () => this.render())
|
||||
|
||||
// Re-render when the character changes.
|
||||
eventSource.on('chatLoaded', (event) => {
|
||||
this.handleCharacterSelected(event)
|
||||
|
|
Loading…
Reference in New Issue