ComfyUI Node

API Chat

A ComfyUI node in LLM with 10 inputs and 1 output.

By power88·Created 9 months ago·Updated 3 months ago· 0
API Chat
  • client_info
  • images
  • extra_parameters
  • response
system_promptYou are a helpful assistant.
user_promptHello world!
temperature1.0
top_p0.9
top_k40
max_tokens1024
unload_model_after_chattrue
CategoryLLM

Inputs (10)

NameTypeDefaultDescription
client_infoCLIENT_INFOThe LLM client info.
system_promptSTRINGYou are a helpful assistant.The system prompt for the LLM model.
user_promptSTRINGHello world!The system prompt for the LLM model.
temperatureFLOAT1.00–2The temperature parameter for the LLM model.
top_pFLOAT0.90–2The top_p parameter for the LLM model.
top_kINT401–99The top_k parameter for the LLM model. Only Ollama is supported.
max_tokensINT10241–1000000The max_tokens for the LLM model.
unload_model_after_chatBOOLEANtrueWhether to unload the LLM model after the chat. Only Ollama is supported.
imagesoptIMAGEThe images for the LLM model.
extra_parametersoptEXTRA_PARAMETERSThe extra parameters for the LLM model.

Outputs (1)

NameTypeDescription
responseSTRING