mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[GH-ISSUE #19465] feat: Expose PASTED_TEXT_CHARACTER_LIMIT as environment variable to control paste as attachment #57557
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 @ben-kenney on GitHub (Nov 25, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19465
Check Existing Issues
Verify Feature Scope
Problem Description
If a user has the setting "Paste Large Text as File" toggled on, then any text larger than 1000 characters will be uploaded as a file. It would be nice to have this character limit exposed as a user setting.
Indeed there appears to be a variable called
PASTED_TEXT_CHARACTER_LIMIT(PR #7020) in the code which is hard coded for 1000 characters. It would be great if this could be exposed as an environment variable for more user control.Doing so could make it easier for users to review their old prompts in certain situations.
Desired Solution you'd like
Allow users to configure PASTED_TEXT_CHARACTER_LIMIT= in their
.envfile to control the number of characters before pasted text gets converted into a file upload.Alternatives Considered
No response
Additional Context
No response