mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix character card lorebook imports / exports
This commit is contained in:
@@ -4925,6 +4925,12 @@ export function convertCharacterBook(characterBook) {
|
|||||||
sticky: entry.extensions?.sticky ?? null,
|
sticky: entry.extensions?.sticky ?? null,
|
||||||
cooldown: entry.extensions?.cooldown ?? null,
|
cooldown: entry.extensions?.cooldown ?? null,
|
||||||
delay: entry.extensions?.delay ?? 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 ?? {},
|
extensions: entry.extensions ?? {},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@@ -702,6 +702,12 @@ function convertWorldInfoToCharacterBook(name, entries) {
|
|||||||
sticky: entry.sticky ?? null,
|
sticky: entry.sticky ?? null,
|
||||||
cooldown: entry.cooldown ?? null,
|
cooldown: entry.cooldown ?? null,
|
||||||
delay: entry.delay ?? 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,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user