mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #14509] [MERGED] fix: only trust codec_name for audio conversion #39122
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/14509
Author: @r0mdau
Created: 5/29/2025
Status: ✅ Merged
Merged: 5/29/2025
Merged by: @tjbck
Base:
dev← Head:fix/audio-format📝 Commits (3)
737dc77Merge pull request #14390 from open-webui/devba0088fMerge pull request #14441 from open-webui/devb12a493fix: only trust codec_name for audio conversion📊 Changes
1 file changed (+3 additions, -6 deletions)
View changed files
📝
backend/open_webui/routers/audio.py(+3 -6)📄 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
.wavextension with incompatibleopusOpenAI codec. It is best to rely only on codec_nameFixed
Additional Information
When using the call function, I am using Chrome and OpenWebUI ends with
.wavaudio file extension with aopuscodec name. I get a 400 error from OpenAI for incompatible audio format when usingSo in the
audio.pyfile, theis_audio_conversion_requiredfunction returns false.It is generally a bad practice to act on file extensions, when having good tools that can read files metadata, this is more reliable.
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.