mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
added ability to specify custom "prompt_id"
Signed-off-by: bigcat88 <bigcat88@icloud.com>
This commit is contained in:
parent
d6edc2c53c
commit
1741ad55ac
@ -686,6 +686,9 @@ class PromptServer():
|
|||||||
if "client_id" in json_data:
|
if "client_id" in json_data:
|
||||||
extra_data["client_id"] = json_data["client_id"]
|
extra_data["client_id"] = json_data["client_id"]
|
||||||
if valid[0]:
|
if valid[0]:
|
||||||
|
if "prompt_id" in json_data:
|
||||||
|
prompt_id = json_data["prompt_id"]
|
||||||
|
else:
|
||||||
prompt_id = str(uuid.uuid4())
|
prompt_id = str(uuid.uuid4())
|
||||||
outputs_to_execute = valid[2]
|
outputs_to_execute = valid[2]
|
||||||
self.prompt_queue.put((number, prompt_id, prompt, extra_data, outputs_to_execute))
|
self.prompt_queue.put((number, prompt_id, prompt, extra_data, outputs_to_execute))
|
||||||
|
Loading…
Reference in New Issue
Block a user