[PR #565] Add filter to limit the length of the input message and the generated output #461

Open
opened 2026-02-15 20:15:41 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/pipelines/pull/565
Author: @weese
Created: 9/23/2025
Status: 🔄 Open

Base: mainHead: feature/message_length_filter_pipeline


📝 Commits (5)

  • 01ecf5e add max-input-length and max-output-token filter
  • 9bbb39a increase default message length
  • 853054d given response token length also a configurable default
  • 649d500 silence please
  • 0227eab [AIRMS-596] adapt user message

📊 Changes

2 files changed (+97 additions, -4 deletions)

View changed files

examples/filters/message_length_filter_pipeline.py (+97 -0)
📝 examples/filters/rate_limit_filter_pipeline.py (+0 -4)

📄 Description

This pipeline lets you define a limit in the input message length (in chars) and also the generated output (in tokens).

Screenshot 2025-09-23 at 22 55 38

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/pipelines/pull/565 **Author:** [@weese](https://github.com/weese) **Created:** 9/23/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feature/message_length_filter_pipeline` --- ### 📝 Commits (5) - [`01ecf5e`](https://github.com/open-webui/pipelines/commit/01ecf5eac7c2480df9b0fd78f06c50a970b6aceb) add max-input-length and max-output-token filter - [`9bbb39a`](https://github.com/open-webui/pipelines/commit/9bbb39a14b64e4140b363d6f0140e15261630f3f) increase default message length - [`853054d`](https://github.com/open-webui/pipelines/commit/853054d7548dd1d95a3bc71c7bfe641d0553dba7) given response token length also a configurable default - [`649d500`](https://github.com/open-webui/pipelines/commit/649d5006d5ab0e9fb45f4447d9d7047f064fadb1) silence please - [`0227eab`](https://github.com/open-webui/pipelines/commit/0227eab6870718bea11022a1351c937170093bf2) [AIRMS-596] adapt user message ### 📊 Changes **2 files changed** (+97 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `examples/filters/message_length_filter_pipeline.py` (+97 -0) 📝 `examples/filters/rate_limit_filter_pipeline.py` (+0 -4) </details> ### 📄 Description This pipeline lets you define a limit in the input message length (in chars) and also the generated output (in tokens). <img width="892" height="465" alt="Screenshot 2025-09-23 at 22 55 38" src="https://github.com/user-attachments/assets/d02f7526-7672-4f72-a5f0-7174916dacb7" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/pipelines#461