diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-03-11 10:22:59 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-03-11 10:22:59 +0000 |
commit | 3531a50080e63197752dd4d9b49f0ac34a758e12 (patch) | |
tree | 9186f3ea4c906f87632a123bce288bf5cce284d0 /modules/api/models.py | |
parent | bb3ecc32856dc1341f2fb6c41efca8ade0f5217e (diff) | |
download | stable-diffusion-webui-gfx803-3531a50080e63197752dd4d9b49f0ac34a758e12.tar.gz stable-diffusion-webui-gfx803-3531a50080e63197752dd4d9b49f0ac34a758e12.tar.bz2 stable-diffusion-webui-gfx803-3531a50080e63197752dd4d9b49f0ac34a758e12.zip |
rename fields for API for saving/sending images
save images to correct directories
Diffstat (limited to 'modules/api/models.py')
-rw-r--r-- | modules/api/models.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index 2b66e1f0..ff3fb344 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -104,8 +104,8 @@ StableDiffusionTxt2ImgProcessingAPI = PydanticModelGenerator( {"key": "sampler_index", "type": str, "default": "Euler"}, {"key": "script_name", "type": str, "default": None}, {"key": "script_args", "type": list, "default": []}, - {"key": "do_not_send", "type": bool, "default": False}, - {"key": "do_not_save", "type": bool, "default": True} + {"key": "send_images", "type": bool, "default": True}, + {"key": "save_images", "type": bool, "default": False}, ] ).generate_model() @@ -120,8 +120,8 @@ StableDiffusionImg2ImgProcessingAPI = PydanticModelGenerator( {"key": "include_init_images", "type": bool, "default": False, "exclude" : True}, {"key": "script_name", "type": str, "default": None}, {"key": "script_args", "type": list, "default": []}, - {"key": "do_not_send", "type": bool, "default": False}, - {"key": "do_not_save", "type": bool, "default": True} + {"key": "send_images", "type": bool, "default": True}, + {"key": "save_images", "type": bool, "default": False}, ] ).generate_model() |