mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #24244] perf: avoid redundant frontmatter dependency installs after startup preinstall #50559
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/24244
Author: @jmleksan
Created: 4/29/2026
Status: 🔄 Open
Base:
dev← Head:perf/function-dependency-installation📝 Commits (1)
5c23b3eperf: enhance dependency management in function loading📊 Changes
2 files changed (+24 additions, -6 deletions)
View changed files
📝
backend/open_webui/main.py(+4 -1)📝
backend/open_webui/utils/plugin.py(+20 -5)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.No new/upgraded dependencies in this PR.
devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Added
dependencies_preinstalledpreinstalled_function_idsChanged
install_tool_and_function_dependencies()now returns the set of function IDs included in startup preinstall.pip installon load.Fixed
pip installcalls on first/api/models/ UI connection when dependencies were already installed during startup preinstall."Requirement already satisfied"installation churn in logs.Additional Information
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.