# PR Checklist
- [X] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [X] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [X] Did you added a type def?

# Description
This commit is contained in:
kwaroran
2023-06-01 08:07:18 +09:00
committed by GitHub
5 changed files with 4 additions and 25 deletions

View File

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

View File

@@ -39,7 +39,7 @@
{#if value.selective}
<span class="text-neutral-200 mt-6">{language.SecondaryKeys}</span>
<span class="text-xs text-gray-500">{language.activationKeysInfo}</span>
<input class="text-neutral-200 p-2 bg-transparent input-text focus:bg-selected text-sm" bind:value={value.activationPercent} min="0" max="100">
<input class="text-neutral-200 p-2 bg-transparent input-text focus:bg-selected text-sm" bind:value={value.secondkey} min="0" max="100">
{/if}
{/if}
{#if !(value.activationPercent === undefined || value.activationPercent === null)}

View File

@@ -204,28 +204,7 @@ export async function supaMemory(
const tokenz = await tokenize(result + '\n\n') + chatAdditonalTokens
currentTokens += tokenz
supaMemory += result.replace(/\n+/g,'\n') + '\n\n'
let SupaMemoryList = supaMemory.split('\n\n')
if(SupaMemoryList.length >= 5){
const oldSupaMemory = supaMemory
let modifies = []
for(let i=0;i<3;i++){
modifies.push(SupaMemoryList.shift())
}
const result = await summarize(supaMemory)
if(typeof(result) !== 'string'){
return result
}
modifies.unshift(result.replace(/\n+/g,'\n'))
supaMemory = modifies.join('\n\n') + '\n\n'
currentTokens -= await tokenize(oldSupaMemory)
currentTokens += await tokenize(supaMemory)
}
}
}
chats.unshift({

View File

@@ -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.22.3'
export let appVer = '1.22.4'
export function setDatabase(data:Database){
if(checkNullish(data.characters)){

View File

@@ -1 +1 @@
{"version":"1.22.3"}
{"version":"1.22.4"}