mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #23464] [CLOSED] fix: use os.path.join for cross-platform audio chunk path (Windows compatibility) #50258
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/23464
Author: @D2758695161
Created: 4/7/2026
Status: ❌ Closed
Base:
main← Head:fix/windows-audio-path📝 Commits (1)
757d11bfix: use os.path.join for cross-platform chunk path construction📊 Changes
1 file changed (+1344 additions, -1344 deletions)
View changed files
📝
backend/open_webui/routers/audio.py(+1344 -1344)📄 Description
Fix: Windows Audio Chunk Path Bug
Issue: #23444 - wrong audio file path on Windows
Root Cause: In split_audio(), the chunk path was constructed using Python f-string concatenation:
python chunk_path = f'{base}_chunk_{i}.{format}'On Windows, this produces paths like C:\path\uploads_chunk_0.mp3 which may cause issues in some Windows configurations due to the underscore immediately after the backslash separator.
Fix: Use os.path.join() for proper cross-platform path construction:
python chunk_path = os.path.join(os.path.dirname(base), f'{os.path.basename(base)}_chunk_{i}.{format}')Testing: The fix ensures proper path separator handling across Windows/macOS/Linux.
Fixes #23444
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.