chore: Rebuild API - base_model and type added

This commit is contained in:
blessedcoolant
2023-06-18 07:50:28 +12:00
parent dc669d1447
commit 24673fd859
9 changed files with 41 additions and 1 deletions

View File

@ -2,9 +2,14 @@
/* tslint:disable */
/* eslint-disable */
import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError';
import type { ModelType } from './ModelType';
export type ControlNetModelConfig = {
name: string;
base_model: BaseModelType;
type: ModelType;
path: string;
description?: string;
format: ('checkpoint' | 'diffusers');

View File

@ -2,9 +2,14 @@
/* tslint:disable */
/* eslint-disable */
import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError';
import type { ModelType } from './ModelType';
export type LoRAModelConfig = {
name: string;
base_model: BaseModelType;
type: ModelType;
path: string;
description?: string;
format: ('lycoris' | 'diffusers');

View File

@ -12,5 +12,5 @@ import type { TextualInversionModelConfig } from './TextualInversionModelConfig'
import type { VaeModelConfig } from './VaeModelConfig';
export type ModelsList = {
models: Record<string, Record<string, Record<string, (StableDiffusion1ModelDiffusersConfig | StableDiffusion2ModelCheckpointConfig | TextualInversionModelConfig | ControlNetModelConfig | VaeModelConfig | StableDiffusion2ModelDiffusersConfig | LoRAModelConfig | StableDiffusion1ModelCheckpointConfig)>>>;
models: Record<string, Record<string, Record<string, (TextualInversionModelConfig | StableDiffusion2ModelDiffusersConfig | ControlNetModelConfig | StableDiffusion2ModelCheckpointConfig | StableDiffusion1ModelCheckpointConfig | VaeModelConfig | StableDiffusion1ModelDiffusersConfig | LoRAModelConfig)>>>;
};

View File

@ -2,10 +2,15 @@
/* tslint:disable */
/* eslint-disable */
import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError';
import type { ModelType } from './ModelType';
import type { ModelVariantType } from './ModelVariantType';
export type StableDiffusion1ModelCheckpointConfig = {
name: string;
base_model: BaseModelType;
type: ModelType;
path: string;
description?: string;
format: 'checkpoint';

View File

@ -2,10 +2,15 @@
/* tslint:disable */
/* eslint-disable */
import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError';
import type { ModelType } from './ModelType';
import type { ModelVariantType } from './ModelVariantType';
export type StableDiffusion1ModelDiffusersConfig = {
name: string;
base_model: BaseModelType;
type: ModelType;
path: string;
description?: string;
format: 'diffusers';

View File

@ -2,11 +2,16 @@
/* tslint:disable */
/* eslint-disable */
import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError';
import type { ModelType } from './ModelType';
import type { ModelVariantType } from './ModelVariantType';
import type { SchedulerPredictionType } from './SchedulerPredictionType';
export type StableDiffusion2ModelCheckpointConfig = {
name: string;
base_model: BaseModelType;
type: ModelType;
path: string;
description?: string;
format: 'checkpoint';

View File

@ -2,11 +2,16 @@
/* tslint:disable */
/* eslint-disable */
import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError';
import type { ModelType } from './ModelType';
import type { ModelVariantType } from './ModelVariantType';
import type { SchedulerPredictionType } from './SchedulerPredictionType';
export type StableDiffusion2ModelDiffusersConfig = {
name: string;
base_model: BaseModelType;
type: ModelType;
path: string;
description?: string;
format: 'diffusers';

View File

@ -2,9 +2,14 @@
/* tslint:disable */
/* eslint-disable */
import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError';
import type { ModelType } from './ModelType';
export type TextualInversionModelConfig = {
name: string;
base_model: BaseModelType;
type: ModelType;
path: string;
description?: string;
format: null;

View File

@ -2,9 +2,14 @@
/* tslint:disable */
/* eslint-disable */
import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError';
import type { ModelType } from './ModelType';
export type VaeModelConfig = {
name: string;
base_model: BaseModelType;
type: ModelType;
path: string;
description?: string;
format: ('checkpoint' | 'diffusers');