mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
[PR #5237] [CLOSED] feat:Compress Large Audio Files (< 25 MB) & Integrate GroqAI Transcription #8443
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/5237
Author: @bekmuradov
Created: 9/6/2024
Status: ❌ Closed
Base:
dev← Head:main📝 Commits (9)
05c0423Merge pull request #5197 from open-webui/dev4617f3aMerge pull request #5200 from open-webui/dev4fdc291Add file compressor if the file is more than 25MBe387320Add groqai transcription58ebc80Refactor and clean up the code8fb857aCreate file validator utilsfe35ae6Define supported audio mime types and file size constantsc2ff489Install nprogress - progress bar4629f3cUse file validators and show upload progress📊 Changes
11 files changed (+429 additions, -129 deletions)
View changed files
📝
backend/open_webui/apps/audio/main.py(+188 -87)📝
backend/open_webui/config.py(+12 -0)📝
backend/open_webui/constants.py(+4 -1)➕
backend/open_webui/utils/compress_audio.py(+34 -0)📝
package-lock.json(+15 -0)📝
package.json(+2 -0)📝
src/lib/components/admin/Settings/Audio.svelte(+42 -0)📝
src/lib/components/workspace/Documents.svelte(+69 -37)📝
src/lib/constants.ts(+15 -4)➕
src/lib/utils/documents/file-validator.ts(+47 -0)➕
src/lib/utils/documents/index.ts(+1 -0)📄 Description
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
Compress large audio files: Both OpenAI Whisper and GroqAI transcription endpoints have a file size limit of 25 MB. Currently, OpenWebUI doesn't validate file sizes during upload or show progress while processing. It would be useful to automatically compress files larger than 25 MB to stay within this limit.
Integrate GroqAI Transcription: GroqAI transcription is faster than OpenAI Whisper, and adding it as an option could improve the overall user experience.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.