fix: Missing VAE Loader stuff

This commit is contained in:
blessedcoolant 2023-07-01 10:06:18 +12:00 committed by psychedelicious
parent 6c6299ce49
commit 630f3c8b0b
3 changed files with 9 additions and 1 deletions

View File

@ -17,6 +17,7 @@ export const FIELD_TYPE_MAP: Record<string, FieldType> = {
ClipField: 'clip',
VaeField: 'vae',
model: 'model',
vae_model: 'vae_model',
array: 'array',
item: 'item',
ColorField: 'color',
@ -116,6 +117,12 @@ export const FIELDS: Record<FieldType, FieldUIConfig> = {
title: 'Model',
description: 'Models are models.',
},
vae_model: {
color: 'teal',
colorCssVar: getColorTokenCssVariable('teal'),
title: 'Model',
description: 'Models are models.',
},
array: {
color: 'gray',
colorCssVar: getColorTokenCssVariable('gray'),

View File

@ -1,4 +1,4 @@
import { BaseModelType } from 'services/api/types';
import { BaseModelType, VAEModelField } from 'services/api/types';
/**
* Crudely converts a model id to a main model field

View File

@ -34,6 +34,7 @@ export type OffsetPaginatedResults_ImageDTO_ =
export type ModelType = S<'ModelType'>;
export type BaseModelType = S<'BaseModelType'>;
export type MainModelField = S<'MainModelField'>;
export type VAEModelField = S<'VAEModelField'>;
export type ModelsList = S<'ModelsList'>;
// Graphs