From 004700c1250dcf5403197201ca1efe4fc1c434c4 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 4 Sep 2024 22:33:40 +0200 Subject: [PATCH] feat: add `OVERRIDE_PIP_INSTALL` environment variable --- backend/open_webui/env.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/open_webui/env.py b/backend/open_webui/env.py index b803b5863..a509fd1a0 100644 --- a/backend/open_webui/env.py +++ b/backend/open_webui/env.py @@ -95,6 +95,8 @@ try: except importlib.metadata.PackageNotFoundError: pass +OVERRIDE_PIP_INSTALL = os.environ.get("OVERRIDE_PIP_INSTALL") +PIP_INSTALL = OVERRIDE_PIP_INSTALL if (OVERRIDE_PIP_INSTALL != None) else PIP_INSTALL if PIP_INSTALL: PACKAGE_DATA = {"version": importlib.metadata.version("open-webui")}