We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91523bb commit e4c7417Copy full SHA for e4c7417
backend/open_webui/utils/middleware.py
@@ -534,20 +534,20 @@ async def chat_image_generation_handler(
534
}
535
)
536
537
- for image in images:
538
- await __event_emitter__(
539
- {
540
- "type": "files",
541
- "data": {
542
- "files": [
543
544
- "type": "image",
545
- "url": image["url"],
546
- }
547
- ]
548
- },
549
550
- )
+ await __event_emitter__(
+ {
+ "type": "files",
+ "data": {
+ "files": [
+ "type": "image",
+ "url": image["url"],
+ }
+ for image in images
+ ]
+ },
+ )
551
552
system_message_content = "<context>User is shown the generated image, tell the user that the image has been generated</context>"
553
except Exception as e:
0 commit comments