Nodes/ComfyUI-PDiD-LLM-Nodes/Apply Chat Template
ComfyUI Node

Apply Chat Template

A ComfyUI node in LLM with 7 inputs and 4 outputs.

By power88·Created 9 months ago·Updated 3 months ago· 0
Apply Chat Template
  • image
  • video
  • audio
  • extra_parameters
  • image
  • video
  • audio
  • formatted_prompt
system_promptYou are a helpful assistant.
user_prompt
chat_template
CategoryLLM

Inputs (7)

NameTypeDefaultDescription
system_promptSTRINGYou are a helpful assistant.
user_promptSTRING
chat_templateSTRINGPut chat template here. Can be found in original repo of model in huggingface.
imageoptIMAGE
videooptIMAGEVideo frames as image batch.
audiooptAUDIO
extra_parametersoptEXTRA_PARAMETERSThe extra parameters for the LLM model.

Outputs (4)

NameTypeDescription
imageIMAGE
videoIMAGE
audioAUDIO
formatted_promptSTRING