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:
Changelog Entry
Description
With the move to env.py some imports were still looking in the config.py file
Changed
Sort imports on backend python files.
Some minor formatting on different python files.
Fixed
Fix import with the move to env.py
🔄 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/4956
**Author:** [@pascallim](https://github.com/pascallim)
**Created:** 8/27/2024
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `fix/imports`
---
### 📝 Commits (1)
- [`0eba99b`](https://github.com/open-webui/open-webui/commit/0eba99be656e05a479adc33c3c43b1d82cc134f3) sort and fix backend imports
### 📊 Changes
**63 files changed** (+541 additions, -962 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/apps/audio/main.py` (+18 -31)
📝 `backend/apps/images/main.py` (+23 -35)
📝 `backend/apps/images/utils/comfyui.py` (+7 -9)
📝 `backend/apps/ollama/main.py` (+19 -33)
📝 `backend/apps/openai/main.py` (+21 -29)
📝 `backend/apps/rag/main.py` (+81 -108)
📝 `backend/apps/rag/search/brave.py` (+2 -2)
📝 `backend/apps/rag/search/duckduckgo.py` (+2 -1)
📝 `backend/apps/rag/search/google_pse.py` (+2 -3)
📝 `backend/apps/rag/search/jina_search.py` (+3 -3)
📝 `backend/apps/rag/search/main.py` (+1 -0)
📝 `backend/apps/rag/search/searxng.py` (+2 -3)
📝 `backend/apps/rag/search/serper.py` (+2 -2)
📝 `backend/apps/rag/search/serply.py` (+2 -3)
📝 `backend/apps/rag/search/serpstack.py` (+2 -3)
📝 `backend/apps/rag/search/tavily.py` (+1 -2)
📝 `backend/apps/rag/utils.py` (+14 -24)
📝 `backend/apps/socket/main.py` (+1 -2)
📝 `backend/apps/webui/internal/db.py` (+9 -14)
📝 `backend/apps/webui/internal/wrappers.py` (+5 -5)
_...and 43 more files_
</details>
### 📄 Description
# Pull Request Checklist
**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.
- [x] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources?
- [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
- [x] **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:
# Changelog Entry
### Description
- With the move to env.py some imports were still looking in the config.py file
### Changed
- Sort imports on backend python files.
- Some minor formatting on different python files.
### Fixed
- Fix import with the move to env.py
---
<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/4956
Author: @pascallim
Created: 8/27/2024
Status: ❌ Closed
Base:
dev← Head:fix/imports📝 Commits (1)
0eba99bsort and fix backend imports📊 Changes
63 files changed (+541 additions, -962 deletions)
View changed files
📝
backend/apps/audio/main.py(+18 -31)📝
backend/apps/images/main.py(+23 -35)📝
backend/apps/images/utils/comfyui.py(+7 -9)📝
backend/apps/ollama/main.py(+19 -33)📝
backend/apps/openai/main.py(+21 -29)📝
backend/apps/rag/main.py(+81 -108)📝
backend/apps/rag/search/brave.py(+2 -2)📝
backend/apps/rag/search/duckduckgo.py(+2 -1)📝
backend/apps/rag/search/google_pse.py(+2 -3)📝
backend/apps/rag/search/jina_search.py(+3 -3)📝
backend/apps/rag/search/main.py(+1 -0)📝
backend/apps/rag/search/searxng.py(+2 -3)📝
backend/apps/rag/search/serper.py(+2 -2)📝
backend/apps/rag/search/serply.py(+2 -3)📝
backend/apps/rag/search/serpstack.py(+2 -3)📝
backend/apps/rag/search/tavily.py(+1 -2)📝
backend/apps/rag/utils.py(+14 -24)📝
backend/apps/socket/main.py(+1 -2)📝
backend/apps/webui/internal/db.py(+9 -14)📝
backend/apps/webui/internal/wrappers.py(+5 -5)...and 43 more files
📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Changed
Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.