Skip to content

Commit adcc667

Browse files
authored
1.106.2 (#443)
# PR Checklist - [ ] Did you check if it works normally in all models? *ignore this when it dosen't uses models* - [ ] 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? - [ ] Did you added a type def? # Description
2 parents 24717bd + 4d304f7 commit adcc667

File tree

6 files changed

+20
-12
lines changed

6 files changed

+20
-12
lines changed

android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ android {
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
1010
versionCode 2
11-
versionName "1.106.1"
11+
versionName "1.106.2"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1313
aaptOptions {
1414
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.

android/app/release/output-metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"filters": [],
1313
"attributes": [],
1414
"versionCode": 2,
15-
"versionName": "1.106.1",
15+
"versionName": "1.106.2",
1616
"outputFile": "app-release.apk"
1717
}
1818
],

src-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "RisuAI",
11-
"version": "1.106.1"
11+
"version": "1.106.2"
1212
},
1313
"tauri": {
1414
"allowlist": {

src/ts/process/lorebook.ts

+15-7
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ export async function loadLoreBookV3Prompt(){
231231
fullWordMatching:boolean
232232
}) => {
233233
const sliced = messages.slice(messages.length - arg.searchDepth,messages.length)
234-
let mText = sliced.join(" ") + recursiveAdditionalPrompt
234+
let mText = sliced.map((msg) => {
235+
return msg.data
236+
}).join('||')
235237
if(arg.regex){
236238
const regexString = arg.keys[0]
237239
if(!regexString.startsWith('/')){
@@ -247,22 +249,28 @@ export async function loadLoreBookV3Prompt(){
247249
return false
248250
}
249251
}
252+
return false
250253
}
251254

252255
mText = mText.toLowerCase()
253256

254257
if(arg.fullWordMatching){
255258
const splited = mText.split(' ')
256-
return arg.keys.some((key) => {
257-
return splited.includes(key)
258-
})
259+
for(const key of arg.keys){
260+
if(splited.includes(key)){
261+
return true
262+
}
263+
}
259264
}
260265
else{
261266
mText = mText.replace(/ /g,'')
262-
return arg.keys.some((key) => {
263-
return mText.includes(key.toLowerCase())
264-
})
267+
for(const key of arg.keys){
268+
if(mText.includes(key)){
269+
return true
270+
}
271+
}
265272
}
273+
return false
266274

267275
}
268276

src/ts/storage/database.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type { OobaChatCompletionRequestParams } from '../model/ooba';
1414

1515
export const DataBase = writable({} as any as Database)
1616
export const loadedStore = writable(false)
17-
export let appVer = "1.106.1"
17+
export let appVer = "1.106.2"
1818
export let webAppSubVer = ''
1919

2020
export function setDatabase(data:Database){

version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"1.106.1"}
1+
{"version":"1.106.2"}

0 commit comments

Comments
 (0)