fix: install all requirements at once instead of sequentially
add type hint to install_frontmatter_requirements
security: sanitize input before executing pip install
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:
Target branch: Please verify that the pull request targets the dev branch.
Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Have you written and run sufficient tests for validating the changes?
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
BREAKING CHANGE: Significant changes that may affect compatibility
build: Changes that affect the build system or external dependencies
ci: Changes to our continuous integration processes or workflows
chore: Refactor, cleanup, or other non-functional code changes
docs: Documentation update or addition
feat: Introduces a new feature or enhancement to the codebase
fix: Bug fix or error correction
i18n: Internationalization or localization changes
perf: Performance improvement
refactor: Code restructuring for better maintainability, readability, or scalability
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
test: Adding missing tests or correcting existing tests
WIP: Work in progress, a temporary label for incomplete or ongoing work
Changelog Entry
Description
With this PR the requirements are pip installed at the same time instead of sequentially. Making it faster, more controlled and handle conflicts better. In addition, we look for unexpected symbols in the requirements to increase security.
Added
add type hint to install_frontmatter_requirements
Changed
fix: install all requirements at once instead of sequentially
Security
security: sanitize input before executing pip install
Additional Information
I am writing a doc PR to document the frontmatter pip installation. I can update it depending on whether this one gets merged.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/11445
**Author:** [@thiswillbeyourgithub](https://github.com/thiswillbeyourgithub)
**Created:** 3/9/2025
**Status:** ❌ Closed
**Base:** `main` ← **Head:** `enh_frontmatter_pip_install`
---
### 📝 Commits (10+)
- [`9cc9df3`](https://github.com/open-webui/open-webui/commit/9cc9df301836cb9a10781dbae80f194839a2632e) fix(chat): resolve duplicate collapsible IDs causing citation modal failures
- [`561f4d5`](https://github.com/open-webui/open-webui/commit/561f4d5d69a8435db2e1cd9754609882c1809deb) i18n: zh-cn
- [`98376fb`](https://github.com/open-webui/open-webui/commit/98376fbbce34d856122046724a25f7dfb80c5fe7) i18n: zh-cn
- [`92fb110`](https://github.com/open-webui/open-webui/commit/92fb1109b6e53bef38ec7fe433e162de83a4cb7a) i18n(common): add i18n translation
- [`6cb0c03`](https://github.com/open-webui/open-webui/commit/6cb0c0339a28b3e9d5399cff37fd68c9888f9a5f) fix: opensearch vector db query structures, result mapping, filters, bulk query actions, knn_vector usage
- [`987954c`](https://github.com/open-webui/open-webui/commit/987954c817be4129dfa8792cfa2b90289a2b515f) feat: Add Tavily extract web loader integration
- [`d862295`](https://github.com/open-webui/open-webui/commit/d862295a05167d16bfa77156f8a7eb2cd47aefb0) fix: update chat completion tools handler to use parameters from spec fixing defaults always used
- [`04921be`](https://github.com/open-webui/open-webui/commit/04921be9f151615c53adacd297718cef278fec72) Merge pull request #11287 from Youggls/dev
- [`f8f5423`](https://github.com/open-webui/open-webui/commit/f8f54237c6f2aff62d864e4e213a24a08c38af66) Merge pull request #11290 from panda44312/patch-5
- [`72ea6dd`](https://github.com/open-webui/open-webui/commit/72ea6dd9f120935db7d410271f9bfa1689b3213e) refactor(lint): code lint
### 📊 Changes
**78 files changed** (+1014 additions, -343 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/config.py` (+38 -1)
📝 `backend/open_webui/env.py` (+1 -1)
📝 `backend/open_webui/main.py` (+4 -1)
➕ `backend/open_webui/retrieval/loaders/tavily.py` (+98 -0)
📝 `backend/open_webui/retrieval/vector/dbs/opensearch.py` (+120 -64)
📝 `backend/open_webui/retrieval/web/utils.py` (+158 -67)
📝 `backend/open_webui/routers/auths.py` (+1 -1)
📝 `backend/open_webui/routers/openai.py` (+24 -12)
📝 `backend/open_webui/utils/middleware.py` (+9 -9)
📝 `backend/open_webui/utils/plugin.py` (+8 -5)
📝 `src/lib/components/AddConnectionModal.svelte` (+1 -1)
📝 `src/lib/components/admin/Settings/Documents.svelte` (+12 -4)
📝 `src/lib/components/admin/Settings/Images.svelte` (+9 -5)
📝 `src/lib/components/admin/Settings/Models/ModelList.svelte` (+2 -1)
📝 `src/lib/components/admin/Settings/WebSearch.svelte` (+6 -2)
📝 `src/lib/components/admin/Users/Groups/EditGroupModal.svelte` (+12 -3)
📝 `src/lib/components/channel/Messages.svelte` (+7 -4)
📝 `src/lib/components/chat/Chat.svelte` (+8 -1)
📝 `src/lib/components/chat/Messages/Citations.svelte` (+1 -1)
📝 `src/lib/components/chat/Messages/CodeBlock.svelte` (+3 -1)
_...and 58 more files_
</details>
### 📄 Description
Closed in favor of #11472
- **fix: install all requirements at once instead of sequentially**
- **add type hint to install_frontmatter_requirements**
- **security: sanitize input before executing pip install**
# Pull Request Checklist
### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request.
**Before submitting, make sure you've checked the following:**
- [x] **Target branch:** Please verify that the pull request targets the `dev` branch.
- [x] **Description:** Provide a concise description of the changes made in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources?
- [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
- [ ] **Testing:** Have you written and run sufficient tests for validating the changes?
- [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
- [x] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following:
- **BREAKING CHANGE**: Significant changes that may affect compatibility
- **build**: Changes that affect the build system or external dependencies
- **ci**: Changes to our continuous integration processes or workflows
- **chore**: Refactor, cleanup, or other non-functional code changes
- **docs**: Documentation update or addition
- **feat**: Introduces a new feature or enhancement to the codebase
- **fix**: Bug fix or error correction
- **i18n**: Internationalization or localization changes
- **perf**: Performance improvement
- **refactor**: Code restructuring for better maintainability, readability, or scalability
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
- **test**: Adding missing tests or correcting existing tests
- **WIP**: Work in progress, a temporary label for incomplete or ongoing work
# Changelog Entry
### Description
- With this PR the requirements are pip installed at the same time instead of sequentially. Making it faster, more controlled and handle conflicts better. In addition, we look for unexpected symbols in the requirements to increase security.
### Added
- **add type hint to install_frontmatter_requirements**
### Changed
- **fix: install all requirements at once instead of sequentially**
### Security
- **security: sanitize input before executing pip install**
---
### Additional Information
- I am writing a doc PR to document the frontmatter pip installation. I can update it depending on whether this one gets merged.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/11445
Author: @thiswillbeyourgithub
Created: 3/9/2025
Status: ❌ Closed
Base:
main← Head:enh_frontmatter_pip_install📝 Commits (10+)
9cc9df3fix(chat): resolve duplicate collapsible IDs causing citation modal failures561f4d5i18n: zh-cn98376fbi18n: zh-cn92fb110i18n(common): add i18n translation6cb0c03fix: opensearch vector db query structures, result mapping, filters, bulk query actions, knn_vector usage987954cfeat: Add Tavily extract web loader integrationd862295fix: update chat completion tools handler to use parameters from spec fixing defaults always used04921beMerge pull request #11287 from Youggls/devf8f5423Merge pull request #11290 from panda44312/patch-572ea6ddrefactor(lint): code lint📊 Changes
78 files changed (+1014 additions, -343 deletions)
View changed files
📝
backend/open_webui/config.py(+38 -1)📝
backend/open_webui/env.py(+1 -1)📝
backend/open_webui/main.py(+4 -1)➕
backend/open_webui/retrieval/loaders/tavily.py(+98 -0)📝
backend/open_webui/retrieval/vector/dbs/opensearch.py(+120 -64)📝
backend/open_webui/retrieval/web/utils.py(+158 -67)📝
backend/open_webui/routers/auths.py(+1 -1)📝
backend/open_webui/routers/openai.py(+24 -12)📝
backend/open_webui/utils/middleware.py(+9 -9)📝
backend/open_webui/utils/plugin.py(+8 -5)📝
src/lib/components/AddConnectionModal.svelte(+1 -1)📝
src/lib/components/admin/Settings/Documents.svelte(+12 -4)📝
src/lib/components/admin/Settings/Images.svelte(+9 -5)📝
src/lib/components/admin/Settings/Models/ModelList.svelte(+2 -1)📝
src/lib/components/admin/Settings/WebSearch.svelte(+6 -2)📝
src/lib/components/admin/Users/Groups/EditGroupModal.svelte(+12 -3)📝
src/lib/components/channel/Messages.svelte(+7 -4)📝
src/lib/components/chat/Chat.svelte(+8 -1)📝
src/lib/components/chat/Messages/Citations.svelte(+1 -1)📝
src/lib/components/chat/Messages/CodeBlock.svelte(+3 -1)...and 58 more files
📄 Description
Closed in favor of #11472
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
Security
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.