Improve in-code documentation

This commit is contained in:
maver 2023-06-27 20:20:24 +02:00
parent e43a2be229
commit bf0dc07b1f

View File

@ -599,9 +599,9 @@ function prepareOpenAIMessages({
if (power_user.console_log_prompts) chatCompletion.enableLogging(); if (power_user.console_log_prompts) chatCompletion.enableLogging();
// Merge items to send that are managed by the prompt manager with items from other places in silly tavern // Merge items to send, whose are managed by the prompt manager, with items from other places in silly tavern
// While the position in this array matters for positioning items inside the chat completion, further elements // While the position in this array matters for positioning items inside the chat completion, elements
// may be added for later reference, as long as the initial order is not altered. // may simply be appended for later reference, as long as the initial order is not altered.
const mappedPrompts = [ const mappedPrompts = [
// Ordered prompts for which a marker should exist // Ordered prompts for which a marker should exist
{role: 'system', content: formatWorldInfo(worldInfoBefore), identifier: 'worldInfoBefore'}, {role: 'system', content: formatWorldInfo(worldInfoBefore), identifier: 'worldInfoBefore'},