[fix] global lorebook not working

This commit is contained in:
kwaroran
2023-05-24 18:45:51 +09:00
parent 399f6c64eb
commit abf86873be
4 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
},
"package": {
"productName": "RisuAI",
"version": "1.16.1"
"version": "1.16.3"
},
"tauri": {
"allowlist": {

View File

@@ -7,7 +7,7 @@ import { cloneDeep } from 'lodash';
export const DataBase = writable({} as any as Database)
export const loadedStore = writable(false)
export let appVer = '1.16.1'
export let appVer = '1.16.3'
export function setDatabase(data:Database){

View File

@@ -67,8 +67,8 @@ export async function loadLoreBookPrompt(){
const page = char.chatPage
const characterLore = char.globalLore ?? []
const chatLore = char.chats[page].localLore ?? []
const globalLore = db.loreBook[db.loreBookPage].data ?? []
const fullLore = characterLore.concat(chatLore)
const globalLore = db.loreBook[db.loreBookPage]?.data ?? []
const fullLore = characterLore.concat(chatLore.concat(globalLore))
const currentChat = char.chats[page].message
const loreDepth = char.loreSettings?.scanDepth ?? db.loreBookDepth
const loreToken = char.loreSettings?.tokenBudget ?? db.loreBookToken

View File

@@ -1 +1 @@
{"version":"1.16.1"}
{"version":"1.16.3"}