[fix] global lorebook not working
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "RisuAI",
|
"productName": "RisuAI",
|
||||||
"version": "1.16.1"
|
"version": "1.16.3"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { cloneDeep } from 'lodash';
|
|||||||
|
|
||||||
export const DataBase = writable({} as any as Database)
|
export const DataBase = writable({} as any as Database)
|
||||||
export const loadedStore = writable(false)
|
export const loadedStore = writable(false)
|
||||||
export let appVer = '1.16.1'
|
export let appVer = '1.16.3'
|
||||||
|
|
||||||
|
|
||||||
export function setDatabase(data:Database){
|
export function setDatabase(data:Database){
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ export async function loadLoreBookPrompt(){
|
|||||||
const page = char.chatPage
|
const page = char.chatPage
|
||||||
const characterLore = char.globalLore ?? []
|
const characterLore = char.globalLore ?? []
|
||||||
const chatLore = char.chats[page].localLore ?? []
|
const chatLore = char.chats[page].localLore ?? []
|
||||||
const globalLore = db.loreBook[db.loreBookPage].data ?? []
|
const globalLore = db.loreBook[db.loreBookPage]?.data ?? []
|
||||||
const fullLore = characterLore.concat(chatLore)
|
const fullLore = characterLore.concat(chatLore.concat(globalLore))
|
||||||
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
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":"1.16.1"}
|
{"version":"1.16.3"}
|
||||||
Reference in New Issue
Block a user