[PR #11163] [MERGED] chore: Use platform specific path separators #61528

Closed
opened 2026-05-06 05:04:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/11163
Author: @tidely
Created: 3/4/2025
Status: Merged
Merged: 3/5/2025
Merged by: @tjbck

Base: devHead: pathfix


📝 Commits (1)

  • b15814c chore: remove unnecessary Path conversions

📊 Changes

7 files changed (+10 additions, -10 deletions)

View changed files

📝 backend/open_webui/config.py (+4 -4)
📝 backend/open_webui/routers/audio.py (+1 -1)
📝 backend/open_webui/routers/functions.py (+1 -1)
📝 backend/open_webui/routers/images.py (+1 -1)
📝 backend/open_webui/routers/openai.py (+1 -1)
📝 backend/open_webui/routers/tools.py (+1 -1)
📝 backend/open_webui/utils/pdf_generator.py (+1 -1)

📄 Description

Description

Remove unnecessary pathlib.Path conversions. (CACHE_DIR and DATA_DIR)

Use / Path joining shorthand to ensure using platform specific Path separators (Windows: \\, Unix: /)


🔄 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/11163 **Author:** [@tidely](https://github.com/tidely) **Created:** 3/4/2025 **Status:** ✅ Merged **Merged:** 3/5/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `pathfix` --- ### 📝 Commits (1) - [`b15814c`](https://github.com/open-webui/open-webui/commit/b15814c42f4d5bf51aed5cf2ea3f6a161c74a7e6) chore: remove unnecessary Path conversions ### 📊 Changes **7 files changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+4 -4) 📝 `backend/open_webui/routers/audio.py` (+1 -1) 📝 `backend/open_webui/routers/functions.py` (+1 -1) 📝 `backend/open_webui/routers/images.py` (+1 -1) 📝 `backend/open_webui/routers/openai.py` (+1 -1) 📝 `backend/open_webui/routers/tools.py` (+1 -1) 📝 `backend/open_webui/utils/pdf_generator.py` (+1 -1) </details> ### 📄 Description # Description Remove unnecessary `pathlib.Path` conversions. (CACHE_DIR and DATA_DIR) Use `/` Path joining shorthand to ensure using platform specific Path separators (Windows: `\\`, Unix: `/`) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 05:04:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#61528