Set is_name=true for instruct mode

This commit is contained in:
SillyLossy
2023-05-21 15:06:49 +03:00
parent 8cce0d0ce7
commit 8a3772f06b

View File

@ -2955,7 +2955,9 @@ function extractNameFromMessage(getMessage, force_name2, isImpersonate) {
// Like OAI, Poe is very unlikely to send you an incomplete message.
// But it doesn't send "name:" either, so we assume that we always have a name
// prepend to have clearer logs when building up a prompt context.
if (force_name2 || main_api == 'poe')
// Instruct mode needs to have it on to make sure you won't have names lost
// if disable in a middle of a solo chat.
if (force_name2 || main_api == 'poe' || power_user.instruct.enabled)
this_mes_is_name = true;
if (isImpersonate) {