[feat] nai improvements, better authornote
This commit is contained in:
@@ -293,4 +293,20 @@ export async function getEmotion(db:Database,chaEmotion:{[key:string]: [string,
|
||||
}
|
||||
}
|
||||
return datas
|
||||
}
|
||||
|
||||
export function getAuthorNoteDefaultText(){
|
||||
const db = get(DataBase)
|
||||
const template = db.promptTemplate
|
||||
if(!template){
|
||||
return ''
|
||||
}
|
||||
|
||||
for(const v of template){
|
||||
if(v.type === 'authornote'){
|
||||
return v.defaultText ?? ''
|
||||
}
|
||||
}
|
||||
return ''
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user