Skip to content

docs(plugin): add streaming observability sample filter and Filter guide example#1250

Merged
Classic298 merged 3 commits into
open-webui:devfrom
vigneshwarrvenkat:feat/sample-filter-stream-observability
May 14, 2026
Merged

docs(plugin): add streaming observability sample filter and Filter guide example#1250
Classic298 merged 3 commits into
open-webui:devfrom
vigneshwarrvenkat:feat/sample-filter-stream-observability

Conversation

@vigneshwarrvenkat
Copy link
Copy Markdown

@vigneshwarrvenkat vigneshwarrvenkat commented May 10, 2026

Summary

Adds a downloadable sample Filter and Example #3 on the Filter Function guide, showing how to use the stream hook with status events (and optional chat:completion / usage) for lightweight streaming observability without custom frontend code.

Follows maintainer guidance to land this as documentation + sample in the docs repository rather than in the core app repo.

How this aligns with Contributing

  • Atomic change: only the Filter doc page + one static sample file.
  • Conventions: matches existing Filter guide structure (Examples section, admonitions, Docusaurus/MDX style).
  • No new dependencies.
  • Code of Conduct: Open WebUI Code of Conduct applies.

(If you opened or continued a GitHub Discussion when this was first proposed, link it here—that matches the “discussion first” expectation for larger ideas; a small docs addition after explicit maintainer redirect is usually fine either way.)

Changes

Checklist

  • Self-review for tone, accuracy, and security callouts (Filters run arbitrary Python; sample is admin-only to install).
  • npm ci + npx docusaurus build (or your usual local build) passes.

Context

Vignesh and others added 3 commits May 10, 2026 13:55
…c example

- Add static sample observability_metrics_filter.py (status + chat:completion usage)

- Extend Filter Function guide with Example open-webui#3: install steps and download link
Remove bundled .py sample per review; expand Filter guide Example open-webui#3.
@Classic298 Classic298 merged commit 18dcf80 into open-webui:dev May 14, 2026
@Classic298
Copy link
Copy Markdown
Collaborator

thanks refactored it a bit

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