ComfyUI Node
FunUI Enhance Prompt
Rewrite the finished prompt with a language model before it is encoded. Off, or on any failure, the prompt passes through unchanged.
FunUI Enhance Prompt
- clip
- image
- enhanced
- status
◄text►
◄enabledfalse►
◄instructions►
◄max_length400►
◄greedyfalse►
◄temperature0.70►
◄top_p0.92►
◄top_k50►
◄min_p0.05►
◄repetition_penalty1.30►
◄presence_penalty0.00►
◄seed0►
◄thinkingfalse►
◄encoder_file►
◄encoder_familystable_diffusion►
◄use_imagetrue►
◄shortcuts►
◄lorebooks►
◄reference_intro►
◄chat►
CategoryFunUI/Conditioning
Inputs (22)
| Name | Type | Default | Description |
|---|---|---|---|
| clip | CLIP | A text encoder that can generate text (Gemma, Qwen...). | |
| text | STRING | — | |
| enabled | BOOLEAN | false | Off: the prompt passes through and the model is not run. |
| instructionsopt | STRING | What the model is told to do. Empty uses the built-in instructions. | |
| max_lengthopt | INT | 40032–4096 | The longest rewrite, in tokens. |
| greedyopt | BOOLEAN | false | Always the likeliest word. Hides the sampling dials below. |
| temperatureopt | FLOAT | 0.700–2 | — |
| top_popt | FLOAT | 0.920–1 | — |
| top_kopt | INT | 501–1000 | top_p and min_p only apply while top_k is above 0. |
| min_popt | FLOAT | 0.050–1 | — |
| repetition_penaltyopt | FLOAT | 1.301–2 | — |
| presence_penaltyopt | FLOAT | 0.000–2 | — |
| seedopt | INT | 00–18446744073709550000 | 0 = a fresh rewrite every run. Any other number repeats the same rewrite. |
| thinkingopt | BOOLEAN | false | Let a thinking model reason first. Its reasoning eats the token budget. |
| encoder_fileopt | STRING | A text encoder file just for rewriting (Gemma, Qwen...). Empty uses the model's own encoder. | |
| encoder_familyopt | STRING | stable_diffusion | Which family that file is for. Only used with an encoder file. |
| imageopt | IMAGE | Shown to the model alongside the prompt. | |
| use_imageopt | BOOLEAN | true | Send the picture (when one is connected) to the model. |
| shortcutsopt | STRING | Shortcut names to hand the model as reference, one per line. | |
| lorebooksopt | STRING | Paths to lorebook or shortcuts JSON files, one per line. | |
| reference_introopt | STRING | The line above the reference entries. Empty uses the built-in one. | |
| chatopt | STRING | Your comments on earlier rewrites (Composer > Chat). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| enhanced | STRING | — |
| status | STRING | — |