mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Chat Completion: switch to async token handling
This commit is contained in:
@ -315,7 +315,7 @@ class PromptManager {
|
||||
*/
|
||||
init(moduleConfiguration, serviceSettings) {
|
||||
this.configuration = Object.assign(this.configuration, moduleConfiguration);
|
||||
this.tokenHandler = this.tokenHandler || new TokenHandler();
|
||||
this.tokenHandler = this.tokenHandler || new TokenHandler(() => { throw new Error('Token handler not set'); });
|
||||
this.serviceSettings = serviceSettings;
|
||||
this.containerElement = document.getElementById(this.configuration.containerIdentifier);
|
||||
|
||||
|
Reference in New Issue
Block a user