mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix raw prompts display in prompt itemizer
This commit is contained in:
@ -2997,7 +2997,6 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||||||
if (true === dryRun) return onSuccess({ error: 'dryRun' });
|
if (true === dryRun) return onSuccess({ error: 'dryRun' });
|
||||||
|
|
||||||
if (power_user.console_log_prompts) {
|
if (power_user.console_log_prompts) {
|
||||||
|
|
||||||
console.log(generate_data.prompt);
|
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 currentArrayEntry = Number(thisPromptBits.length - 1);
|
||||||
let additionalPromptStuff = {
|
let additionalPromptStuff = {
|
||||||
...thisPromptBits[currentArrayEntry],
|
...thisPromptBits[currentArrayEntry],
|
||||||
rawPrompt: generate_data.prompt,
|
rawPrompt: generate_data.prompt || generate_data.input,
|
||||||
mesId: getNextMessageId(type),
|
mesId: getNextMessageId(type),
|
||||||
allAnchors: allAnchors,
|
allAnchors: allAnchors,
|
||||||
summarizeString: (extension_prompts['1_memory']?.value || ''),
|
summarizeString: (extension_prompts['1_memory']?.value || ''),
|
||||||
|
@ -178,7 +178,10 @@ table.responsiveTable {
|
|||||||
.tokenItemizingSubclass {
|
.tokenItemizingSubclass {
|
||||||
font-size: calc(var(--mainFontSize) * 0.8);
|
font-size: calc(var(--mainFontSize) * 0.8);
|
||||||
color: var(--SmartThemeEmColor);
|
color: var(--SmartThemeEmColor);
|
||||||
/*white-space: pre-wrap;*/
|
}
|
||||||
|
|
||||||
|
#rawPromptWrapper {
|
||||||
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tokenGraph {
|
.tokenGraph {
|
||||||
|
Reference in New Issue
Block a user