This commit is contained in:
Timothy Jaeryang Baek
2025-04-14 01:08:16 -07:00
parent 403295600f
commit ec3b8fab5b
4 changed files with 69 additions and 49 deletions

View File

@@ -537,8 +537,15 @@ async def chat_image_generation_handler(
for image in images:
await __event_emitter__(
{
"type": "message",
"data": {"content": f"![Generated Image]({image['url']})\n"},
"type": "files",
"data": {
"files": [
{
"type": "image",
"url": image["url"],
}
]
},
}
)