Skip to content

Commit 0803fe0

Browse files
author
prima
committed
fix: Aesthetic mode
1 parent d66331f commit 0803fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

klite.embd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21813,11 +21813,11 @@ Current version indicated by LITEVER below.
2181321813

2181421814
function transformInputToAestheticStyle(bodyStr, isPreview) { // Trim unnecessary empty space and new lines, and append * or " to each bubble if start/end sequence ends with * or ", to preserve styling.
2181521815

21816-
let sys = "system"
2181721816
bodyStr = bodyStr.replaceAll(you + '\n', you).replaceAll(you + ' ', you).replaceAll(you, style('you') + `${you.endsWith('*') ? '*' : ''}` + `${you.endsWith('"') ? '"' : ''}`);
2181821817
bodyStr = bodyStr.replaceAll(bot + '\n', bot).replaceAll(bot + ' ', bot).replaceAll(bot, style('AI') + `${bot.endsWith('*') ? '*' : ''}` + `${bot.endsWith('"') ? '"' : ''}`);
2181921818
if (isAgentModeEnabledAndSetCorrectly())
2182021819
{
21820+
let sys = get_instruct_systag(doTrim=true)
2182121821
bodyStr = bodyStr.replaceAll(sys + '\n', sys).replaceAll(sys + ' ', sys).replaceAll(sys, style('sys') + `${sys.endsWith('*') ? '*' : ''}` + `${sys.endsWith('"') ? '"' : ''}`);
2182221822
}
2182321823

0 commit comments

Comments
 (0)