Clean-up comments

de091daa4021e5769f14b35bbb2fbc1ad56cc4aa

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +6 -5Showing whitespace changes
public/scripts/constants.js+5 -4
@@ -15,9 +15,10 @@ export const debounce_timeout = {
1515 extended: 5000,
1616};
1717
1818/**
1919 * Used as an ephemeral key in message extra metadata.
2020 * When set, the message will be excluded from generation prompts without affecting the number of chat messages,
21- which is needed to preserve world info timed effects.
21+ * prompts without affecting the number of chat messages,
22+ * which is needed to preserve world info timed effects.
2223 */
2324export const IGNORE_SYMBOL = Symbol.for('ignore');
public/scripts/openai.js+1 -1
@@ -528,7 +528,7 @@ function setOpenAIMessages(chat) {
528528 let role = chat[j]['is_user'] ? 'user' : 'assistant';
529529 let content = chat[j]['mes'];
530530
531531 // If this symbol flag is set, completely ignore the message.
532532 // This can be used to hide messages without affecting the number of messages in the chat.
533533 if (chat[j].extra?.[IGNORE_SYMBOL]) {
534534 j++;