aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-12-16 08:01:42 +0000
committerGitHub <noreply@github.com>2023-12-16 08:01:42 +0000
commit5b7d86d42b84878743847c9a87c02af3da1a5ebd (patch)
treeddfe1af4b1f1446026882af6028d67fce3dcdc9f /modules/api/models.py
parent93eae69895c34361a71dbed17348bcfd132fbc6a (diff)
parent6d7e57ba6a4d686d515518b5f90e91b32fa01caf (diff)
downloadstable-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.py2
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()