Fix character card lorebook imports / exports

d7780ee4bbf0a654b620027c8e7fecc6842c7b2a

Crow <bismuthglass@protonmail.com>

2 files changed, +12 -0Ignore whitespace
public/scripts/world-info.js+6 -0
@@ -4925,6 +4925,12 @@ export function convertCharacterBook(characterBook) {
4925 sticky: entry.extensions?.sticky ?? null,4925 sticky: entry.extensions?.sticky ?? null,
4926 cooldown: entry.extensions?.cooldown ?? null,4926 cooldown: entry.extensions?.cooldown ?? null,
4927 delay: entry.extensions?.delay ?? null,4927 delay: entry.extensions?.delay ?? null,
4928 matchPersonaDescription: entry.extensions?.matchPersonaDescription ?? false,
4929 matchCharacterDescription: entry.extensions?.matchCharacterDescription ?? false,
4930 matchCharacterPersonality: entry.extensions?.matchCharacterPersonality ?? false,
4931 matchCharacterDepthPrompt: entry.extensions?.matchCharacterDepthPrompt ?? false,
4932 matchScenario: entry.extensions?.matchScenario ?? false,
4933 matchCreatorNotes: entry.extensions?.matchCreatorNotes ?? false,
4928 extensions: entry.extensions ?? {},4934 extensions: entry.extensions ?? {},
4929 };4935 };
4930 });4936 });
src/endpoints/characters.js+6 -0
@@ -702,6 +702,12 @@ function convertWorldInfoToCharacterBook(name, entries) {
702 sticky: entry.sticky ?? null,702 sticky: entry.sticky ?? null,
703 cooldown: entry.cooldown ?? null,703 cooldown: entry.cooldown ?? null,
704 delay: entry.delay ?? null,704 delay: entry.delay ?? null,
705 matchPersonaDescription: entry.matchPersonaDescription ?? false,
706 matchCharacterDescription: entry.matchCharacterDescription ?? false,
707 matchCharacterPersonality: entry.matchCharacterPersonality ?? false,
708 matchCharacterDepthPrompt: entry.matchCharacterDepthPrompt ?? false,
709 matchScenario: entry.matchScenario ?? false,
710 matchCreatorNotes: entry.matchCreatorNotes ?? false,
705 },711 },
706 };712 };
707713