Skip to content

fix: add __metadata__ fields and __event_emitter__ custom types#1265

Merged
Classic298 merged 1 commit into
open-webui:mainfrom
Turrabo:fix/document-metadata-and-event-emitter-fields
May 25, 2026
Merged

fix: add __metadata__ fields and __event_emitter__ custom types#1265
Classic298 merged 1 commit into
open-webui:mainfrom
Turrabo:fix/document-metadata-and-event-emitter-fields

Conversation

@Turrabo

@Turrabo Turrabo commented May 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add user_prompt, system_prompt, sources to the __metadata__ JSON example
  • add a tip under __metadata__ explaining capture intent and recommended Pipe usage
  • expand __event_emitter__ to cover custom type forwarding through socket.io

Why

The current __metadata__ example is missing three fields that the backend populates. The __event_emitter__ section doesn't mention that custom type strings are forwarded to socket.io clients. Both of these things actually exist in OWUI today but aren't documented (and would've saved me a day of hacking).

Adds user_prompt, system_prompt, sources to the __metadata__ example.
Expands __event_emitter__ to cover custom type forwarding through socket.io.
@Classic298

Copy link
Copy Markdown
Collaborator

thanks!

@Classic298 Classic298 merged commit d8c9f9d into open-webui:main May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants