Visit ComfyUI Online for ready-to-use ComfyUI environment
Manage and load persona files for AI models, customize behavior and responses based on predefined personas.
The load_persona
node is designed to help you load and manage persona files for your AI models. This node allows you to select a specific persona from a list of available text files and optionally include additional background content. By enabling or disabling the persona, you can control whether the persona's content is included in the output. This functionality is particularly useful for AI artists who want to customize the behavior and responses of their AI models based on predefined personas, enhancing the creativity and specificity of their AI-generated content.
This parameter allows you to select the name of the persona you wish to load. The available options are derived from the text files present in the persona directory. Selecting a persona will load the corresponding text file's content. There is no minimum or maximum value, but the default is None
.
This boolean parameter determines whether the persona should be enabled or not. If set to True
, the persona's content will be included in the output. If set to False
, the persona will be ignored, and the output will be None
. The default value is True
.
This optional parameter allows you to provide additional background content as a string. If provided, this content will be prefixed to the persona's text file content under the heading "##背景知识:". This can be useful for adding context or supplementary information to the persona. There is no default value, and it must be explicitly provided if needed.
The output parameter system_prompt
is a string that contains the combined content of the selected persona's text file and any additional background content provided. This output can be used to customize the behavior and responses of your AI model, making it more aligned with the selected persona.
file_content
parameter to add specific context or background information that can enhance the persona's effectiveness in your AI model.is_enable
parameter to quickly switch between using and not using a persona without needing to remove or reconfigure the node.persona_name
parameter is set to None
and the node attempts to access the file.© Copyright 2024 RunComfy. All Rights Reserved.