mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix IPAdapterConfigV2 schema weight
This commit is contained in:
parent
6e8b7f9421
commit
bfad814862
@ -237,7 +237,7 @@ export const isIPMethodV2 = (v: unknown): v is IPMethodV2 => zIPMethodV2.safePar
|
|||||||
export const zIPAdapterConfigV2 = z.object({
|
export const zIPAdapterConfigV2 = z.object({
|
||||||
id: zId,
|
id: zId,
|
||||||
type: z.literal('ip_adapter'),
|
type: z.literal('ip_adapter'),
|
||||||
weight: z.number().gte(0).lte(0),
|
weight: z.number().gte(0).lte(1),
|
||||||
method: zIPMethodV2,
|
method: zIPMethodV2,
|
||||||
image: zImageWithDims.nullable(),
|
image: zImageWithDims.nullable(),
|
||||||
model: zModelIdentifierField.nullable(),
|
model: zModelIdentifierField.nullable(),
|
||||||
|
Loading…
Reference in New Issue
Block a user