mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-22 02:22:44 -05:00
fix: Filter empty thinking blocks for google ai
This commit is contained in:
@ -525,6 +525,11 @@ void GoogleAIProvider::emitPendingThinkingBlocks(const QString &requestId)
|
|||||||
|
|
||||||
for (int i = alreadyEmitted; i < totalBlocks; ++i) {
|
for (int i = alreadyEmitted; i < totalBlocks; ++i) {
|
||||||
auto thinkingContent = thinkingBlocks[i];
|
auto thinkingContent = thinkingBlocks[i];
|
||||||
|
|
||||||
|
if (thinkingContent->thinking().trimmed().isEmpty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
emit thinkingBlockReceived(
|
emit thinkingBlockReceived(
|
||||||
requestId,
|
requestId,
|
||||||
thinkingContent->thinking(),
|
thinkingContent->thinking(),
|
||||||
|
|||||||
Reference in New Issue
Block a user