From cefca34445dea81470b581d65f44a5a33f0a5e15 Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Thu, 19 Dec 2024 16:39:56 -0500 Subject: [PATCH] undo unintentional partial revert of #3173 Signed-off-by: Jared Van Bortel --- gpt4all-chat/qml/ChatCollapsibleItem.qml | 2 +- gpt4all-chat/qml/ChatTextItem.qml | 2 +- gpt4all-chat/src/chatmodel.cpp | 6 ++++++ gpt4all-chat/src/toolmodel.cpp | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gpt4all-chat/qml/ChatCollapsibleItem.qml b/gpt4all-chat/qml/ChatCollapsibleItem.qml index 4ff01511bf9b..cdfa2c40d4f7 100644 --- a/gpt4all-chat/qml/ChatCollapsibleItem.qml +++ b/gpt4all-chat/qml/ChatCollapsibleItem.qml @@ -157,4 +157,4 @@ ColumnLayout { } } } -} \ No newline at end of file +} diff --git a/gpt4all-chat/qml/ChatTextItem.qml b/gpt4all-chat/qml/ChatTextItem.qml index e316bf1ce7bc..ca4c2fa2ff6e 100644 --- a/gpt4all-chat/qml/ChatTextItem.qml +++ b/gpt4all-chat/qml/ChatTextItem.qml @@ -136,4 +136,4 @@ TextArea { Accessible.role: Accessible.Paragraph Accessible.name: text Accessible.description: name === "Response: " ? "The response by the model" : "The prompt by the user" -} \ No newline at end of file +} diff --git a/gpt4all-chat/src/chatmodel.cpp b/gpt4all-chat/src/chatmodel.cpp index 54af48d21f38..158627400f23 100644 --- a/gpt4all-chat/src/chatmodel.cpp +++ b/gpt4all-chat/src/chatmodel.cpp @@ -1,5 +1,11 @@ #include "chatmodel.h" +#include +#include +#include +#include + + QList ChatItem::consolidateSources(const QList &sources) { QMap groupedData; diff --git a/gpt4all-chat/src/toolmodel.cpp b/gpt4all-chat/src/toolmodel.cpp index 50d3369cf3a9..aade79f82dca 100644 --- a/gpt4all-chat/src/toolmodel.cpp +++ b/gpt4all-chat/src/toolmodel.cpp @@ -14,8 +14,8 @@ ToolModel *ToolModel::globalInstance() } ToolModel::ToolModel() - : QAbstractListModel(nullptr) { - + : QAbstractListModel(nullptr) +{ QCoreApplication::instance()->installEventFilter(this); Tool* codeInterpreter = new CodeInterpreter;