ComfyUI  >  Nodes  >  Mikey Nodes >  OobaPrompt (Mikey)

ComfyUI Node: OobaPrompt (Mikey)

Class Name

OobaPrompt

Category
Mikey/AI
Author
bash-j (Account age: 4196 days)
Extension
Mikey Nodes
Latest Updated
6/15/2024
Github Stars
0.1K

How to Install Mikey Nodes

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

OobaPrompt (Mikey) Description

Enhance text prompts for AI art generation with dynamic placeholder replacement and API integration for unique outputs.

OobaPrompt (Mikey):

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.

OobaPrompt (Mikey) Input Parameters:

input_prompt

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.

seed

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.

mode

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.

custom_history

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.

OobaPrompt (Mikey) Output Parameters:

output_text

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.

OobaPrompt (Mikey) Usage Tips:

  • Use clear and well-structured input prompts to ensure the node can effectively process and enhance the text.
  • Experiment with different seed values to explore various random choices and achieve diverse outputs.
  • Utilize the mode parameter to switch between different styles or themes, adapting the prompt to specific artistic needs.
  • Provide a custom history file to add contextual depth and relevance to the generated prompts, especially for narrative-driven art projects.

OobaPrompt (Mikey) Common Errors and Solutions:

Invalid input prompt format

  • Explanation: The input prompt contains syntax errors or unsupported characters.
  • Solution: Ensure the input prompt is a well-formed string and follows the correct syntax for wildcards and LLM tags.

Seed value out of range

  • Explanation: The seed value provided is not a valid integer or is outside the acceptable range.
  • Solution: Provide a valid integer for the seed parameter, typically within the standard integer limits.

Unsupported mode

  • Explanation: The mode specified is not recognized or supported by the node.
  • Solution: Check the mode parameter and ensure it matches one of the supported modes or provide a valid path to a custom JSON file.

Custom history file not found

  • Explanation: The custom history file path provided does not exist or is not accessible.
  • Solution: Verify the file path and ensure the JSON file is located in the specified directory and is accessible.

OobaPrompt (Mikey) Related Nodes

Go back to the extension to check out more related nodes.
Mikey Nodes
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.