ComfyUI Node
llama.cpp ADV++ Prompt
Runs multimodal generation with reusable prompt templates, token bans, and structured-output constraints.
llama.cpp ADV++ Prompt
- trigger
- token_ban
- image_1
- image_2
- image_3
- image_4
- image_5
- image_6
- image_7
- image_8
- image_9
- image_10
- structured_output
- connection
- response
- thinking
- success
◄templateEmpty►
◄prompt►
◄image_amount2►
◄model(use running model)►
◄server_url►
◄system_prompt►
◄enable_thinkingtrue►
◄max_tokens2048►
◄temperature0.70►
◄top_p0.90►
◄top_k40►
◄min_p0.05►
◄repeat_penalty1.10►
◄presence_penalty0.0►
◄frequency_penalty0.0►
◄seed0►
◄keep_contextfalse►
◄enable_chainingfalse►
◄enable_token_bantrue►
◄stop_sequences►
◄api_key_envLLAMACPP_API_KEY►
◄verify_tlstrue►
◄request_timeout300►
◄include_image_batchfalse►
CategoryLlamaCpp
Inputs (38)
| Name | Type | Default | Description |
|---|---|---|---|
| template | COMBO | Empty | Apply a bundled prompt template before generation. |
| prompt | STRING | The user prompt to send to the LLM | |
| image_amount | INT | 20–10 | Number of image input slots to show |
| modelopt | COMBO | (use running model) | Model for router mode, or the running direct model. |
| server_urlopt | STRING | Leave empty to use the server owned by this node pack. Attached endpoints are never implicitly stopped. | |
| system_promptopt | STRING | System prompt that defines model behavior. | |
| enable_thinkingopt | BOOLEAN | true | Request thinking/reasoning from compatible models. |
| max_tokensopt | INT | 20481–131072 | Maximum number of tokens to generate. |
| temperatureopt | FLOAT | 0.700–2 | Sampling randomness. Lower values are more deterministic. |
| top_popt | FLOAT | 0.900–1 | Keep tokens within this cumulative probability mass. |
| top_kopt | INT | 400–200 | Sample from the top K tokens. 0 disables top-k filtering. |
| min_popt | FLOAT | 0.050–1 | Discard tokens below this probability relative to the best token. |
| repeat_penaltyopt | FLOAT | 1.101–2 | Penalize recently repeated tokens. 1.0 disables the penalty. |
| presence_penaltyopt | FLOAT | 0.0-2–2 | Penalize tokens that have appeared at least once. |
| frequency_penaltyopt | FLOAT | 0.0-2–2 | Penalize tokens in proportion to how often they appeared. |
| seedopt | INT | 00–2147483647 | Random seed |
| keep_contextopt | BOOLEAN | false | Reuse a matching prompt-prefix KV cache. This is not chat history. |
| enable_chainingopt | BOOLEAN | false | Compatibility toggle. A connected trigger already controls ordering. |
| triggeropt | * | Optional dependency input used to sequence execution. | |
| token_banopt | LOGIT_BIAS | Token ban list from a llama.cpp Token Ban node. | |
| enable_token_banopt | BOOLEAN | true | Enable or disable the connected token ban list. |
| stop_sequencesopt | STRING | Stop sequences. JSON arrays preserve commas and whitespace. | |
| api_key_envopt | STRING | LLAMACPP_API_KEY | Environment variable containing the API key. The secret is not serialized. |
| verify_tlsopt | BOOLEAN | true | Verify HTTPS certificates. |
| request_timeoutopt | INT | 3001–86400 | Overall generation deadline in seconds. |
| include_image_batchopt | BOOLEAN | false | Send every image in each connected IMAGE batch. |
| image_1opt | IMAGE | Optional image 1. Visibility follows image_amount. | |
| image_2opt | IMAGE | Optional image 2. Visibility follows image_amount. | |
| image_3opt | IMAGE | Optional image 3. Visibility follows image_amount. | |
| image_4opt | IMAGE | Optional image 4. Visibility follows image_amount. | |
| image_5opt | IMAGE | Optional image 5. Visibility follows image_amount. | |
| image_6opt | IMAGE | Optional image 6. Visibility follows image_amount. | |
| image_7opt | IMAGE | Optional image 7. Visibility follows image_amount. | |
| image_8opt | IMAGE | Optional image 8. Visibility follows image_amount. | |
| image_9opt | IMAGE | Optional image 9. Visibility follows image_amount. | |
| image_10opt | IMAGE | Optional image 10. Visibility follows image_amount. | |
| structured_outputopt | STRUCTURED_OUTPUT | JSON schema, JSON object, or GBNF constraint. | |
| connectionopt | LLAMACPP_CONNECTION | Optional reusable local or remote connection profile. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| response | STRING | Generated multimodal or structured response text. |
| thinking | STRING | Reasoning content reported separately by compatible models. |
| success | BOOLEAN | Whether generation completed successfully. |