diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-03-12 05:00:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-12 05:00:55 +0000 |
commit | ab0b0e1e767ddc7ceeaced11513c3692538938eb (patch) | |
tree | 9d8592d095b89697b6aff6630177f5fa7a73f001 /modules/api/models.py | |
parent | 27e319dc4f09a2f040043948e5c52965976f8491 (diff) | |
parent | 64efb3d9e06c60b378ef49ea7fd5f904b12ab03a (diff) | |
download | stable-diffusion-webui-gfx803-ab0b0e1e767ddc7ceeaced11513c3692538938eb.tar.gz stable-diffusion-webui-gfx803-ab0b0e1e767ddc7ceeaced11513c3692538938eb.tar.bz2 stable-diffusion-webui-gfx803-ab0b0e1e767ddc7ceeaced11513c3692538938eb.zip |
Merge pull request #8187 from Vespinian/master
Add a way for API txt2img and img2img requests to pass args to always on scripts
Diffstat (limited to 'modules/api/models.py')
-rw-r--r-- | modules/api/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index fa1c40df..4a70f440 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -106,6 +106,7 @@ StableDiffusionTxt2ImgProcessingAPI = PydanticModelGenerator( {"key": "script_args", "type": list, "default": []}, {"key": "send_images", "type": bool, "default": True}, {"key": "save_images", "type": bool, "default": False}, + {"key": "alwayson_scripts", "type": dict, "default": {}}, ] ).generate_model() @@ -122,6 +123,7 @@ StableDiffusionImg2ImgProcessingAPI = PydanticModelGenerator( {"key": "script_args", "type": list, "default": []}, {"key": "send_images", "type": bool, "default": True}, {"key": "save_images", "type": bool, "default": False}, + {"key": "alwayson_scripts", "type": dict, "default": {}}, ] ).generate_model() |