mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
issue: Native tool calling breaks TTS Read Aloud #4312
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 @rvkwi on GitHub (Mar 7, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.5.20
Ollama Version (if applicable)
No response
Operating System
Debian 12.9
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When using Native Tool calling, the Read Aloud feature should produce audio.
Actual Behavior
Read Aloud stays silent. Seems to be related to the type "tool_calls".
Steps to Reproduce
Logs & Screenshots
Not really seeing much in the docker logs but this comes through the browser console:
Additional Information
There seems to be a bug with Native Tool calling mode on models where the TTS seems to break.
Simple example tool (altho not related to this, had this across different tools).
If i run this:
Now the "Read Aloud" button (using OpenAI as the TTS in my case) stays silent (but active) when used.
Toying around with this, It seems to be related to the type.
Creating a simple filter that switches out the type from
tool_callsintocode_interpreterfixes itnow TTS (Read Aloud) works just fine.
I'm not a typescript dev, I was trying to dig through the source but it's out of my comfort zone and wasn't able to find where this goes wrong.
But I wanted to report it for someone else who might know, it seems easily reproducible and related to the "type=" part of the response.
@tjbck commented on GitHub (Mar 7, 2025):
Good catch, fixed with
ab92737a9a