Merge pull request #843 from JeLuF/prompthook

Add hook to implement custom prompt preprocessors
This commit is contained in:
cmdr2
2023-02-10 17:18:06 +05:30
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

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