Merge branch 'SillyTavern:release' into release

This commit is contained in:
erew123
2024-01-17 21:28:08 +00:00
committed by GitHub
5 changed files with 18 additions and 11 deletions

View File

@ -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);

View File

@ -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();