fix random bg1 not updating correctly

This commit is contained in:
RossAscends
2023-04-26 23:10:15 +09:00
parent 8f3da37c61
commit c354f8ee30
3 changed files with 6 additions and 6 deletions

View File

@ -1500,9 +1500,9 @@ async function Generate(type, automatic_trigger, force_name2) {
}
const blockHeading =
main_api === 'openai' ? '<START>' : // OpenAI handler always expects it
power_user.custom_chat_separator ? power_user.custom_chat_separator :
power_user.disable_examples_formatting ? '' :
is_pygmalion ? '<START>' : `This is how ${name2} should talk`;
power_user.custom_chat_separator ? power_user.custom_chat_separator :
power_user.disable_examples_formatting ? '' :
is_pygmalion ? '<START>' : `This is how ${name2} should talk`;
let mesExamplesArray = mesExamples.split(/<START>/gi).slice(1).map(block => `${blockHeading}\n${block.trim()}\n`);
if (main_api === 'openai') {
@ -3351,7 +3351,7 @@ function read_bg_load(input) {
setBackground(html);
$("#bg1").css(
"background-image",
`url(${e.target.result})`
`url("${e.target.result}")`
);
$("#form_bg_download").after(
`<div class="bg_example" bgfile="${html}" style="background-image: url('${getThumbnailUrl('bg', html)}');">