Add hook to implement custom prompt preprocessors

This commit is contained in:
JeLuF 2023-02-08 17:26:55 +01:00
parent 7bc95b68c8
commit c576d582e2
2 changed files with 3 additions and 0 deletions

View File

@ -1015,6 +1015,8 @@ function getPrompts(prompts) {
promptsToMake = applyPermuteOperator(promptsToMake)
promptsToMake = applySetOperator(promptsToMake)
PLUGINS['GET_PROMPTS_HOOK'].forEach(fn => { promptsToMake = fn(promptsToMake) })
return promptsToMake
}

View File

@ -25,6 +25,7 @@ const PLUGINS = {
* })
*/
IMAGE_INFO_BUTTONS: [],
GET_PROMPTS_HOOK: [],
MODIFIERS_LOAD: [],
TASK_CREATE: [],
OUTPUTS_FORMATS: new ServiceContainer(