Skip to content
Discussion options

You must be logged in to vote

I do not see a separate setting for this at the moment. It looks like a small cleanup bug rather than an option you missed.

The TTS path already tries to remove closed thinking blocks before sending text to speech. The problem is that the cleaner currently matches bare tags like:

<think>...</think>
<thinking>...</thinking>

but the streaming code later rewrites the tag to include the elapsed time:

<think time="...">...</think>

That attributed tag no longer matches the current cleanup regex, so the hidden section can become plain text for TTS.

A narrow fix would be to let the TTS text cleaner accept attributes on the opening tag, and optionally strip a dangling opening block too:

let cleaned

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PaxUX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants