ComfyUI Node
π Categorized Prompt Formatter
A ComfyUI node in text/filtering with 12 inputs and 2 outputs.
π Categorized Prompt Formatter
- formatted_prompt
- rejected_prompt
βpromptβΊ
βcategory_definition_fileprompt_categories.yamlβΊ
βoutput_template<|quality|>, <|character|>, <|clothing|>, <|setting|>βΊ
βinput_delimiter,βΊ
βoutput_delimiter, βΊ
βstrip_whitespacetrueβΊ
βcase_sensitive_matchingfalseβΊ
βhandle_weightstrueβΊ
βmatch_underscores_spacestrueβΊ
βdisable_duplicatesfalseβΊ
βunmatched_tag_handlingdiscardβΊ
βseed-1βΊ
Categorytext/filtering
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | β | |
| category_definition_file | STRING | prompt_categories.yaml | β |
| output_template | STRING | <|quality|>, <|character|>, <|clothing|>, <|setting|> | β |
| input_delimiteropt | STRING | , | β |
| output_delimiteropt | STRING | , | β |
| strip_whitespaceopt | BOOLEAN | true | β |
| case_sensitive_matchingopt | BOOLEAN | false | β |
| handle_weightsopt | BOOLEAN | true | β |
| match_underscores_spacesopt | BOOLEAN | true | β |
| disable_duplicatesopt | BOOLEAN | false | β |
| unmatched_tag_handlingopt | COMBO | discard | 3 options: discard, append_end, output_separately |
| seedopt | INT | -1-1β18446744073709550000 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| formatted_prompt | STRING | β |
| rejected_prompt | STRING | β |