mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-01 03:17:20 -05:00
[GH-ISSUE #12128] issue: OpenAI whisper via API, Content-Type header is not sent
#103473
Reference in New Issue
Block a user
Originally created by @AlexanderZhk on GitHub (Mar 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12128
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
https://github.com/open-webui/open-webui/blob/b03fc97e287f31ad07bda896143959bc4413f7d2/backend/open_webui/routers/audio.py#L511
Logs & Screenshots
Additional Information
This is critical, when using VoxBox.
Changing
https://github.com/open-webui/open-webui/blob/b03fc97e287f31ad07bda896143959bc4413f7d2/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.