From c63390f6e1c8c7a9e5a57b23506e8b73abfa82f6 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Tue, 5 Sep 2023 12:29:05 +1200 Subject: [PATCH] fix: Temporarily update the ControlField zod model While we decide how to go ahead with this . --- invokeai/frontend/web/src/features/nodes/types/types.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/nodes/types/types.ts b/invokeai/frontend/web/src/features/nodes/types/types.ts index 402ef4ac7a..ea416aa8ca 100644 --- a/invokeai/frontend/web/src/features/nodes/types/types.ts +++ b/invokeai/frontend/web/src/features/nodes/types/types.ts @@ -352,8 +352,11 @@ export const zControlNetModel = zModelIdentifier; export type ControlNetModel = z.infer; export const zControlField = z.object({ + control_type: z.enum(['ControlNet', 'IP-Adapter', 'T2I-Adapter']).optional(), image: zImageField, - control_model: zControlNetModel, + control_model: zControlNetModel.optional(), + ip_adapter_model: z.string().optional(), + image_encoder_model: z.string().optional(), control_weight: z.union([z.number(), z.array(z.number())]).optional(), begin_step_percent: z.number().optional(), end_step_percent: z.number().optional(),