Add support for NovelAI V4 model and configuration settings

This commit is contained in:
YH_KIM
2025-04-12 23:29:45 +09:00
parent 4c47480b7e
commit 668b8d171c
3 changed files with 198 additions and 149 deletions

View File

@@ -264,7 +264,26 @@ export function setDatabase(data:Database){
image:"",
refimage:"",
InfoExtracted:1,
RefStrength:0.4
RefStrength:0.4,
//add 4
autoSmea:false,
legacy_uc:false,
use_coords:false,
v4_prompt:{
caption:{
base_caption:'',
char_captions:[]
},
use_coords:false,
use_order:true
},
v4_negative_prompt:{
caption:{
base_caption:'',
char_captions:[]
},
legacy_uc:false,
}
}
}
if(checkNullish(data.customTextTheme)){
@@ -1363,7 +1382,7 @@ interface sdConfig{
hr_upscaler:string
}
interface NAIImgConfig{
export interface NAIImgConfig{
width:number,
height:number,
sampler:string,
@@ -1377,8 +1396,43 @@ interface NAIImgConfig{
refimage:string,
InfoExtracted:number,
RefStrength:number
//add 4
autoSmea:boolean,
use_coords:boolean,
legacy_uc: boolean,
v4_prompt:NAIImgConfigV4Prompt,
v4_negative_prompt:NAIImgConfigV4NegativePrompt,
}
//add 4
interface NAIImgConfigV4Prompt{
caption: NAIImgConfigV4Caption,
use_coords: boolean,
use_order: boolean
}
//add 4
interface NAIImgConfigV4NegativePrompt{
caption: NAIImgConfigV4Caption,
legacy_uc: boolean
}
//add 4
interface NAIImgConfigV4Caption{
base_caption: string,
char_captions: NAIImgConfigV4CharCaption[]
}
//add 4
interface NAIImgConfigV4CharCaption{
char_caption: string,
centers:
{
x: number,
y: number
}[]
}
interface ComfyConfig{
workflow:string,
posNodeID: string,