diff --git a/chat/ChatClientInterface.cpp b/chat/ChatClientInterface.cpp index 65ce9bd..265f330 100644 --- a/chat/ChatClientInterface.cpp +++ b/chat/ChatClientInterface.cpp @@ -114,7 +114,6 @@ void ChatClientInterface::clearMessages() void ChatClientInterface::handleLLMResponse(const QString &response, bool isComplete) { m_accumulatedResponse += response; - logMessage("Accumulated response: " + m_accumulatedResponse); if (isComplete) { logMessage("Message completed. Final response: " + m_accumulatedResponse); diff --git a/chat/ChatWidget.cpp b/chat/ChatWidget.cpp index 1dbac73..b99dbad 100644 --- a/chat/ChatWidget.cpp +++ b/chat/ChatWidget.cpp @@ -77,7 +77,6 @@ void ChatWidget::sendMessage() void ChatWidget::receiveMessage(const QString &message) { - logMessage("Received message: " + message); updateLastAIMessage(message); } @@ -90,7 +89,6 @@ void ChatWidget::receivePartialMessage(const QString &partialMessage) void ChatWidget::onMessageCompleted() { - logMessage("Message completed. Final response: " + m_currentAIResponse); updateLastAIMessage(m_currentAIResponse); m_currentAIResponse.clear(); scrollToBottom(); @@ -107,14 +105,12 @@ void ChatWidget::addMessage(const QString &message, bool fromUser) auto prefix = fromUser ? "You: " : "AI: "; QString timestamp = m_showTimestamp ? QDateTime::currentDateTime().toString("[hh:mm:ss] ") : ""; QString fullMessage = timestamp + prefix + message; - logMessage("Adding message to display: " + fullMessage); m_chatDisplay->append(fullMessage); scrollToBottom(); } void ChatWidget::updateLastAIMessage(const QString &message) { - logMessage("Updating last AI message: " + message); QTextCursor cursor = m_chatDisplay->textCursor(); cursor.movePosition(QTextCursor::End); cursor.movePosition(QTextCursor::StartOfBlock, QTextCursor::KeepAnchor);