Change field names to match required fields

This commit is contained in:
Crow
2025-04-25 03:11:36 +01:00
parent b5280bbfc7
commit a3d7b540c7
2 changed files with 12 additions and 12 deletions

View File

@@ -4927,12 +4927,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,
matchPersonaDescription: entry.extensions?.match_persona_description ?? false,
matchCharacterDescription: entry.extensions?.match_character_description ?? false,
matchCharacterPersonality: entry.extensions?.match_character_personality ?? false,
matchCharacterDepthPrompt: entry.extensions?.match_character_depth_prompt ?? false,
matchScenario: entry.extensions?.match_scenario ?? false,
matchCreatorNotes: entry.extensions?.match_creator_notes ?? false,
extensions: entry.extensions ?? {},
};
});

View File

@@ -702,12 +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,
match_persona_description: entry.matchPersonaDescription ?? false,
match_character_description: entry.matchCharacterDescription ?? false,
match_character_personality: entry.matchCharacterPersonality ?? false,
match_character_depth_prompt: entry.matchCharacterDepthPrompt ?? false,
match_scenario: entry.matchScenario ?? false,
match_creator_notes: entry.matchCreatorNotes ?? false,
},
};