Fix raw prompts display in prompt itemizer

This commit is contained in:
Cohee 2023-08-21 23:50:38 +03:00
parent e199d3e5b5
commit 07d7eb733d
2 changed files with 5 additions and 3 deletions

View File

@ -2997,7 +2997,6 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
if (true === dryRun) return onSuccess({ error: 'dryRun' });
if (power_user.console_log_prompts) {
console.log(generate_data.prompt);
}
@ -3010,7 +3009,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
let currentArrayEntry = Number(thisPromptBits.length - 1);
let additionalPromptStuff = {
...thisPromptBits[currentArrayEntry],
rawPrompt: generate_data.prompt,
rawPrompt: generate_data.prompt || generate_data.input,
mesId: getNextMessageId(type),
allAnchors: allAnchors,
summarizeString: (extension_prompts['1_memory']?.value || ''),

View File

@ -178,7 +178,10 @@ table.responsiveTable {
.tokenItemizingSubclass {
font-size: calc(var(--mainFontSize) * 0.8);
color: var(--SmartThemeEmColor);
/*white-space: pre-wrap;*/
}
#rawPromptWrapper {
white-space: pre-wrap;
}
.tokenGraph {