Update frontend to support regional prompts with FLUX in the canvas.

This commit is contained in:
Ryan Dick
2024-11-27 17:04:35 +00:00
parent b54463d294
commit 9a7b000995
5 changed files with 149 additions and 67 deletions

View File

@@ -6564,6 +6564,11 @@ export type components = {
* @description The name of conditioning tensor
*/
conditioning_name: string;
/**
* @description The mask associated with this conditioning tensor. Excluded regions should be set to False, included regions should be set to True.
* @default null
*/
mask?: components["schemas"]["TensorField"] | null;
};
/**
* FluxConditioningOutput
@@ -6771,15 +6776,17 @@ export type components = {
*/
transformer?: components["schemas"]["TransformerField"];
/**
* Positive Text Conditioning
* @description Positive conditioning tensor
* @default null
*/
positive_text_conditioning?: components["schemas"]["FluxConditioningField"];
positive_text_conditioning?: components["schemas"]["FluxConditioningField"] | components["schemas"]["FluxConditioningField"][];
/**
* Negative Text Conditioning
* @description Negative conditioning tensor. Can be None if cfg_scale is 1.0.
* @default null
*/
negative_text_conditioning?: components["schemas"]["FluxConditioningField"] | null;
negative_text_conditioning?: components["schemas"]["FluxConditioningField"] | components["schemas"]["FluxConditioningField"][] | null;
/**
* CFG Scale
* @description Classifier-Free Guidance scale
@@ -7133,6 +7140,11 @@ export type components = {
* @default null
*/
prompt?: string;
/**
* @description A mask defining the region that this conditioning prompt applies to.
* @default null
*/
mask?: components["schemas"]["TensorField"] | null;
/**
* type
* @default flux_text_encoder