Hotfix: copy paste, post/preprompts on main level of jason
Signed-off-by: GeorgLegato <bulbul@onlinehome.de>pull/75/head
parent
14b2f4edaa
commit
8da2fb1ba7
|
|
@ -17,10 +17,10 @@ def completeOptionals(j):
|
||||||
j["prompts"]["negPrompt"]=""
|
j["prompts"]["negPrompt"]=""
|
||||||
|
|
||||||
if "prePrompt" not in j:
|
if "prePrompt" not in j:
|
||||||
j["prompts"]["prePrompt"]=""
|
j["prePrompt"]=""
|
||||||
|
|
||||||
if "postPrompt" not in j:
|
if "postPrompt" not in j:
|
||||||
j["prompts"]["postPrompt"]=""
|
j["postPrompt"]=""
|
||||||
|
|
||||||
return j
|
return j
|
||||||
|
|
||||||
|
|
@ -56,4 +56,4 @@ def readJsonPrompt(txt, returnFailPrompt=False):
|
||||||
if returnFailPrompt:
|
if returnFailPrompt:
|
||||||
return invalid_prompt
|
return invalid_prompt
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue