Nodes/ComfyUI-JSON-Prompt/LLM Output Formatting
ComfyUI Node

LLM Output Formatting

A ComfyUI node in Utils/Text with 5 inputs and 1 output.

By fr0nky0ng·Created 9 months ago·Updated 9 months ago· 5
LLM Output Formatting
    • cleaned_json_string
    llm_output
    include_quality_promptfalse
    include_negative_promptfalse
    use_single_quotesfalse
    no_quotation_marksfalse
    CategoryUtils/Text

    Inputs (5)

    NameTypeDefaultDescription
    llm_outputSTRING
    include_quality_promptBOOLEANfalse
    include_negative_promptBOOLEANfalse
    use_single_quotesBOOLEANfalseIf enabled, all double quotes in the final JSON will be replaced with single quotes (non-standard JSON)
    no_quotation_marksBOOLEANfalseIf enabled, all quotation marks (both double and single) around keys and values will be removed (produces non-JSON text, useful for some prompt templates)

    Outputs (1)

    NameTypeDescription
    cleaned_json_stringSTRING