Nodes/lf-nodes/Local chat completions
ComfyUI Node

Local chat completions

A ComfyUI node in ✨ LF Nodes/LLM with 10 inputs and 2 outputs.

By lucafoscili·Created 2 years ago·Updated 2 days ago· 36
Local chat completions
  • image
  • ui_widget
  • text
  • response_json
◄prompt►
◄urlhttp://127.0.0.1:1234/v1/chat/completions►
◄system_message►
◄model►
◄temperature0.2►
◄max_tokens4096►
◄timeout120►
◄reasoningauto►
Category✨ LF Nodes/LLM

Inputs (10)

NameTypeDefaultDescription
promptSTRINGUser prompt sent to the local chat-completions endpoint.
urlSTRINGhttp://127.0.0.1:1234/v1/chat/completionsLocal OpenAI-compatible /v1/chat/completions or LM Studio native /api/v1/chat endpoint.
system_messageoptSTRINGOptional system instruction sent before the user prompt.
imageoptIMAGEOptional ordered reference images for a vision-capable model.
modeloptSTRINGOptional. Blank LM Studio native chat requests use the sole loaded LLM instance.
temperatureoptFLOAT0.20–2Controls response randomness.
max_tokensoptINT4096Response token budget, including any model reasoning.
timeoutoptINT120Request timeout in seconds.
ui_widgetoptLF_CODE—
reasoningoptCOMBOautoLM Studio native reasoning control. auto uses the model default; off/on require /api/v1/chat.

Outputs (2)

NameTypeDescription
textSTRINGExact answer text returned by the local model.
response_jsonJSONComplete JSON response returned by the endpoint.