Merge pull request #4960 from Hugo-Matias/master

fix null negative_prompt on get requests
This commit is contained in:
AUTOMATIC1111 2022-11-27 16:36:29 +03:00 committed by GitHub
commit b24aed0b69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,7 +310,7 @@ class Api:
styleList = [] styleList = []
for k in shared.prompt_styles.styles: for k in shared.prompt_styles.styles:
style = shared.prompt_styles.styles[k] style = shared.prompt_styles.styles[k]
styleList.append({"name":style[0], "prompt": style[1], "negative_prompr": style[2]}) styleList.append({"name":style[0], "prompt": style[1], "negative_prompt": style[2]})
return styleList return styleList