Fix character card lorebook imports / exports

This commit is contained in:
Crow
2025-04-24 20:13:18 +01:00
parent be591b2494
commit d7780ee4bb
2 changed files with 12 additions and 0 deletions

View File

@@ -4925,6 +4925,12 @@ export function convertCharacterBook(characterBook) {
sticky: entry.extensions?.sticky ?? null,
cooldown: entry.extensions?.cooldown ?? null,
delay: entry.extensions?.delay ?? null,
matchPersonaDescription: entry.extensions?.matchPersonaDescription ?? false,
matchCharacterDescription: entry.extensions?.matchCharacterDescription ?? false,
matchCharacterPersonality: entry.extensions?.matchCharacterPersonality ?? false,
matchCharacterDepthPrompt: entry.extensions?.matchCharacterDepthPrompt ?? false,
matchScenario: entry.extensions?.matchScenario ?? false,
matchCreatorNotes: entry.extensions?.matchCreatorNotes ?? false,
extensions: entry.extensions ?? {},
};
});

View File

@@ -702,6 +702,12 @@ function convertWorldInfoToCharacterBook(name, entries) {
sticky: entry.sticky ?? null,
cooldown: entry.cooldown ?? null,
delay: entry.delay ?? null,
matchPersonaDescription: entry.matchPersonaDescription ?? false,
matchCharacterDescription: entry.matchCharacterDescription ?? false,
matchCharacterPersonality: entry.matchCharacterPersonality ?? false,
matchCharacterDepthPrompt: entry.matchCharacterDepthPrompt ?? false,
matchScenario: entry.matchScenario ?? false,
matchCreatorNotes: entry.matchCreatorNotes ?? false,
},
};