mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
__event_emitter__ does not allow to create an artifact #3390
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fovendor on GitHub (Jan 23, 2025).
Bug Report
Installation Method
Miniconda-v3
Environment
Expected Behavior:
By calling the Action button, I expect that the code will return to the chat, which will be picked up by the artifact to work with my pre-prepared web page.
When I call the artifact with the "Artifact" button, I expect to see an artifact with my web page.
This behavior should work in any dialog, starting with any message.
Actual Behavior:
I save the function code and when I go back to chat, write promt, get a reply and clicking the Action button I do see an unformatted sheet of my web page in chat, I then open the artifact and it works as it should.
I open another dialog and repeat the same thing, but nothing happens: the web page code is not displayed in the chat, the artifact is not created.
I refresh the page, start a new dialog, refresh the page again, but it doesn't work.
I go to the edit function code page and, without changing anything, click save. The code is saved without any changes.
I go back to the chat room and re-click on the Action button and it works as it should.
I try going to another dialog and creating a new artifact, but it fails again and the cycle has to be repeated again.
WTF? :)
Reproduction Details:
You need to take my code, create a function and repeat my steps from the section above. I'm also attaching a video:
https://github.com/user-attachments/assets/ca4ed53f-8b26-44e2-9597-a94555970444
Example Code:
Wish:
I originally wanted to know if it was possible to trigger artifact creation without returning any code to the user chat, but I ran into the problem described. Please explain to me:
Thank you very much in advance!