fix: Found and fix review mistakes

This commit is contained in:
Petr Mironychev
2026-07-02 22:26:07 +02:00
parent c070d65366
commit 35bbaa1af0
139 changed files with 2032 additions and 1573 deletions

View File

@@ -102,7 +102,7 @@ void ResponseRouter::onThinking(
return;
ensureAssistantOpen();
if (m_history)
m_history->appendThinkingDeltaToLast(thinking, signature);
m_history->appendThinkingBlockToLast(thinking, signature);
emit event(ResponseEvent::thinkingDelta(thinking, signature));
}
@@ -153,11 +153,12 @@ void ResponseRouter::onFinalized(
if (id != m_activeId)
return;
if (info.usage) {
emit event(ResponseEvent::usage(
info.usage->promptTokens,
info.usage->completionTokens,
info.usage->cachedPromptTokens,
info.usage->reasoningTokens));
emit event(
ResponseEvent::usage(
info.usage->promptTokens,
info.usage->completionTokens,
info.usage->cachedPromptTokens,
info.usage->reasoningTokens));
}
emit event(ResponseEvent::messageStop(info.stopReason));
endRequest();