mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Undo changes to the v2 dir of frontend types
This commit is contained in:
parent
c27d59baf7
commit
1f9bdd1a9a
@ -44,7 +44,7 @@ export const zSchedulerField = z.enum([
|
|||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
// #region Model-related schemas
|
// #region Model-related schemas
|
||||||
const zBaseModel = z.enum(['any', 'sd-1', 'sd-2', 'sdxl', 'sdxl-refiner', 'flux']);
|
const zBaseModel = z.enum(['any', 'sd-1', 'sd-2', 'sdxl', 'sdxl-refiner']);
|
||||||
const zModelName = z.string().min(3);
|
const zModelName = z.string().min(3);
|
||||||
export const zModelIdentifier = z.object({
|
export const zModelIdentifier = z.object({
|
||||||
model_name: zModelName,
|
model_name: zModelName,
|
||||||
|
@ -203,20 +203,6 @@ const zSDXLMainModelFieldOutputInstance = zFieldOutputInstanceBase.extend({
|
|||||||
});
|
});
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
// #region FluxMainModelField
|
|
||||||
const zFluxMainModelFieldType = zFieldTypeBase.extend({
|
|
||||||
name: z.literal('FluxMainModelField'),
|
|
||||||
});
|
|
||||||
const zFluxMainModelFieldValue = zMainModelFieldValue; // TODO: Narrow to SDXL models only.
|
|
||||||
const zFluxMainModelFieldInputInstance = zFieldInputInstanceBase.extend({
|
|
||||||
type: zFluxMainModelFieldType,
|
|
||||||
value: zFluxMainModelFieldValue,
|
|
||||||
});
|
|
||||||
const zFluxMainModelFieldOutputInstance = zFieldOutputInstanceBase.extend({
|
|
||||||
type: zFluxMainModelFieldType,
|
|
||||||
});
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region SDXLRefinerModelField
|
// #region SDXLRefinerModelField
|
||||||
const zSDXLRefinerModelFieldType = zFieldTypeBase.extend({
|
const zSDXLRefinerModelFieldType = zFieldTypeBase.extend({
|
||||||
name: z.literal('SDXLRefinerModelField'),
|
name: z.literal('SDXLRefinerModelField'),
|
||||||
@ -352,7 +338,6 @@ const zStatefulFieldType = z.union([
|
|||||||
zBoardFieldType,
|
zBoardFieldType,
|
||||||
zMainModelFieldType,
|
zMainModelFieldType,
|
||||||
zSDXLMainModelFieldType,
|
zSDXLMainModelFieldType,
|
||||||
zFluxMainModelFieldType,
|
|
||||||
zSDXLRefinerModelFieldType,
|
zSDXLRefinerModelFieldType,
|
||||||
zVAEModelFieldType,
|
zVAEModelFieldType,
|
||||||
zLoRAModelFieldType,
|
zLoRAModelFieldType,
|
||||||
@ -392,7 +377,6 @@ const zStatefulFieldInputInstance = z.union([
|
|||||||
zBoardFieldInputInstance,
|
zBoardFieldInputInstance,
|
||||||
zMainModelFieldInputInstance,
|
zMainModelFieldInputInstance,
|
||||||
zSDXLMainModelFieldInputInstance,
|
zSDXLMainModelFieldInputInstance,
|
||||||
zFluxMainModelFieldInputInstance,
|
|
||||||
zSDXLRefinerModelFieldInputInstance,
|
zSDXLRefinerModelFieldInputInstance,
|
||||||
zVAEModelFieldInputInstance,
|
zVAEModelFieldInputInstance,
|
||||||
zLoRAModelFieldInputInstance,
|
zLoRAModelFieldInputInstance,
|
||||||
@ -417,7 +401,6 @@ const zStatefulFieldOutputInstance = z.union([
|
|||||||
zBoardFieldOutputInstance,
|
zBoardFieldOutputInstance,
|
||||||
zMainModelFieldOutputInstance,
|
zMainModelFieldOutputInstance,
|
||||||
zSDXLMainModelFieldOutputInstance,
|
zSDXLMainModelFieldOutputInstance,
|
||||||
zFluxMainModelFieldOutputInstance,
|
|
||||||
zSDXLRefinerModelFieldOutputInstance,
|
zSDXLRefinerModelFieldOutputInstance,
|
||||||
zVAEModelFieldOutputInstance,
|
zVAEModelFieldOutputInstance,
|
||||||
zLoRAModelFieldOutputInstance,
|
zLoRAModelFieldOutputInstance,
|
||||||
|
Loading…
Reference in New Issue
Block a user