cleanUpMessages() now uses object args. Adding option to trim names.

This commit is contained in:
qvink
2025-03-21 12:18:48 -06:00
parent ff21ee24d1
commit c4175697ef
2 changed files with 99 additions and 32 deletions

View File

@ -368,7 +368,12 @@ function onToggleLogprobsPanel() {
function createSwipe(messageId, prompt) {
// need to call `cleanUpMessage` on our new prompt, because we were working
// with raw model output and our new prompt is missing trimming/macro replacements
const cleanedPrompt = cleanUpMessage(prompt, false, false, true);
const cleanedPrompt = cleanUpMessage({
getMessage: prompt,
isImpersonate: false,
isContinue: false,
displayIncompleteSentences: true
});
const msg = chat[messageId];
const newSwipeInfo = {