diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-16 08:01:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-16 08:01:42 +0000 |
commit | 5b7d86d42b84878743847c9a87c02af3da1a5ebd (patch) | |
tree | ddfe1af4b1f1446026882af6028d67fce3dcdc9f /modules/api/models.py | |
parent | 93eae69895c34361a71dbed17348bcfd132fbc6a (diff) | |
parent | 6d7e57ba6a4d686d515518b5f90e91b32fa01caf (diff) | |
download | stable-diffusion-webui-gfx803-5b7d86d42b84878743847c9a87c02af3da1a5ebd.tar.gz stable-diffusion-webui-gfx803-5b7d86d42b84878743847c9a87c02af3da1a5ebd.tar.bz2 stable-diffusion-webui-gfx803-5b7d86d42b84878743847c9a87c02af3da1a5ebd.zip |
Merge pull request #14314 from gayshub/master
Add allow specify the task id and get the location of task in the queue of pending task
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 33894b3e..58083a34 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -107,6 +107,7 @@ StableDiffusionTxt2ImgProcessingAPI = PydanticModelGenerator( {"key": "send_images", "type": bool, "default": True}, {"key": "save_images", "type": bool, "default": False}, {"key": "alwayson_scripts", "type": dict, "default": {}}, + {"key": "force_task_id", "type": str, "default": None}, ] ).generate_model() @@ -124,6 +125,7 @@ StableDiffusionImg2ImgProcessingAPI = PydanticModelGenerator( {"key": "send_images", "type": bool, "default": True}, {"key": "save_images", "type": bool, "default": False}, {"key": "alwayson_scripts", "type": dict, "default": {}}, + {"key": "force_task_id", "type": str, "default": None}, ] ).generate_model() |