mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-03-03 04:20:08 +00:00
feat: Use [PROMPT] keyword to insert the source prompt (#243)
This commit is contained in:
@@ -244,6 +244,8 @@ class AfterDetailerScript(scripts.Script):
|
||||
for n in range(len(prompts)):
|
||||
if not prompts[n]:
|
||||
prompts[n] = blank_replacement
|
||||
elif "[PROMPT]" in prompts[n]:
|
||||
prompts[n] = prompts[n].replace("[PROMPT]", f" {blank_replacement} ")
|
||||
return prompts
|
||||
|
||||
def get_prompt(self, p, args: ADetailerArgs) -> tuple[list[str], list[str]]:
|
||||
|
||||
Reference in New Issue
Block a user