GLHF is a ComfyUI node that facilitates seamless interaction with the GLHF chat API. Designed to enhance user experience, it supports multiple language models, web search integration, and customizable instructions, making it a powerful extension for AI-driven workflows.
GLHF is a ComfyUI node that facilitates seamless interaction with the GLHF chat API. Designed to enhance user experience, it supports multiple language models, web search integration, and customizable instructions, making it a powerful extension for AI-driven workflows.
Interact with a range of language models to suit diverse use cases. Configure models via the config.json
file for flexibility and control over model selection.
Enhance your prompts with real-time information by enabling web search. The node:
Here are examples of the web search feature in action:
Customize the behavior of the node by adding .txt
files to the custom_instructions
folder. This allows you to tailor the responses based on specific requirements or use cases.
Here are examples of custom instructions:
The node maintains chat history, enabling contextual and coherent multi-turn conversations. You can enable or disable this feature through the keep_context
option for tailored interactions.
Here are examples of context keeping:
Utilize uncensored models for unrestricted creative applications.
Monitor your interactions and debug effortlessly with detailed console logs that display request and response details directly in the ComfyUI console.
config.json
file located in the ComfyUI-GLHF directory.{
"baseurl": "https://glhf.chat/api/openai/v1",
"api_key": "YOUR_API_KEY",
"models": {
"Llama3.3 70b": "hf:meta-llama/Llama-3.3-70B-Instruct",
"QWQ 32b": "hf:Qwen/QwQ-32B-Preview",
"Llama3.3 70b Uncensored": "hf:huihui-ai/Llama-3.3-70B-Instruct-abliterated"
}
}
You can also add more models to the models section of the config.json
file.
custom_nodes
folder inside your ComfyUI directory.git clone https://github.com/fairy-root/ComfyUI-GLHF.git
ComfyUI\python_embeded
folder../python.exe -s -m pip install openai requests bs4 googlesearch-python
The GLHF Chat
with Advanced Web and Link Search node offers extensive customization through the following parameters:
Custom instructions can significantly enhance the node’s flexibility. To create a new instruction:
1- Navigate to the custom_instructions
folder in the ComfyUI-GLHF directory.
2- Create a .txt
file, using a descriptive name for the instruction.
3- Add the desired instructions to the file.
Respond to queries as a Python expert. Provide detailed explanations and examples where applicable.
3- The new instruction will appear in the custom_instruction dropdown menu within the node settings after restarting ComfyUI.Your support is appreciated:
TGCVbSSJbwL5nyXqMuKY839LJ5q5ygn2uS
13GS1ixn2uQAmFQkte6qA5p1MQtMXre6MT
0xdbc7a7dafbb333773a5866ccf7a74da15ee654cc
Ldb6SDxUMEdYQQfRhSA3zi4dCUtfUdsPou
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or features.