Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates image prompt generation using ChatGLM3 model for AI artists to create detailed prompts efficiently.
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.
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.
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.
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.
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.
glm3_url
is correctly set to the server where the ChatGLM3 API is hosted to avoid connectivity issues.text
parameter to improve the accuracy and relevance of the generated prompts.system_prompt
to customize the behavior of the ChatGLM3 model according to your specific needs or project requirements.glm3_url
provided is not a valid URL or the server is unreachable.openai.api_key
is set correctly in the code to authenticate requests to the ChatGLM3 API.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.