ComfyUI > Nodes > ComfyUI_Lam > ChatGLM3提示词生成工具

ComfyUI Node: ChatGLM3提示词生成工具

Class Name

GLM3Prompt

Category
lam
Author
Lam Yan (Account age: 3065days)
Extension
ComfyUI_Lam
Latest Updated
2025-03-06
Github Stars
0.02K

How to Install ComfyUI_Lam

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

ChatGLM3提示词生成工具 Description

Facilitates image prompt generation using ChatGLM3 model for AI artists to create detailed prompts efficiently.

ChatGLM3提示词生成工具:

The GLM3Prompt node is designed to facilitate the generation of image prompts by leveraging the capabilities of the ChatGLM3 model. This node serves as an interface to interact with the ChatGLM3 API, allowing you to input a description and receive a precise image prompt in English. The primary goal of this node is to assist AI artists in creating detailed and accurate prompts that can be used to guide image generation models. By utilizing this node, you can streamline the process of converting descriptive text into actionable prompts, enhancing the efficiency and effectiveness of your creative workflow.

ChatGLM3提示词生成工具 Input Parameters:

glm3_url

The glm3_url parameter specifies the base URL of the ChatGLM3 API that the node will interact with. This URL is crucial as it directs the node to the correct server endpoint for processing requests. The default value is set to http://localhost:8000/v1, which assumes that the API is hosted locally. You can change this to a different URL if the API is hosted on a remote server. This parameter does not have minimum or maximum values but must be a valid URL string.

system_prompt

The system_prompt parameter is a string that provides the initial context or instructions for the ChatGLM3 model. It is designed to guide the model's behavior and ensure that the generated prompts are aligned with your specific requirements. The default system prompt is set to a multilingual string that instructs the model to act as an expert in generating image prompts based on user descriptions, with an emphasis on returning prompts in English. This parameter supports multiline input, allowing for detailed instructions.

text

The text parameter is the main input where you provide the descriptive content that you want to be translated into an image prompt. This parameter is crucial as it directly influences the output generated by the node. It supports multiline input, enabling you to include detailed descriptions or complex ideas. There are no specific default values, minimum, or maximum constraints, but the content should be clear and descriptive to ensure accurate prompt generation.

ChatGLM3提示词生成工具 Output Parameters:

提示词

The output parameter, 提示词, represents the generated image prompt returned by the ChatGLM3 model. This output is a string that encapsulates the essence of the input description, translated into a format suitable for guiding image generation models. The importance of this output lies in its ability to transform descriptive text into actionable prompts, thereby enhancing the creative process for AI artists. The output is designed to be precise and in English, as per the system prompt's instructions.

ChatGLM3提示词生成工具 Usage Tips:

  • Ensure that the glm3_url is correctly set to the server where the ChatGLM3 API is hosted to avoid connectivity issues.
  • Craft detailed and clear descriptions in the text parameter to improve the accuracy and relevance of the generated prompts.
  • Utilize the system_prompt to customize the behavior of the ChatGLM3 model according to your specific needs or project requirements.

ChatGLM3提示词生成工具 Common Errors and Solutions:

Invalid URL

  • Explanation: The glm3_url provided is not a valid URL or the server is unreachable.
  • Solution: Verify that the URL is correct and that the server hosting the ChatGLM3 API is running and accessible.

API Key Missing

  • Explanation: The node attempts to connect to the API without a valid API key.
  • Solution: Ensure that the openai.api_key is set correctly in the code to authenticate requests to the ChatGLM3 API.

Empty Response

  • Explanation: The API returns an empty response, possibly due to an error in processing the request.
  • Solution: Check the input parameters for any errors or omissions and ensure that the server is functioning correctly.

ChatGLM3提示词生成工具 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_Lam
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 Playground, enabling artists to harness the latest AI tools to create incredible art.