This commit is contained in:
Timothy Jaeryang Baek 2025-04-14 02:12:58 -07:00
parent 91523bbb07
commit e4c7417522

View File

@ -534,20 +534,20 @@ async def chat_image_generation_handler(
} }
) )
for image in images: await __event_emitter__(
await __event_emitter__( {
{ "type": "files",
"type": "files", "data": {
"data": { "files": [
"files": [ {
{ "type": "image",
"type": "image", "url": image["url"],
"url": image["url"], }
} for image in images
] ]
}, },
} }
) )
system_message_content = "<context>User is shown the generated image, tell the user that the image has been generated</context>" system_message_content = "<context>User is shown the generated image, tell the user that the image has been generated</context>"
except Exception as e: except Exception as e: