A custom nodes for LLM API
Paketprofil
README
A collection of custom nodes for working with LLM APIs in ComfyUI.
It supports everything from API client management to direct ChatCompletions execution and workflow utilities.
Easily fetch and update the model list directly from your server with a single click of the Update model names button, loaded straight into the combo menu.
Quellen
3 QuellenQuellenauszüge
1 AuszugSource context: Repo bedovyy/ComfyUI-LLM-Helper
Supports real-time streaming for /chat/completions to display generation progress and handle user interrupts instantly. Built on an asynchronous architecture, allowing independent nodes to execute concurrently without blocking your workflow.
Configure only the parameters you need on the fly without the hassle of chaining multiple node relays.
cd ComfyUI/custom_nodes
git clone https://github.com/bedovyy/ComfyUI-LLM-Helper
cd ComfyUI-LLM-Helper
pip install -r requirements.txt
Or search and install ComfyUI-LLM-Helper on ComfyUI-Manager.
LLM:Clientbase_url and select API key from environment variables (loaded securely from ComfyUI/.env).model_name dropdown with available models, then use the outputs downstream.LLM:UnloadModel (llama.cpp)llama-server when running in router mode, freeing the model from memory.LLM:Unpack clientbase_url, api_key, and model_name from the LLM:Client node. This allows these values to be used with other OpenAI API nodes.Caution: Be aware that the
api_keyis output as a plain string.
LLM:ChatCompletions/chat/completions endpoint. Requests are streamed by default, allowing you to monitor progress or interrupt the process within the node. (Streaming can be disabled by adding stream: false to LLMCustomJsonOptions.)LLM:Messageuser, system, and assistant roles, custom roles can be selected. When an image is provided as input, an image ID is automatically assigned.LLM:Optionstemperature and top_p.LLMCustomJsonOptionsPreview as Text (storable)Preview as Text, but saves the value within the workflow, allowing the stored value to be retrieved and reused.LLM:ChatCompletions Simple (subgraph blueprint)Knoten in diesem Paket
8 Knoten (Plural)Verifiziert 18. Sept.
Verifiziert 18. Sept.