ComfyUI > Nodes > ComfyUI-LLMs-Toolkit > OpenAI Compatible Adapter

ComfyUI Node: OpenAI Compatible Adapter

Class Name

OpenAICompatibleLoader

Category
🚦ComfyUI_LLMs_Toolkit/LLM
Author
HuangYuChuh (Account age: 42days)
Extension
ComfyUI-LLMs-Toolkit
Latest Updated
2026-04-23
Github Stars
0.02K

How to Install ComfyUI-LLMs-Toolkit

Install this extension via the ComfyUI Manager by searching for ComfyUI-LLMs-Toolkit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LLMs-Toolkit 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

OpenAI Compatible Adapter Description

Facilitates seamless integration with OpenAI language models, acting as an adapter for data exchange.

OpenAI Compatible Adapter:

The OpenAICompatibleLoader is a specialized node designed to facilitate seamless integration with OpenAI's language models. Its primary purpose is to act as an adapter, enabling the smooth exchange of data between your application and OpenAI's API. This node is particularly beneficial for users who wish to leverage OpenAI's powerful language models without delving into the complexities of API management. By abstracting the intricacies of API interactions, the OpenAICompatibleLoader ensures that you can focus on crafting creative AI-driven solutions. It handles tasks such as logging usage, managing memory for conversation history, and gracefully managing errors, thereby enhancing the robustness and reliability of your AI applications.

OpenAI Compatible Adapter Input Parameters:

provider_name

The provider_name parameter specifies the name of the service provider you are interacting with. It is crucial for identifying the correct API endpoint and ensuring that requests are routed to the appropriate service. This parameter impacts the node's execution by determining the URL used for API calls. There are no specific minimum, maximum, or default values, but it should match one of the predefined provider names in the system.

actual_model

The actual_model parameter indicates the specific model you wish to use for processing your requests. This parameter is essential for tailoring the AI's responses to your needs, as different models may have varying capabilities and performance characteristics. There are no explicit minimum, maximum, or default values, but it should correspond to a valid model name supported by the provider.

enable_memory

The enable_memory parameter is a boolean flag that determines whether the node should store conversation history. When enabled, it allows the node to maintain context across interactions, which can be particularly useful for applications requiring continuity in dialogue. The default value is typically false, meaning memory is not stored unless explicitly enabled.

unique_id

The unique_id parameter serves as an identifier for the conversation or session. It is used in conjunction with enable_memory to track and store conversation history. This parameter is vital for applications that require session-based interactions, ensuring that each session's context is preserved. There are no specific minimum, maximum, or default values, but it should be unique for each session.

OpenAI Compatible Adapter Output Parameters:

response_content

The response_content parameter contains the text generated by the AI model in response to your input. This output is the primary result of the node's operation and is crucial for understanding the AI's interpretation and response to your query. It provides the content that you can use directly in your application or further process as needed.

reasoning_content

The reasoning_content parameter, if available, offers insights into the AI's reasoning process. This output can be valuable for applications that require transparency or explanation of the AI's decision-making. It helps users understand the logic behind the AI's responses, enhancing trust and interpretability.

input_tokens

The input_tokens parameter indicates the number of tokens used in the input prompt. This output is important for monitoring usage and managing costs, as many AI services charge based on the number of tokens processed. It provides a quantitative measure of the input size.

output_tokens

The output_tokens parameter reflects the number of tokens generated in the AI's response. Similar to input_tokens, this output is crucial for tracking usage and cost management. It helps you understand the complexity and length of the AI's response.

OpenAI Compatible Adapter Usage Tips:

  • Ensure that the provider_name and actual_model parameters are correctly set to match the desired service and model, as this will directly impact the quality and relevance of the AI's responses.
  • Consider enabling the enable_memory parameter for applications that require context retention across multiple interactions, as this can significantly enhance the user experience by maintaining continuity in conversations.

OpenAI Compatible Adapter Common Errors and Solutions:

Invalid provider name

  • Explanation: This error occurs when the provider_name parameter does not match any of the predefined provider names in the system.
  • Solution: Verify that the provider_name is correctly spelled and corresponds to a valid provider in the system's configuration.

Model not supported

  • Explanation: This error arises when the actual_model parameter is set to a model that is not supported by the specified provider.
  • Solution: Check the list of supported models for the chosen provider and ensure that the actual_model parameter is set to a valid model name.

Memory storage error

  • Explanation: This error can occur if there is an issue with storing conversation history when enable_memory is enabled.
  • Solution: Ensure that the unique_id is correctly set and that the system has sufficient resources to store conversation history. If the problem persists, consider disabling memory storage for troubleshooting.

OpenAI Compatible Adapter Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LLMs-Toolkit
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.

OpenAI Compatible Adapter