Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > civitai-comfy-nodes > Civitai Chat Completion

ComfyUI Node: Civitai Chat Completion

Class Name

CivitaiChatCompletion

Category
Civitai/Text
Author
civitai (Account age: 1322days)
Extension
civitai-comfy-nodes
Latest Updated
2026-06-18
Github Stars
0.02K

How to Install civitai-comfy-nodes

Install this extension via the ComfyUI Manager by searching for civitai-comfy-nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter civitai-comfy-nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Civitai Chat Completion Description

Facilitates chat interactions with advanced language models for dynamic responses in Civitai Orchestration system.

Civitai Chat Completion:

CivitaiChatCompletion is a powerful node designed to facilitate chat-based interactions using the Civitai Orchestration system. This node is particularly useful for generating conversational responses by leveraging advanced language models. It is tailored to handle complex chat scenarios by processing input messages and generating coherent and contextually relevant replies. The node's primary goal is to streamline the creation of chat applications by providing a robust framework for managing dialogue flows, making it an essential tool for AI artists looking to integrate conversational AI into their projects. By utilizing this node, you can enhance user engagement through dynamic and intelligent chat interactions.

Civitai Chat Completion Input Parameters:

model

The model parameter specifies the language model to be used for generating chat completions. It determines the underlying AI model that will process the input messages and generate responses. The choice of model can significantly impact the quality and style of the generated text. The default value is typically set to a widely-used model like openai/gpt-oss-120b, but you can select other models based on your specific needs.

messages_json

The messages_json parameter is a JSON-formatted string that contains the conversation history or the input messages for the chat completion. This parameter is crucial as it provides the context needed for the model to generate relevant and coherent responses. Properly structuring the messages in JSON format ensures that the model understands the conversation flow.

temperature

The temperature parameter controls the randomness of the generated responses. A higher temperature value (up to 2.0) results in more diverse and creative outputs, while a lower value (down to 0.0) makes the responses more deterministic and focused. The default value is 1.0, providing a balance between creativity and coherence.

top_p

The top_p parameter, also known as nucleus sampling, determines the cumulative probability threshold for token selection. It allows the model to consider only the most probable tokens, enhancing the quality of the generated text. The value ranges from 0.0 to 1.0, with higher values allowing for more diverse outputs.

max_tokens

The max_tokens parameter sets the maximum number of tokens that the model can generate in a single response. This parameter helps control the length of the output, ensuring that it fits within the desired constraints. The default value is 1024, but it can be adjusted based on the specific requirements of your application.

n

The n parameter specifies the number of response variations to generate. By setting this parameter, you can obtain multiple potential responses for a given input, allowing you to choose the most suitable one. This is particularly useful for applications that require diverse outputs.

stop_json

The stop_json parameter is a JSON-formatted string that defines the stopping criteria for the generated text. It allows you to specify certain tokens or sequences that, when encountered, will halt the generation process. This is useful for controlling the structure and flow of the conversation.

presence_penalty

The presence_penalty parameter adjusts the likelihood of the model introducing new topics in the conversation. A higher value encourages the model to explore new ideas, while a lower value keeps the conversation focused on existing topics. This parameter helps balance creativity and relevance.

frequency_penalty

The frequency_penalty parameter influences the repetition of tokens in the generated text. By setting this parameter, you can reduce the likelihood of repetitive phrases, ensuring more varied and engaging responses. It is particularly useful for maintaining the quality of longer conversations.

seed

The seed parameter allows you to set a specific seed value for the random number generator, ensuring reproducibility of the generated responses. This is useful for debugging and testing purposes, as it allows you to obtain consistent outputs across different runs.

user

The user parameter is a string that represents the user interacting with the chat system. It can be used to personalize the conversation or track user-specific interactions. This parameter helps tailor the chat experience to individual users.

tools_json

The tools_json parameter is a JSON-formatted string that specifies additional tools or resources that the model can use during the chat completion process. This can include external APIs, databases, or other resources that enhance the model's capabilities.

tool_choice_json

The tool_choice_json parameter is a JSON-formatted string that defines the selection criteria for the tools specified in tools_json. It allows you to control which tools are used in specific scenarios, optimizing the model's performance for particular tasks.

modalities_json

The modalities_json parameter is a JSON-formatted string that describes the different modalities (e.g., text, image) involved in the chat interaction. This parameter helps the model understand the context and format of the input data, ensuring accurate and relevant responses.

image_config_json

The image_config_json parameter is a JSON-formatted string that provides configuration settings for handling image data in the chat interaction. It allows you to specify how images should be processed and integrated into the conversation, enhancing the multimodal capabilities of the node.

response_format_json

The response_format_json parameter is a JSON-formatted string that defines the desired format of the generated responses. This parameter allows you to customize the structure and style of the output, ensuring that it meets the specific requirements of your application.

Civitai Chat Completion Output Parameters:

id

The id parameter is a unique identifier for the chat completion request. It helps track and manage individual interactions, ensuring that each response is correctly associated with its corresponding input.

object

The object parameter indicates the type of object returned by the chat completion process. It provides context about the nature of the response, helping you understand the structure and content of the output.

created

The created parameter records the timestamp of when the chat completion request was processed. This information is useful for logging and tracking the timing of interactions, allowing you to analyze response times and system performance.

model

The model parameter in the output indicates the specific language model used to generate the response. It provides transparency about the underlying AI model, helping you understand the source of the generated text.

choices

The choices parameter contains the generated response(s) from the chat completion process. It provides the actual text output, allowing you to review and utilize the generated content in your application.

usage

The usage parameter provides information about the resources consumed during the chat completion process. This includes details about token usage and other relevant metrics, helping you monitor and optimize system performance.

system_fingerprint

The system_fingerprint parameter is a unique identifier for the system configuration used during the chat completion process. It helps ensure consistency and reproducibility of results across different runs.

parsed

The parsed parameter contains the parsed version of the generated response, providing a structured representation of the output. This is useful for applications that require further processing or analysis of the generated text.

workflow_id

The workflow_id parameter is an identifier for the specific workflow or process associated with the chat completion request. It helps track and manage complex interactions, ensuring that each response is correctly integrated into the overall system.

raw_json

The raw_json parameter contains the raw JSON response from the chat completion process. It provides a complete and unprocessed version of the output, allowing you to access all the details and metadata associated with the response.

Civitai Chat Completion Usage Tips:

  • Experiment with different temperature and top_p values to find the right balance between creativity and coherence for your specific application.
  • Use the max_tokens parameter to control the length of the generated responses, ensuring they fit within your desired constraints.
  • Leverage the tools_json and tool_choice_json parameters to enhance the model's capabilities by integrating external resources and tools.
  • Utilize the presence_penalty and frequency_penalty parameters to maintain the quality and diversity of the generated text, especially in longer conversations.

Civitai Chat Completion Common Errors and Solutions:

Invalid JSON format in messages_json

  • Explanation: This error occurs when the messages_json parameter contains improperly formatted JSON data.
  • Solution: Ensure that the JSON string is correctly structured and adheres to the JSON syntax rules. Use a JSON validator to check for errors.

Model not found

  • Explanation: This error indicates that the specified model parameter does not correspond to a valid or available language model.
  • Solution: Verify that the model name is correct and that the model is available in the system. Check for typos or unsupported models.

Exceeded max_tokens limit

  • Explanation: This error occurs when the generated response exceeds the specified max_tokens limit.
  • Solution: Increase the max_tokens value to accommodate longer responses or adjust the input to reduce the required output length.

Invalid parameter value

  • Explanation: This error arises when one or more input parameters have values outside their acceptable range.
  • Solution: Review the parameter values and ensure they fall within the specified minimum and maximum limits. Adjust the values accordingly.

Civitai Chat Completion Related Nodes

Go back to the extension to check out more related nodes.
civitai-comfy-nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Civitai Chat Completion