ComfyUI Node

LM Studio Chat

A ComfyUI node in LM Studio with 9 inputs and 3 outputs.

By WASasquatch·Created 9 months ago·Updated 5 months ago· 17
LM Studio Chat
  • model
  • images
  • options
  • responses
  • queries
  • conversation_name
conversation_choiceNew Conversation
conversation_name
modeone-by-one
system_prompt
user_prompt
temp_convofalse
CategoryLM Studio

Inputs (9)

NameTypeDefaultDescription
modelLMSTUDIO_MODELModel settings including model_id, temperature, max_tokens, seed, and image_max_size.
conversation_choiceCOMBONew ConversationPick an existing conversation or select 'New Conversation' to start a new one. Provide 'conversation_name' to name it, or leave blank to auto-generate.
conversation_nameSTRINGIf provided, creates/uses this conversation. If left blank, uses the dropdown selection.
modeCOMBOone-by-oneBatch sends all images in a single request; one-by-one sends one request per image.
system_promptSTRINGSystem instructions for the assistant's behavior. If the conversation has no prior messages, this will be set as the initial system message.
user_promptSTRINGUser message appended to the conversation and sent to the model on this run.
imagesoptIMAGEOptional images to include with the user message. Resized to image_max_size.
optionsoptLMSTUDIO_OPTIONSPer-request overrides (temperature, max_tokens, seed, top_p, top_k, penalties, stop). These take precedence over values from the Model node.
temp_convooptBOOLEANfalseStore/load conversation in a temporary workspace (cleared on startup). New conversations use temp when enabled.

Outputs (3)

NameTypeDescription
responsesSTRING
queriesSTRING
conversation_nameSTRING