1.22.4 (#145)
# 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:
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "RisuAI",
|
"productName": "RisuAI",
|
||||||
"version": "1.22.3"
|
"version": "1.22.4"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
{#if value.selective}
|
{#if value.selective}
|
||||||
<span class="text-neutral-200 mt-6">{language.SecondaryKeys}</span>
|
<span class="text-neutral-200 mt-6">{language.SecondaryKeys}</span>
|
||||||
<span class="text-xs text-gray-500">{language.activationKeysInfo}</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}
|
{/if}
|
||||||
{#if !(value.activationPercent === undefined || value.activationPercent === null)}
|
{#if !(value.activationPercent === undefined || value.activationPercent === null)}
|
||||||
|
|||||||
@@ -204,28 +204,7 @@ export async function supaMemory(
|
|||||||
const tokenz = await tokenize(result + '\n\n') + chatAdditonalTokens
|
const tokenz = await tokenize(result + '\n\n') + chatAdditonalTokens
|
||||||
currentTokens += tokenz
|
currentTokens += tokenz
|
||||||
supaMemory += result.replace(/\n+/g,'\n') + '\n\n'
|
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({
|
chats.unshift({
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { defaultAutoSuggestPrompt, defaultJailbreak, defaultMainPrompt } from '.
|
|||||||
|
|
||||||
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.22.3'
|
export let appVer = '1.22.4'
|
||||||
|
|
||||||
export function setDatabase(data:Database){
|
export function setDatabase(data:Database){
|
||||||
if(checkNullish(data.characters)){
|
if(checkNullish(data.characters)){
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":"1.22.3"}
|
{"version":"1.22.4"}
|
||||||
Reference in New Issue
Block a user