ComfyUI > Nodes > ComfyUI-GLM4 > GLM文本对话

ComfyUI Node: GLM文本对话

Class Name

GLM_Text_Chat

Category
GLM
Author
msola-ht (Account age: 2655days)
Extension
ComfyUI-GLM4
Latest Updated
2026-03-17
Github Stars
0.13K

How to Install ComfyUI-GLM4

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

GLM文本对话 Description

Facilitates text interactions using GLM-4 in ComfyUI, with customizable prompts and dynamic responses.

GLM文本对话:

The GLM_Text_Chat node is designed to facilitate text-based interactions using the GLM-4 model within the ComfyUI environment. This node allows you to engage in conversational exchanges by leveraging the capabilities of the GLM-4 model, which is known for its advanced natural language processing abilities. It supports multiple preset system prompts that can be loaded from a specially formatted TXT file, providing flexibility and customization in dialogue management. The node also includes a seed parameter, which, when set to zero, generates a random seed internally, ensuring variability in responses. This feature is particularly beneficial for creating dynamic and varied conversational outputs, making it a valuable tool for AI artists looking to incorporate sophisticated text interactions into their projects.

GLM文本对话 Input Parameters:

seed

The seed parameter is used to control the randomness of the text generation process. When set to zero, the node generates a random seed internally, which can lead to different outputs for the same input, adding variability to the conversation. This parameter does not have a specified minimum or maximum value, but setting it to zero is a common practice to ensure diverse responses.

GLM文本对话 Output Parameters:

response_text

The response_text output parameter provides the text generated by the GLM-4 model in response to the input message. This output is crucial as it represents the conversational reply generated by the model, which can be used in various applications such as chatbots, interactive storytelling, or any scenario requiring AI-driven dialogue.

GLM文本对话 Usage Tips:

  • To achieve varied and dynamic responses, set the seed parameter to zero, allowing the node to generate a random seed internally.
  • Utilize the preset system prompts to guide the conversation in a specific direction or to maintain consistency in the dialogue style.

GLM文本对话 Common Errors and Solutions:

GLM-4V API 调用失败: <error_details>

  • Explanation: This error occurs when there is a failure in calling the GLM-4V API, possibly due to network issues or incorrect API configurations.
  • Solution: Check your network connection and ensure that the API configurations are correct. If the problem persists, consult the API documentation or support for further assistance.

提示词文件 '<file_name>' 内容为空或格式不正确,使用内置默认提示词。

  • Explanation: This error indicates that the specified prompt file is either empty or not formatted correctly, leading the node to revert to using built-in default prompts.
  • Solution: Verify the format and content of the prompt file. Ensure it follows the required structure and contains valid prompts. If necessary, refer to the documentation for the correct file format.

GLM文本对话 Related Nodes

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

GLM文本对话