fix prompting error handling

This commit is contained in:
Owl 2025-03-14 16:33:35 +07:00
parent b3c18e0de6
commit 7b3fe6460b

View File

@ -239,7 +239,7 @@ async def gen_image(update: Update, context: ContextTypes.DEFAULT_TYPE):
result = await enqueue_prompt_t2i(args)
if result["error"] == 0:
if result["error"] == "OK":
prompt_id = result['data']