mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Do not assign openai_max_tokens on input field changes
Fixes prompt manager falsely assigning string value to openai config
This commit is contained in:
@ -397,7 +397,6 @@ PromptManagerModule.prototype.init = function (moduleConfiguration, serviceSetti
|
|||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('openai_max_tokens').addEventListener('change', (event) => {
|
document.getElementById('openai_max_tokens').addEventListener('change', (event) => {
|
||||||
this.serviceSettings.openai_max_tokens = event.target.value;
|
|
||||||
if (this.activeCharacter) this.render();
|
if (this.activeCharacter) this.render();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user