From de091daa4021e5769f14b35bbb2fbc1ad56cc4aa Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 27 Mar 2025 20:46:27 +0200 Subject: [PATCH] Clean-up comments --- public/scripts/constants.js | 9 +++++---- public/scripts/openai.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/public/scripts/constants.js b/public/scripts/constants.js index e1f632905..5cd1a2ff5 100644 --- a/public/scripts/constants.js +++ b/public/scripts/constants.js @@ -15,9 +15,10 @@ export const debounce_timeout = { extended: 5000, }; -/* -Used as an ephemeral key in message extra metadata. -When set, the message will be excluded from generation prompts without affecting the number of chat messages, - which is needed to preserve world info timed effects. +/** + * Used as an ephemeral key in message extra metadata. + * When set, the message will be excluded from generation + * prompts without affecting the number of chat messages, + * which is needed to preserve world info timed effects. */ export const IGNORE_SYMBOL = Symbol.for('ignore'); diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 30efc6e03..354067011 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -528,7 +528,7 @@ function setOpenAIMessages(chat) { let role = chat[j]['is_user'] ? 'user' : 'assistant'; let content = chat[j]['mes']; - // If this flag is set, completely ignore the message. + // If this symbol flag is set, completely ignore the message. // This can be used to hide messages without affecting the number of messages in the chat. if (chat[j].extra?.[IGNORE_SYMBOL]) { j++;