[fix] card not saving gen data
This commit is contained in:
@@ -350,6 +350,8 @@ async function importSpecv2(card:CharacterCardV2, img?:Uint8Array, mode?:'hub'|'
|
|||||||
extentions: ext ?? {},
|
extentions: ext ?? {},
|
||||||
largePortrait: data?.extensions?.risuai?.largePortrait ?? (!data?.extensions?.risuai),
|
largePortrait: data?.extensions?.risuai?.largePortrait ?? (!data?.extensions?.risuai),
|
||||||
lorePlus: data?.extensions?.risuai?.lorePlus ?? false,
|
lorePlus: data?.extensions?.risuai?.lorePlus ?? false,
|
||||||
|
inlayViewScreen: data?.extensions?.risuai?.inlayViewScreen ?? false,
|
||||||
|
newGenData: data?.extensions?.risuai?.newGenData ?? undefined,
|
||||||
}
|
}
|
||||||
|
|
||||||
db.characters.push(char)
|
db.characters.push(char)
|
||||||
@@ -438,6 +440,8 @@ async function createBaseV2(char:character) {
|
|||||||
virtualscript: char.virtualscript,
|
virtualscript: char.virtualscript,
|
||||||
largePortrait: char.largePortrait,
|
largePortrait: char.largePortrait,
|
||||||
lorePlus: char.lorePlus,
|
lorePlus: char.lorePlus,
|
||||||
|
inlayViewScreen: char.inlayViewScreen,
|
||||||
|
newGenData: char.newGenData,
|
||||||
},
|
},
|
||||||
depth_prompt: char.depth_prompt
|
depth_prompt: char.depth_prompt
|
||||||
}
|
}
|
||||||
@@ -721,6 +725,13 @@ type CharacterCardV2 = {
|
|||||||
virtualscript?:string
|
virtualscript?:string
|
||||||
largePortrait?:boolean
|
largePortrait?:boolean
|
||||||
lorePlus?:boolean
|
lorePlus?:boolean
|
||||||
|
inlayViewScreen?:boolean
|
||||||
|
newGenData?: {
|
||||||
|
prompt: string,
|
||||||
|
negative: string,
|
||||||
|
instructions: string,
|
||||||
|
emotionInstructions: string,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
depth_prompt?: { depth: number, prompt: string }
|
depth_prompt?: { depth: number, prompt: string }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user