mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix trimming incomplete sentences in logprobs reroll
This commit is contained in:
@@ -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 = {
|
||||||
|
Reference in New Issue
Block a user