mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-12 14:45:38 -06:00
[PR #23659] [CLOSED] fix: fallback to /models for custom TTS endpoints breaking on /audio/models #42935
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23659
Author: @silentoplayz
Created: 4/13/2026
Status: ❌ Closed
Base:
dev← Head:fix/audio-custom-models-fallback📝 Commits (1)
62bb3f9fix(audio): fallback to /models for custom TTS endpoints breaking on /audio/models📊 Changes
1 file changed (+54 additions, -8 deletions)
View changed files
📝
backend/open_webui/routers/audio.py(+54 -8)📄 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.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
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
/audio/modelsdirectly down to/modelsupon failure. Furthermore, fortified model formatting dynamically across models arrays regardless of whether dicts or raw strings were yielded dynamically.Fixed
/modelsfor endpoint/audio/modelscompatibility in custom TTS setups like KokoroTTS.idkeys.string indices must be integerscrash from bleeding into the Admin Panel when simultaneously fetching/audio/voicesin tandem.Noneor falsy elements structurally from lists to prevent synthesizing bogus{'id': 'None'}items out onto the UI.string indices must be integerscrash from bleeding into the Admin Panel when simultaneously fetching/audio/voicesin tandem.Additional Information
/audio/modelsthrowing 404 directly up to recovering with/modelsunder-the-hood.Screenshots or Videos
Part 1 of fix
Before:
After:
Part 2 of fix
Before:
After:
Part 3 of fix
Before:
After:
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.