Skip to content

Commit a01cd7c

Browse files
fix(ui): add chatgpt-4o to zod schemas that need to match autogenerated types
1 parent c54afd6 commit a01cd7c

File tree

1 file changed

+2
-2
lines changed
  • invokeai/frontend/web/src/features/nodes/types

1 file changed

+2
-2
lines changed

invokeai/frontend/web/src/features/nodes/types/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ export type SchedulerField = z.infer<typeof zSchedulerField>;
6666
// #endregion
6767

6868
// #region Model-related schemas
69-
const zBaseModel = z.enum(['any', 'sd-1', 'sd-2', 'sd-3', 'sdxl', 'sdxl-refiner', 'flux', 'cogview4', 'imagen3']);
69+
const zBaseModel = z.enum(['any', 'sd-1', 'sd-2', 'sd-3', 'sdxl', 'sdxl-refiner', 'flux', 'cogview4', 'imagen3', 'chatgpt-4o']);
7070
export type BaseModelType = z.infer<typeof zBaseModel>;
71-
export const zMainModelBase = z.enum(['sd-1', 'sd-2', 'sd-3', 'sdxl', 'flux', 'cogview4', 'imagen3']);
71+
export const zMainModelBase = z.enum(['sd-1', 'sd-2', 'sd-3', 'sdxl', 'flux', 'cogview4', 'imagen3', 'chatgpt-4o']);
7272
export type MainModelBase = z.infer<typeof zMainModelBase>;
7373
export const isMainModelBase = (base: unknown): base is MainModelBase => zMainModelBase.safeParse(base).success;
7474
const zModelType = z.enum([

0 commit comments

Comments
 (0)