Revert lorebook.ts to use nullish coalescing operator
This commit is contained in:
@@ -62,8 +62,8 @@ export async function loadLoreBookPrompt(){
|
|||||||
const moduleLorebook = getModuleLorebooks()
|
const moduleLorebook = getModuleLorebooks()
|
||||||
const fullLore = characterLore.concat(chatLore).concat(moduleLorebook)
|
const fullLore = characterLore.concat(chatLore).concat(moduleLorebook)
|
||||||
const currentChat = char.chats[page].message
|
const currentChat = char.chats[page].message
|
||||||
const loreDepth = char.loreSettings?.scanDepth || db.loreBookDepth
|
const loreDepth = char.loreSettings?.scanDepth ?? db.loreBookDepth
|
||||||
const loreToken = char.loreSettings?.tokenBudget || db.loreBookToken
|
const loreToken = char.loreSettings?.tokenBudget ?? db.loreBookToken
|
||||||
const fullWordMatching = char.loreSettings?.fullWordMatching ?? false
|
const fullWordMatching = char.loreSettings?.fullWordMatching ?? false
|
||||||
|
|
||||||
let activatiedPrompt: string[] = []
|
let activatiedPrompt: string[] = []
|
||||||
|
|||||||
Reference in New Issue
Block a user