Files
open-webui-ai4me/backend/open_webui
Timothy Jaeryang Baek 9d8f590fc5 feat: support pipe filters for per-message content truncation in task templates
Add |middletruncate:n, |start:n, and |end:n pipe filters to the
{{MESSAGES}} template variable, enabling per-message character
truncation for task models (title, tags, follow-up, etc.).

Example: {{MESSAGES:END:2|middletruncate:500}}

This optimizes task model prompt size for conversations with very
long messages (e.g. pasted documents), reducing latency for local
models and API costs.

Closes #21499
2026-03-08 17:43:23 -05:00
..
2026-03-07 20:14:32 -06:00
2025-08-10 00:02:58 +04:00
2026-02-11 16:24:11 -06:00
2026-02-21 14:19:28 -06:00
2026-03-07 18:18:02 -06:00
2025-04-15 09:55:35 +02:00
2026-03-06 20:12:37 -06:00
2026-02-11 16:24:11 -06:00
2026-03-08 17:26:29 -05:00
2026-02-12 15:29:34 -06:00