mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-11 00:13:40 -05:00
feat: Intelligently truncate long text #5170
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 @cfy01 on GitHub (May 14, 2025).
Check Existing Issues
Problem Description
The results of file retrieval and web search cause tokens to exceed the maximum context.
Desired Solution you'd like
Support setting the maximum number of tokens in the context, which can be intelligently truncated before the uplink model to prevent triggering beyond the maximum context.
Alternatives Considered
No response
Additional Context
No response