mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
issue: OpenAI whisper via API, Content-Type header is not sent
#4587
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?
Originally created by @AlexanderZhk on GitHub (Mar 27, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04 LTS
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When using a self-hosted OpenAI compatible whisper API, requests should look like this:
Please notice the
Content-Type: audio/waveheader.Actual Behavior
Requests sent from OWIU are missing the
Content-Type: audio/waveheader:Steps to Reproduce
b03fc97e28/backend/open_webui/routers/audio.py (L511)Logs & Screenshots
Additional Information
This is critical, when using VoxBox.
Changing
b03fc97e28/backend/open_webui/routers/audio.py (L511)to
seems to fix it.
@tjbck commented on GitHub (Mar 28, 2025):
Content-Typeis not required for OpenAI whisper.