Fix trimming incomplete sentences in logprobs reroll

This commit is contained in:
Cohee
2024-11-17 19:44:08 +02:00
parent b41846e013
commit 14d5c669b1

View File

@@ -364,7 +364,7 @@ function onToggleLogprobsPanel() {
function createSwipe(messageId, prompt) { function createSwipe(messageId, prompt) {
// need to call `cleanUpMessage` on our new prompt, because we were working // 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 // with raw model output and our new prompt is missing trimming/macro replacements
const cleanedPrompt = cleanUpMessage(prompt, false, false); const cleanedPrompt = cleanUpMessage(prompt, false, false, true);
const msg = chat[messageId]; const msg = chat[messageId];
const newSwipeInfo = { const newSwipeInfo = {