mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-22 23:18:27 +01:00
Fix name-inclusion logic check
This commit is contained in:
parent
713c05f808
commit
b8fc9f2194
@ -475,9 +475,9 @@ export function formatInstructModeExamples(mesExamplesArray, name1, name2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const example of blockExamples) {
|
for (const example of blockExamples) {
|
||||||
// If group names were already included, we don't want to add an additional prefix
|
// If group names were included, we don't want to add any additional prefix as it already was applied.
|
||||||
// If force group/persona names is set, we should override the include names for the user placeholder
|
// Otherwise, if force group/persona names is set, we should override the include names for the user placeholder
|
||||||
const includeThisName = (includeNames && !includeGroupNames) || (power_user.instruct.names_behavior === names_behavior_types.FORCE && example.name == 'example_user');
|
const includeThisName = !includeGroupNames && (includeNames || (power_user.instruct.names_behavior === names_behavior_types.FORCE && example.name == 'example_user'));
|
||||||
|
|
||||||
const prefix = example.name == 'example_user' ? inputPrefix : outputPrefix;
|
const prefix = example.name == 'example_user' ? inputPrefix : outputPrefix;
|
||||||
const suffix = example.name == 'example_user' ? inputSuffix : outputSuffix;
|
const suffix = example.name == 'example_user' ? inputSuffix : outputSuffix;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user