mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #22775] [CLOSED] fix: make fetch_url max_content_length configurable via env var #26860
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22775
Author: @Jah-yee
Created: 3/17/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
92ad7edfix: make fetch_url max_content_length configurable via env var📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
backend/open_webui/tools/builtin.py(+3 -1)📄 Description
Summary
WEBUI_MAX_FETCH_URL_LENGTHenv var support (default: 50000)Changes
import osto builtin.pymax_length = 50000tomax_length = int(os.environ.get("WEBUI_MAX_FETCH_URL_LENGTH", "50000"))Related Issue
Fixes #22774
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.