mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Move chat renaming logic to server side. Add "quiet" reply generation mode.
This commit is contained in:
@@ -115,7 +115,8 @@ async function generatePoe(type, finalPrompt, signal) {
|
||||
console.log('Could not jailbreak the bot');
|
||||
}
|
||||
|
||||
const isImpersonate = type == 'impersonate';
|
||||
const isImpersonate = type === 'impersonate';
|
||||
const isQuiet = type === 'quiet';
|
||||
|
||||
if (poe_settings.character_nudge && !isImpersonate) {
|
||||
let characterNudge = '\n' + substituteParams(poe_settings.character_nudge_message);
|
||||
@@ -136,7 +137,7 @@ async function generatePoe(type, finalPrompt, signal) {
|
||||
finalPrompt = sentences.join('');
|
||||
}
|
||||
|
||||
const reply = await sendMessage(finalPrompt, true, signal);
|
||||
const reply = await sendMessage(finalPrompt, !isQuiet, signal);
|
||||
got_reply = true;
|
||||
return reply;
|
||||
}
|
||||
|
Reference in New Issue
Block a user