| 5884 | return swipes; | 5884 | return swipes; |
| 5885 | } | 5885 | } |
| 5886 | | 5886 | |
| 5887 | export function cleanUpMessage(getMessage, isImpersonate, isContinue, displayIncompleteSentences = false, stoppingStrings = null, include_user_prompt_bias=true) { | 5887 | export function cleanUpMessage(getMessage, isImpersonate, isContinue, displayIncompleteSentences = false, stoppingStrings = null, includeUserPromptBias = true) { |
| 5888 | if (!getMessage) { | 5888 | if (!getMessage) { |
| 5889 | return ''; | 5889 | return ''; |
| 5890 | } | 5890 | } |
| 5891 | | 5891 | |
| 5892 | // Add the prompt bias before anything else | 5892 | // Add the prompt bias before anything else |
| 5893 | if ( | 5893 | if ( |
| 5894 | include_user_prompt_bias && | 5894 | includeUserPromptBias && |
| 5895 | power_user.user_prompt_bias && | 5895 | power_user.user_prompt_bias && |
| 5896 | !isImpersonate && | 5896 | !isImpersonate && |
| 5897 | !isContinue && | 5897 | !isContinue && |