mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix matching issues for depth prompt
This commit is contained in:
@@ -3164,7 +3164,7 @@ export function getCharacterCardFields({ chid = null } = {}) {
|
|||||||
result.jailbreak = power_user.prefer_character_jailbreak ? baseChatReplace(character.data?.post_history_instructions?.trim(), name1, name2) : '';
|
result.jailbreak = power_user.prefer_character_jailbreak ? baseChatReplace(character.data?.post_history_instructions?.trim(), name1, name2) : '';
|
||||||
result.version = character.data?.character_version ?? '';
|
result.version = character.data?.character_version ?? '';
|
||||||
result.charDepthPrompt = baseChatReplace(character.data?.extensions?.depth_prompt?.prompt?.trim(), name1, name2);
|
result.charDepthPrompt = baseChatReplace(character.data?.extensions?.depth_prompt?.prompt?.trim(), name1, name2);
|
||||||
result.creatorNotes = baseChatReplace(character.creator_notes?.trim(), name1, name2);
|
result.creatorNotes = baseChatReplace(character.data?.creator_notes?.trim(), name1, name2);
|
||||||
|
|
||||||
if (selected_group) {
|
if (selected_group) {
|
||||||
const groupCards = getGroupCharacterCards(selected_group, Number(currentChid));
|
const groupCards = getGroupCharacterCards(selected_group, Number(currentChid));
|
||||||
|
@@ -115,11 +115,11 @@ const KNOWN_DECORATORS = ['@@activate', '@@dont_activate'];
|
|||||||
* @property {boolean} [matchWholeWords] If the scan should match whole words
|
* @property {boolean} [matchWholeWords] If the scan should match whole words
|
||||||
* @property {boolean} [useGroupScoring] If the scan should use group scoring
|
* @property {boolean} [useGroupScoring] If the scan should use group scoring
|
||||||
* @property {boolean} [matchPersonaDescription] If the scan should match against the persona description
|
* @property {boolean} [matchPersonaDescription] If the scan should match against the persona description
|
||||||
* @property {boolean} [matchCharacterDescription] If the scan should match against the character
|
* @property {boolean} [matchCharacterDescription] If the scan should match against the character description
|
||||||
* @property {boolean} [matchCharacterPersonality] If the scan should match against the character
|
* @property {boolean} [matchCharacterPersonality] If the scan should match against the character personality
|
||||||
* @property {boolean} [matchCharacterNote] If the scan should match against the character note
|
* @property {boolean} [matchCharacterDepthPrompt] If the scan should match against the character depth prompt
|
||||||
* @property {boolean} [matchScenario] If the scan should match against the character scenario
|
* @property {boolean} [matchScenario] If the scan should match against the character scenario
|
||||||
* @property {boolean} [matchCreatorNotes] If the scan should match against the character metadata
|
* @property {boolean} [matchCreatorNotes] If the scan should match against the creator notes
|
||||||
* @property {number} [uid] The UID of the entry that triggered the scan
|
* @property {number} [uid] The UID of the entry that triggered the scan
|
||||||
* @property {string} [world] The world info book of origin of the entry
|
* @property {string} [world] The world info book of origin of the entry
|
||||||
* @property {string[]} [key] The primary keys to scan for
|
* @property {string[]} [key] The primary keys to scan for
|
||||||
@@ -258,7 +258,7 @@ class WorldInfoBuffer {
|
|||||||
if (entry.matchCharacterPersonality) {
|
if (entry.matchCharacterPersonality) {
|
||||||
result += JOINER + this.#globalScanDataBuffer.characterPersonality;
|
result += JOINER + this.#globalScanDataBuffer.characterPersonality;
|
||||||
}
|
}
|
||||||
if (entry.matchCharacterNote) {
|
if (entry.matchCharacterDepthPrompt) {
|
||||||
result += JOINER + this.#globalScanDataBuffer.characterDepthPrompt;
|
result += JOINER + this.#globalScanDataBuffer.characterDepthPrompt;
|
||||||
}
|
}
|
||||||
if (entry.matchScenario) {
|
if (entry.matchScenario) {
|
||||||
|
Reference in New Issue
Block a user