cleanUpMessages() now uses object args. Adding option to trim names.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user