mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'SillyTavern:release' into release
This commit is contained in:
@ -183,7 +183,7 @@ const init = async () => {
|
||||
slash.init();
|
||||
autoExec = new AutoExecuteHandler(settings);
|
||||
|
||||
autoExec.handleStartup();
|
||||
await autoExec.handleStartup();
|
||||
};
|
||||
eventSource.on(event_types.APP_READY, init);
|
||||
|
||||
@ -197,16 +197,16 @@ const onChatChanged = async (chatIdx) => {
|
||||
manager.rerender();
|
||||
buttons.refresh();
|
||||
|
||||
autoExec.handleChatChanged();
|
||||
await autoExec.handleChatChanged();
|
||||
};
|
||||
eventSource.on(event_types.CHAT_CHANGED, onChatChanged);
|
||||
|
||||
const onUserMessage = async () => {
|
||||
autoExec.handleUser();
|
||||
await autoExec.handleUser();
|
||||
};
|
||||
eventSource.on(event_types.USER_MESSAGE_RENDERED, onUserMessage);
|
||||
|
||||
const onAiMessage = async () => {
|
||||
autoExec.handleAi();
|
||||
await autoExec.handleAi();
|
||||
};
|
||||
eventSource.on(event_types.CHARACTER_MESSAGE_RENDERED, onAiMessage);
|
||||
|
@ -511,7 +511,7 @@ jQuery(function () {
|
||||
'rep_pen_textgenerationwebui': 1,
|
||||
'rep_pen_range_textgenerationwebui': 0,
|
||||
'dynatemp_textgenerationwebui': false,
|
||||
'seed_textgenerationwebui': 1,
|
||||
'seed_textgenerationwebui': -1,
|
||||
'ban_eos_token_textgenerationwebui': false,
|
||||
'do_sample_textgenerationwebui': true,
|
||||
'add_bos_token_textgenerationwebui': true,
|
||||
@ -595,7 +595,7 @@ jQuery(function () {
|
||||
|
||||
function showTypeSpecificControls(type) {
|
||||
$('[data-tg-type]').each(function () {
|
||||
const tgTypes = $(this).attr('data-tg-type').split(',');
|
||||
const tgTypes = $(this).attr('data-tg-type').split(',').map(x => x.trim());
|
||||
for (const tgType of tgTypes) {
|
||||
if (tgType === type || tgType == 'all') {
|
||||
$(this).show();
|
||||
|
Reference in New Issue
Block a user