Clean-up comments

de091daa4021e5769f14b35bbb2fbc1ad56cc4aa

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

2 files changed, +6 -5Ignore whitespace
public/scripts/constants.js+5 -4
@@ -15,9 +15,10 @@ export const debounce_timeout = {
15 extended: 5000,15 extended: 5000,
16};16};
1717
18/*18/**
19Used as an ephemeral key in message extra metadata.19 * Used as an ephemeral key in message extra metadata.
20When set, the message will be excluded from generation prompts without affecting the number of chat messages,20 * When set, the message will be excluded from generation
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.
22 */23 */
23export const IGNORE_SYMBOL = Symbol.for('ignore');24export const IGNORE_SYMBOL = Symbol.for('ignore');
public/scripts/openai.js+1 -1
@@ -528,7 +528,7 @@ function setOpenAIMessages(chat) {
528 let role = chat[j]['is_user'] ? 'user' : 'assistant';528 let role = chat[j]['is_user'] ? 'user' : 'assistant';
529 let content = chat[j]['mes'];529 let content = chat[j]['mes'];
530530
531 // If this flag is set, completely ignore the message.531 // If this symbol flag is set, completely ignore the message.
532 // This can be used to hide messages without affecting the number of messages in the chat.532 // This can be used to hide messages without affecting the number of messages in the chat.
533 if (chat[j].extra?.[IGNORE_SYMBOL]) {533 if (chat[j].extra?.[IGNORE_SYMBOL]) {
534 j++;534 j++;