- Added support for multiple LoRA slots (C and D) in PromptManagerAdvanced and PromptManager.
- Implemented functions to normalize and combine multi-LORA inputs.
- Updated metadata handling to persist resolved prompts for both workflow and API.
- Enhanced recipe data building to include additional LoRA configurations.
- Refactored existing methods to accommodate new LoRA structures and ensure backward compatibility.
- Updated PromptExtractor to construct workflow data with a new v2 model format, including handling of model_a and model_b blocks.
- Enhanced PromptManagerAdvanced to retain Lora paths during normalization for better data integrity.
- Modified RecipeBuilder to apply preferred Lora order and manage model overrides more effectively.
- Improved RecipeManager to ensure proper handling of model_a and model_b outputs, including conditional logic for model retention.
- Adjusted RecipeRelay to streamline model slot management and ensure compatibility with v2 structure.
- Cleaned up RecipeRenderer to align with new model data handling, removing legacy references.
- Removed deprecated legacy top-level keys and streamlined ensure_v2_recipe_data function for clarity and efficiency.
Co-authored-by: Copilot <copilot@github.com>
- Introduced functions to ensure v2 recipe data structure and retrieve model blocks.
- Updated WorkflowManager to utilize new v2 model block structure for handling model_a and model_b.
- Refactored WorkflowRelay to accommodate model slot selection and improved handling of sampler and resolution settings.
- Enhanced RecipeRenderer to support rendering from specified model slots in v2 recipe data.
- Updated workflow_data_utils to normalize legacy recipe data into the new v2 format, preserving necessary fields.
- Improved handling of LoRA stacks and sampler configurations across different recipe data versions.
Co-authored-by: Copilot <copilot@github.com>
- Updated variable names, comments, and documentation to replace "workflow_data" with "recipe_data" across multiple files.
- Adjusted input and output types in nodes to reflect the new naming convention.
- Modified the functionality of nodes to ensure compatibility with the new "recipe_data" structure.
- Ensured that all references to workflow extraction and management are now aligned with the recipe terminology.
- Removed the WorkflowSaver module and integrated its functionality into the PromptManagerAdvanced and WorkflowManager classes.
- Enhanced the createWorkflowSaveBrowserModal function to streamline the workflow saving process, including improved handling of existing prompts and categories.
- Updated the savePrompt function to ensure proper normalization of LoRA data and workflow data persistence.
- Improved the handling of workflow data in the WorkflowManager to prioritize live data over local state.
- Added new utility functions for better management of workflow data serialization, ensuring non-serializable objects are stripped before saving.
- Enhanced error handling and user notifications throughout the workflow saving process.
- Implemented PromptManager for saving and loading prompts by category with backup functionality.
- Added API endpoints for managing prompts, including saving, deleting, and importing prompts.
- Introduced WorkflowSaver to capture and save workflow_data snapshots into prompt library entries.
- Included thumbnail generation from images for saved workflows.
- Enhanced error handling and validation for API requests.