added ability to specify custom "prompt_id"

Signed-off-by: bigcat88 <bigcat88@icloud.com>
This commit is contained in:
bigcat88 2024-12-24 18:54:43 +02:00
parent d6edc2c53c
commit 1741ad55ac
No known key found for this signature in database
GPG Key ID: 1F0BF0EC3CF22721

View File

@ -686,6 +686,9 @@ class PromptServer():
if "client_id" in json_data:
extra_data["client_id"] = json_data["client_id"]
if valid[0]:
if "prompt_id" in json_data:
prompt_id = json_data["prompt_id"]
else:
prompt_id = str(uuid.uuid4())
outputs_to_execute = valid[2]
self.prompt_queue.put((number, prompt_id, prompt, extra_data, outputs_to_execute))