mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #24379] [MERGED] fix: offload STT transcription in file processing path #131293
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/24379
Author: @jmleksan
Created: 5/5/2026
Status: ✅ Merged
Merged: 5/8/2026
Merged by: @tjbck
Base:
dev← Head:fix/transcibe-blocking-files-upload📝 Commits (1)
e78fae5Refactor file processing to use asyncio for transcribing, improving concurrency.📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/files.py(+7 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
filesrouter behavior with async concurrency expectations and reduces request latency/jitter under concurrent load.Changed
backend/open_webui/routers/files.py,process_uploaded_file()now calls:await asyncio.to_thread(transcribe, request, file_path_processed, file_metadata, user)instead of calling
transcribe(...)directly in async flow.Fixed
filesrouter path.Additional Information
asyncio.to_thread.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.