Update version and fix preset
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
},
|
||||
"productName": "RisuAI",
|
||||
"mainBinaryName": "RisuAI",
|
||||
"version": "150.2.0",
|
||||
"version": "150.3.0",
|
||||
"identifier": "co.aiclient.risu",
|
||||
"plugins": {
|
||||
"updater": {
|
||||
|
||||
@@ -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 = "150.2.0"
|
||||
export let appVer = "150.3.0"
|
||||
export let webAppSubVer = ''
|
||||
|
||||
|
||||
@@ -1234,6 +1234,7 @@ export interface botPreset{
|
||||
image?:string
|
||||
regex?:customscript[]
|
||||
reasonEffort?:number
|
||||
thinkingTokens?:number
|
||||
}
|
||||
|
||||
|
||||
@@ -1540,6 +1541,7 @@ export function saveCurrentPreset(){
|
||||
regex: db.presetRegex,
|
||||
image: pres?.[db.botPresetsId]?.image ?? '',
|
||||
reasonEffort: db.reasoningEffort ?? 0,
|
||||
thinkingTokens: db.thinkingTokens ?? null,
|
||||
}
|
||||
db.botPresets = pres
|
||||
setDatabase(db)
|
||||
@@ -1650,6 +1652,7 @@ export function setPreset(db:Database, newPres: botPreset){
|
||||
db.enableCustomFlags = newPres.enableCustomFlags ?? false
|
||||
db.presetRegex = newPres.regex ?? []
|
||||
db.reasoningEffort = newPres.reasonEffort ?? 0
|
||||
db.thinkingTokens = newPres.thinkingTokens ?? null
|
||||
return db
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":"150.2.0"}
|
||||
{"version":"150.3.0"}
|
||||
Reference in New Issue
Block a user