Generate: Fix appends on continue

Continue was in a semi-working state. However, the generated prompt
by continue was a mess and didn't remove essential parts such as
character name and prompt bias. This caused duplication and bad
generations.

Now, append the prompt bias after the CFG has been appended and then
clean up the continued cache before adding it to the final prompt.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2023-08-20 17:36:35 -04:00
parent ac319dbd30
commit ad2be21531
2 changed files with 50 additions and 36 deletions

View File

@ -69,8 +69,6 @@ export function getCfgPrompt(guidanceScale, isNegative) {
);
}
console.log(guidanceScale.type);
console.log(cfgPromptCombine);
if (guidanceScale.type === cfgType.global || cfgPromptCombine.includes(cfgType.global)) {
splitCfgPrompt.unshift(
substituteParams(