ComfyUI Node
Ollama Prompt Enhancer
Expands a short prompt with a local Ollama model via POST /api/generate. If Ollama cannot be reached or returns nothing, it uses fixed style tags and reports that in the source output.
Ollama Prompt Enhancer
- enhanced_prompt
- negative_prompt
- source
◄short_prompta cat►
◄stylerealistic►
◄max_tokens128►
◄ollama_urlhttp://localhost:11434►
◄model_namellama3►
CategoryParametric/Agents
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| short_prompt | STRING | a cat | Short prompt. Default a cat. |
| style | COMBO | realistic | Style. One of 4 choices. Default realistic. |
| max_tokens | INT | 12816–2048 | Max tokens. From 16 to 2048. Default 128. |
| ollama_urlopt | STRING | http://localhost:11434 | Ollama url. Default http://localhost:11434. |
| model_nameopt | STRING | llama3 | Model name. Default llama3. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| enhanced_prompt | STRING | — |
| negative_prompt | STRING | — |
| source | STRING | — |