chore: update version to 145.3.0
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
},
|
||||
"productName": "RisuAI",
|
||||
"mainBinaryName": "RisuAI",
|
||||
"version": "145.2.0",
|
||||
"version": "145.3.0",
|
||||
"identifier": "co.aiclient.risu",
|
||||
"plugins": {
|
||||
"updater": {
|
||||
|
||||
@@ -38,38 +38,7 @@
|
||||
|
||||
const onClick = () => {
|
||||
if(specialDay === 'newYear'){
|
||||
const db = DBState.db
|
||||
let messages = 0
|
||||
let chats = 0
|
||||
if(db.statistics?.newYear2024){
|
||||
const markdown = `
|
||||
# Happy New Year!
|
||||
You've had:
|
||||
- Sent over ${db.statistics.newYear2024.messages.toLocaleString()} messages
|
||||
- Played over ${db.statistics.newYear2024.chats.toLocaleString()} chats
|
||||
*Statistics are approximate*
|
||||
`
|
||||
alertMd(markdown)
|
||||
return
|
||||
}
|
||||
db.characters.map((c) => {
|
||||
c.chats.map((chat) => {
|
||||
messages += chat.message.length
|
||||
})
|
||||
chats += c.chats.length
|
||||
})
|
||||
const markdown = `
|
||||
# Happy New Year!
|
||||
You've had:
|
||||
- Sent over ${messages.toLocaleString()} messages
|
||||
- Played over ${chats.toLocaleString()} chats
|
||||
*Statistics are approximate*
|
||||
`
|
||||
db.statistics.newYear2024 = {
|
||||
messages,
|
||||
chats
|
||||
}
|
||||
alertMd(markdown)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -227,15 +227,27 @@ export async function requestChatData(arg:requestDataArgument, model:ModelModeEx
|
||||
}
|
||||
|
||||
if(da.type === 'success' && db.banCharacterset?.length > 0){
|
||||
let failed = false
|
||||
for(const set of db.banCharacterset){
|
||||
console.log(set)
|
||||
const checkRegex = new RegExp(`\\p{Script=${set}}`, 'gu')
|
||||
|
||||
if(checkRegex.test(da.result)){
|
||||
trys += 1
|
||||
if(trys > db.requestRetrys){
|
||||
return {
|
||||
type: 'fail',
|
||||
result: 'Banned character found'
|
||||
result: 'Banned character found, retry limit reached'
|
||||
}
|
||||
}
|
||||
|
||||
failed = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if(failed){
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import { defaultColorScheme, type ColorScheme } from '../gui/colorscheme';
|
||||
import type { PromptItem, PromptSettings } from '../process/prompt';
|
||||
import type { OobaChatCompletionRequestParams } from '../model/ooba';
|
||||
|
||||
export let appVer = "145.2.0"
|
||||
export let appVer = "145.3.0"
|
||||
export let webAppSubVer = ''
|
||||
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":"145.2.0"}
|
||||
{"version":"145.3.0"}
|
||||
Reference in New Issue
Block a user