adding option to cleanUpMessage() to not include the user prompt bias, and removing the user prompt bias from generateRaw() results.
| @@ -3611,7 +3611,8 @@ export async function generateRaw(prompt, api, instructOverride, quietToLoud, sy | ||
| 3611 | 3611 | throw new Error(data.response); |
| 3612 | 3612 | } |
| 3613 | 3613 | |
| 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); | |
| 3615 | 3616 | |
| 3616 | 3617 | if (!message) { |
| 3617 | 3618 | throw new Error('No message generated'); |
| @@ -5883,13 +5884,14 @@ function extractMultiSwipes(data, type) { | ||
| 5883 | 5884 | return swipes; |
| 5884 | 5885 | } |
| 5885 | 5886 | |
| 5886 | 5887 | export function cleanUpMessage(getMessage, isImpersonate, isContinue, displayIncompleteSentences = false, stoppingStrings = null, include_user_prompt_bias=true) { |
| 5887 | 5888 | if (!getMessage) { |
| 5888 | 5889 | return ''; |
| 5889 | 5890 | } |
| 5890 | 5891 | |
| 5891 | 5892 | // Add the prompt bias before anything else |
| 5892 | 5893 | if ( |
| 5894 | + include_user_prompt_bias && | |
| 5893 | 5895 | power_user.user_prompt_bias && |
| 5894 | 5896 | !isImpersonate && |
| 5895 | 5897 | !isContinue && |