Improve thinking blocks look
This problem is best seen with OpenAI models. A lot of empty thinking blocks remain in the chat.
I think it would be best to display X consecutive empty thinking blocks as one 'thinking...' and remove it once we receive the response. If multiple thinking blocks with text follow each other (probably even if there are empty ones between them), it would make sense to combine them. However, everything should be done in such a way that we do not change the actual conversation history that we send to the provider.
Would be good to solve this on a server side.
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
@zikajk after some research I found a way to do that only on server, keeping the reasonFinished protocol message until no next reason, I believe it's working nice, but would be nice if you could test more
@ericdallo Sounds great! Will do.