diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 414bb32c..6a142c80 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "RisuAI", - "version": "1.27.0" + "version": "1.27.1" }, "tauri": { "allowlist": { diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index 9c5dd71d..76b5eace 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -159,7 +159,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n } if(!currentChar.utilityBot){ - const mainp = currentChar.systemPrompt.replaceAll('{{original}}', db.mainPrompt) || db.mainPrompt + const mainp = currentChar.systemPrompt?.replaceAll('{{original}}', db.mainPrompt) || db.mainPrompt function formatPrompt(data:string){ @@ -188,7 +188,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n unformated.jailbreak.push(...formatPrompt(replacePlaceholders(db.jailbreak, currentChar.name))) } - unformated.globalNote.push(...formatPrompt(replacePlaceholders(currentChar.replaceGlobalNote.replaceAll('{{original}}', db.globalNote) || db.globalNote, currentChar.name))) + unformated.globalNote.push(...formatPrompt(replacePlaceholders(currentChar.replaceGlobalNote?.replaceAll('{{original}}', db.globalNote) || db.globalNote, currentChar.name))) } if(currentChat.note){ diff --git a/src/ts/storage/database.ts b/src/ts/storage/database.ts index e12fe3f5..60a9466d 100644 --- a/src/ts/storage/database.ts +++ b/src/ts/storage/database.ts @@ -8,7 +8,7 @@ import { defaultAutoSuggestPrompt, defaultJailbreak, defaultMainPrompt } from '. export const DataBase = writable({} as any as Database) export const loadedStore = writable(false) -export let appVer = '1.27.0' +export let appVer = '1.27.1' export function setDatabase(data:Database){ if(checkNullish(data.characters)){ diff --git a/version.json b/version.json index 8af85947..08b4235c 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{"version":"1.27.0"} \ No newline at end of file +{"version":"1.27.1"} \ No newline at end of file