adding option to cleanUpMessage() to not include the user prompt bias, and removing the user prompt bias from generateRaw() results.

3412d1ce1f3b030c148ec4c7741e2856afbef17b

qvink <qvink@users.noreply.github.com>

1 files changed, +4 -2Showing whitespace changes
public/script.js+4 -2
@@ -3611,7 +3611,8 @@ export async function generateRaw(prompt, api, instructOverride, quietToLoud, sy
36113611 throw new Error(data.response);
36123612 }
36133613
3614- const message = cleanUpMessage(extractMessageFromData(data), false, false, true);
3614+ // format result, exclude user prompt bias
3615+ const message = cleanUpMessage(extractMessageFromData(data), false, false, true, null, false);
36153616
36163617 if (!message) {
36173618 throw new Error('No message generated');
@@ -5883,13 +5884,14 @@ function extractMultiSwipes(data, type) {
58835884 return swipes;
58845885}
58855886
58865887export function cleanUpMessage(getMessage, isImpersonate, isContinue, displayIncompleteSentences = false, stoppingStrings = null, include_user_prompt_bias=true) {
58875888 if (!getMessage) {
58885889 return '';
58895890 }
58905891
58915892 // Add the prompt bias before anything else
58925893 if (
5894+ include_user_prompt_bias &&
58935895 power_user.user_prompt_bias &&
58945896 !isImpersonate &&
58955897 !isContinue &&