forked from extern/easydiffusion
Merge pull request #843 from JeLuF/prompthook
Add hook to implement custom prompt preprocessors
This commit is contained in:
commit
baa8afd9eb
@ -1020,6 +1020,8 @@ function getPrompts(prompts) {
|
||||
promptsToMake = applyPermuteOperator(promptsToMake)
|
||||
promptsToMake = applySetOperator(promptsToMake)
|
||||
|
||||
PLUGINS['GET_PROMPTS_HOOK'].forEach(fn => { promptsToMake = fn(promptsToMake) })
|
||||
|
||||
return promptsToMake
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,7 @@ const PLUGINS = {
|
||||
* })
|
||||
*/
|
||||
IMAGE_INFO_BUTTONS: [],
|
||||
GET_PROMPTS_HOOK: [],
|
||||
MODIFIERS_LOAD: [],
|
||||
TASK_CREATE: [],
|
||||
OUTPUTS_FORMATS: new ServiceContainer(
|
||||
|
Loading…
Reference in New Issue
Block a user