mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Comment-out bookmark validation
This commit is contained in:
@ -1607,15 +1607,16 @@ function addOneMessage(mes, { type = "normal", insertAfter = null, scroll = true
|
|||||||
const bias = messageFormatting(mes.extra?.bias ?? "");
|
const bias = messageFormatting(mes.extra?.bias ?? "");
|
||||||
let bookmarkLink = mes?.extra?.bookmark_link ?? '';
|
let bookmarkLink = mes?.extra?.bookmark_link ?? '';
|
||||||
// Verify bookmarked chat still exists
|
// Verify bookmarked chat still exists
|
||||||
if (bookmarkLink !== '' ) {
|
// Cohee: Commented out for now. I'm worried of performance issues.
|
||||||
|
/*if (bookmarkLink !== '') {
|
||||||
let chat_names = selected_group
|
let chat_names = selected_group
|
||||||
? getGroupChatNames(selected_group)
|
? getGroupChatNames(selected_group)
|
||||||
: Object.values(getPastCharacterChats()).map(({file_name}) => file_name);
|
: Object.values(getPastCharacterChats()).map(({ file_name }) => file_name);
|
||||||
|
|
||||||
if (!chat_names.includes(bookmarkLink)) {
|
if (!chat_names.includes(bookmarkLink)) {
|
||||||
bookmarkLink = ''
|
bookmarkLink = ''
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
let params = {
|
let params = {
|
||||||
mesId: count_view_mes,
|
mesId: count_view_mes,
|
||||||
characterName: characterName,
|
characterName: characterName,
|
||||||
@ -2555,7 +2556,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||||||
const blockHeading = main_api === 'openai' ? '<START>\n' : exampleSeparator;
|
const blockHeading = main_api === 'openai' ? '<START>\n' : exampleSeparator;
|
||||||
let mesExamplesArray = mesExamples.split(/<START>/gi).slice(1).map(block => `${blockHeading}${block.trim()}\n`);
|
let mesExamplesArray = mesExamples.split(/<START>/gi).slice(1).map(block => `${blockHeading}${block.trim()}\n`);
|
||||||
|
|
||||||
if(power_user.strip_examples)
|
if (power_user.strip_examples)
|
||||||
mesExamplesArray = []
|
mesExamplesArray = []
|
||||||
|
|
||||||
// First message in fresh 1-on-1 chat reacts to user/character settings changes
|
// First message in fresh 1-on-1 chat reacts to user/character settings changes
|
||||||
@ -8611,7 +8612,7 @@ $(document).ready(function () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($('#del_type').val() === 'swipe') {
|
if ($('#del_type').val() === 'swipe') {
|
||||||
const swipe_id = chat[this_edit_mes_id]['swipe_id'];
|
const swipe_id = chat[this_edit_mes_id]['swipe_id'];
|
||||||
chat[this_edit_mes_id]['swipes'].splice(swipe_id, 1);
|
chat[this_edit_mes_id]['swipes'].splice(swipe_id, 1);
|
||||||
if (swipe_id > 0) {
|
if (swipe_id > 0) {
|
||||||
|
Reference in New Issue
Block a user