Add moduleIntergration

This commit is contained in:
kwaroran
2024-09-05 20:44:57 +09:00
parent d58806c978
commit 7d14cf614c
5 changed files with 48 additions and 33 deletions

View File

@@ -725,6 +725,7 @@ export interface Database{
falLora: string
falLoraName: string
falLoraScale: number
moduleIntergration: string
}
export interface customscript{
@@ -975,6 +976,7 @@ export interface botPreset{
useInstructPrompt?:boolean
customPromptTemplateToggle?:string
templateDefaultVariables?:string
moduleIntergration?:string
}
@@ -1254,6 +1256,7 @@ export function saveCurrentPreset(){
useInstructPrompt: db.useInstructPrompt,
customPromptTemplateToggle: db.customPromptTemplateToggle ?? "",
templateDefaultVariables: db.templateDefaultVariables ?? "",
moduleIntergration: db.moduleIntergration ?? "",
}
db.botPresets = pres
setDatabase(db)
@@ -1338,6 +1341,7 @@ export function setPreset(db:Database, newPres: botPreset){
db.useInstructPrompt = newPres.useInstructPrompt ?? false
db.customPromptTemplateToggle = newPres.customPromptTemplateToggle ?? ''
db.templateDefaultVariables = newPres.templateDefaultVariables ?? ''
db.moduleIntergration = newPres.moduleIntergration ?? ''
return db
}