mirror of
https://github.com/open-webui/docs.git
synced 2026-07-20 15:38:19 -04:00
Documentation confusing: Events are supported in OpenAPI based tools or not? #142
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 @reuschling on GitHub (Jan 20, 2026).
In the documentation, there is the explanation for the use of events inside tools: https://docs.openwebui.com/features/plugin/development/events/. It is not clear (to me) if this is also possible with tools implemented with an OpenAPI service. I suggest that this should be possible, but I am not sure how - there is no clear documentation on this. Nevertheless, there are some hints in the documentation:
In the case mcpo can offer SSE support, and due to the fact that mcpo creates an OpenAPI compatible server, this means that there must be SSE support for OpenAPI services. 1. gives the hint that MCP supports tool events.
Thus, I implemented a REST service with a "Content-Type:text/event-stream" response. I asked ChatGpt due to the lack of further documentation on this point and it says that now I can return events inside the stream, with the format
as specified in the OpenWebUI documentation here. I know of course that this can be a hallucination, and it didn't work either.
I am currently totally confused if events with OpenApi tools are possible or not, but it is clear to me that the documentation leads me to this assumption. So there is at least a lack in
This pull request initiated from this discussion talks about the possibility to use SeverSentEvents (SSE) from a backend. This is not from the documentation, but it is a further hint that events over SSE could be sent possibly from a tool OpenApi server also.
(If there is at the end no support for events with remote tools, I will create an according feature request as follow-up to this documentation issue)
@Classic298 commented on GitHub (Jan 21, 2026):
thanks for reporting fixed here: https://github.com/open-webui/docs/pull/1024
@reuschling commented on GitHub (Jan 21, 2026):
Thanks for clarification