forgot to convert prompt

This commit is contained in:
space-nuko
2023-05-18 20:26:24 -05:00
parent 6aeaa91f79
commit 3eb656d0df
3 changed files with 38 additions and 7 deletions

View File

@@ -108,6 +108,18 @@ const GroupDynamicThresholding = z.object({
})
export type ComfyBoxStdGroupDynamicThresholding = z.infer<typeof GroupDynamicThresholding>
const GroupAestheticEmbedding = z.object({
model_name: z.string(),
lr: z.number(),
slerp: z.boolean(),
slerp_angle: z.number(),
steps: z.number(),
positive: z.string(),
negative: z.string(),
weight: z.number(),
})
export type ComfyBoxStdGroupAestheticEmbedding = z.infer<typeof GroupAestheticEmbedding>
const group = (s: ZodTypeAny) => z.optional(z.array(s).nonempty());
const Parameters = z.object({
@@ -151,4 +163,11 @@ const ComfyBoxStdPrompt = z.object({
})
export default ComfyBoxStdPrompt
/*
* A standardized Stable Diffusion prompt and parameter format, to be used with
* an encompassing workflow. Aims to encompass an arbitrary number of parameter
* counts and types, so that most ComfyUI workflows can have parts of their
* prompts transferred between each other.
*/
export type ComfyBoxStdPrompt = z.infer<typeof ComfyBoxStdPrompt>