mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #8671] [CLOSED] func: add virtualenv creation and invocation for tools and functions etc, protect system python, add env var view and management UI in admin panel #37900
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/8671
Author: @taylorwilsdon
Created: 1/18/2025
Status: ❌ Closed
Base:
main← Head:add_env_config📝 Commits (10+)
3321885add option to add database schema as env var6f1065bMerge branch 'dev' of github.com:open-webui/open-webui90373a7feat: Add new Environment settings component for image generation configuration13d64e1feat: Add Environment tab to Settings with basic structure5a50930fix: Remove duplicate script section in Environment.sveltefb23c4cIt seems like you're trying to replace a form with environment settings in HTML. The new code snippet includes a<style>tag for any additional styles you might want to add, and a<div>element with the class "settings-section" that contains an<h2>heading and an unordered list (<ul>) of environment variables.26ff371feat: Add getEnvVariables component to fetch environment variables4544f1cfeat: Add logging to getEnvVariables() function74116aefix: Restore and correct thegetEnvVariablesfunction inenv.js2534386fix: ImportonMountfrom Svelte in Environment.svelte📊 Changes
138 files changed (+2950 additions, -1166 deletions)
View changed files
📝
.github/workflows/integration-test.yml(+2 -0)📝
.gitignore(+1 -0)📝
CHANGELOG.md(+1 -1)📝
backend/open_webui/__init__.py(+19 -0)📝
backend/open_webui/config.py(+164 -34)📝
backend/open_webui/constants.py(+1 -0)📝
backend/open_webui/env.py(+4 -0)📝
backend/open_webui/internal/db.py(+4 -2)📝
backend/open_webui/main.py(+9 -0)📝
backend/open_webui/models/chats.py(+1 -1)📝
backend/open_webui/models/groups.py(+2 -2)📝
backend/open_webui/retrieval/utils.py(+14 -2)📝
backend/open_webui/retrieval/vector/dbs/chroma.py(+2 -2)📝
backend/open_webui/retrieval/vector/dbs/milvus.py(+2 -2)📝
backend/open_webui/retrieval/vector/dbs/pgvector.py(+24 -19)📝
backend/open_webui/routers/auths.py(+16 -4)📝
backend/open_webui/routers/files.py(+2 -0)📝
backend/open_webui/routers/images.py(+20 -3)📝
backend/open_webui/routers/knowledge.py(+46 -3)📝
backend/open_webui/routers/openai.py(+1 -0)...and 80 more files
📄 Description
@tjbck don't merge this, it's tracking dev branch but when I push to my fork it automatically cuts these PRs and I'm just staging the stub for my own purposes - I will split the PRs out so that the individual features aren't commingled since there are a lot of implications with the python interpreter changes, might make sense as a toggle rather than exclusive but obvious security improvements will make this popular and the env var view is just useful for debugging
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.