aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-03-12 05:00:55 +0000
committerGitHub <noreply@github.com>2023-03-12 05:00:55 +0000
commitab0b0e1e767ddc7ceeaced11513c3692538938eb (patch)
tree9d8592d095b89697b6aff6630177f5fa7a73f001 /modules/api/models.py
parent27e319dc4f09a2f040043948e5c52965976f8491 (diff)
parent64efb3d9e06c60b378ef49ea7fd5f904b12ab03a (diff)
downloadstable-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.py2
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()