Add 4o 1120

This commit is contained in:
kwaroran
2024-11-21 15:38:04 +09:00
parent 1102899c26
commit e895008814
5 changed files with 14 additions and 17 deletions

View File

@@ -1136,16 +1136,20 @@ async function checkNewFormat(): Promise<void> {
});
db.modules = (db.modules ?? []).map((v) => {
if (v.lorebook) {
if (v?.lorebook) {
v.lorebook = updateLorebooks(v.lorebook);
}
return v
})
}).filter((v) => {
return v !== null && v !== undefined;
});
db.personas = (db.personas ?? []).map((v) => {
v.id ??= uuidv4()
return v
})
}).filter((v) => {
return v !== null && v !== undefined;
});
if(!db.formatversion){
function checkParge(data:string){