ComfyUI > Nodes > ComfyUI_ChatGLM_API > ZhipuaiApi_Character

ComfyUI Node: ZhipuaiApi_Character

Class Name

ZhipuaiApi_Character

Category
ChatGlm_Api
Author
smthemex (Account age: 417days)
Extension
ComfyUI_ChatGLM_API
Latest Updated
2024-07-31
Github Stars
0.02K

How to Install ComfyUI_ChatGLM_API

Install this extension via the ComfyUI Manager by searching for ComfyUI_ChatGLM_API
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_ChatGLM_API 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ZhipuaiApi_Character Description

Facilitates dynamic character conversations with ChatGLM API for immersive storytelling experiences.

ZhipuaiApi_Character:

The ZhipuaiApi_Character node is designed to facilitate interactive and dynamic character-based conversations using the ChatGLM API. This node allows you to create and manage virtual characters with distinct personalities and backstories, enabling rich and engaging dialogues. By leveraging the capabilities of the ChatGLM API, this node can generate contextually relevant responses based on predefined character traits and user inputs. This is particularly useful for AI artists and storytellers who want to bring their characters to life in a conversational format, enhancing the narrative experience and providing a more immersive interaction.

ZhipuaiApi_Character Input Parameters:

user_name

This parameter specifies the name of the user interacting with the virtual character. It helps personalize the conversation and makes the interaction more engaging. The default value is "陆星辰".

user_info

This parameter provides background information about the user, which can be used to add context to the conversation. It includes details such as the user's profession, gender, and relationship with the virtual character. The default value is "我是陆星辰,是一个男性,是一位知名编剧,苏梦远是我在剧中创作的虚拟二次元角色。她是一位白发傲娇猫娘,并视我为好朋友。" This parameter supports multiline input.

bot_info

This parameter contains information about the virtual character, including their name, personality traits, likes, and dislikes. It helps define the character's behavior and responses during the conversation. The default value is "苏梦远,本名苏喵喵,是一位虚拟的二次元白发傲娇猫娘,她爱吃小鱼干,喜欢温暖的地方,喜欢打滚,讨厌游泳。" This parameter supports multiline input.

assistant_prompt

This parameter sets the initial prompt or message from the virtual character, guiding the direction of the conversation. It helps establish the character's voice and intent. The default value is "陆星辰,我希望下一个剧本,我能变身美少女战士,喵。" This parameter supports multiline input.

user_prompt

This parameter defines the user's initial response or message in the conversation. It helps kickstart the interaction and provides context for the virtual character's reply. The default value is "苏梦远,你本来就是美少女,但不是战士而已。" This parameter supports multiline input.

ZhipuaiApi_Character Output Parameters:

text

This output parameter contains the generated text response from the virtual character. It reflects the character's personality and the context provided by the input parameters, creating a coherent and engaging dialogue.

ZhipuaiApi_Character Usage Tips:

  • Ensure that the user_info and bot_info parameters are detailed and descriptive to create a more immersive and realistic interaction.
  • Use the assistant_prompt and user_prompt parameters to set the tone and direction of the conversation, making it more engaging and contextually relevant.

ZhipuaiApi_Character Common Errors and Solutions:

"API key is required"

  • Explanation: This error occurs when the API key is not provided or is invalid.
  • Solution: Ensure that you have a valid API key and that it is correctly configured in the node settings.

"need prompt"

  • Explanation: This error occurs when the user_prompt or assistant_prompt parameters are not provided.
  • Solution: Make sure to provide both user_prompt and assistant_prompt parameters to initiate the conversation.

"invalid apikey"

  • Explanation: This error occurs when the provided API key is not in the correct format.
  • Solution: Verify that the API key is correctly formatted and try again. If the problem persists, contact the API provider for assistance.

ZhipuaiApi_Character Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_ChatGLM_API
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.