mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): fix IPAdapterConfigV2 schema weight
This commit is contained in:
committed by
Kent Keirsey
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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user