Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance text prompts for AI art generation with dynamic placeholder replacement and API integration for unique outputs.
OobaPrompt is a versatile node designed to enhance and customize text prompts for AI art generation. It processes input prompts by replacing wildcard syntax and handling specific language model (LLM) syntax, allowing for dynamic and context-aware text generation. The node can interpret and replace placeholders within the prompt with random choices or predefined styles, making it highly adaptable for various creative needs. Additionally, OobaPrompt can interact with external APIs to fetch and incorporate contextually relevant text, further enriching the generated prompts. This node is particularly useful for artists looking to add variability and depth to their AI-generated art descriptions, ensuring each output is unique and tailored to specific artistic styles or themes.
The input_prompt
parameter is the initial text that you want to process and enhance using the OobaPrompt node. This text can include wildcard syntax (e.g., {option1|option2}
) and LLM-specific syntax (e.g., <llm:style:prompt text>
), which the node will interpret and replace accordingly. The input prompt serves as the foundation for generating the final, enriched text output. There are no strict minimum or maximum values for this parameter, but it should be a well-formed string to ensure proper processing.
The seed
parameter is used to control the randomness in the prompt generation process. By providing a specific seed value, you can ensure that the random choices made by the node (e.g., selecting from wildcard options) are reproducible. This is particularly useful for achieving consistent results across multiple runs. The seed value should be an integer, and while there is no strict range, typical values are within the range of standard integer limits.
The mode
parameter specifies the operational mode for the LLM syntax processing. It determines how the node interprets and processes the <llm:...>
tags within the input prompt. Common modes include predefined styles or custom modes specified by JSON files. This parameter allows for flexible and context-specific text generation, adapting the prompt to different artistic styles or themes. The mode should be a string that matches one of the supported modes or a path to a custom JSON file.
The custom_history
parameter is an optional input that allows you to provide a custom history file in JSON format. This file can contain context or historical data that the node will use to generate more contextually relevant text. If not provided, the node will use default settings or predefined styles. This parameter is particularly useful for creating prompts that are consistent with a specific narrative or historical context. The custom history should be a valid JSON file path.
The output_text
parameter is the final, processed text generated by the OobaPrompt node. This text incorporates all the replacements and enhancements made based on the input prompt, wildcard syntax, LLM syntax, and any external API interactions. The output text is ready to be used in AI art generation, providing a rich and contextually relevant description that enhances the creative process. The output is a string that reflects the fully processed and enriched prompt.
© Copyright 2024 RunComfy. All Rights Reserved.