mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-13 16:19:01 +08:00
refac
This commit is contained in:
parent
91523bbb07
commit
e4c7417522
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user