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
This commit is contained in:
AUTOMATIC1111
2023-12-16 11:01:42 +03:00
committed by GitHub
4 changed files with 40 additions and 4 deletions

View File

@@ -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()