mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-03 18:48:19 +00:00
Some cleanps
This commit is contained in:
parent
c72c73a94f
commit
3e99b90c0b
@ -10,14 +10,9 @@ Chat::Chat(QObject *parent)
|
|||||||
, m_id(Network::globalInstance()->generateUniqueId())
|
, m_id(Network::globalInstance()->generateUniqueId())
|
||||||
, m_name(tr("New Chat"))
|
, m_name(tr("New Chat"))
|
||||||
, m_chatModel(new ChatModel(this))
|
, m_chatModel(new ChatModel(this))
|
||||||
, m_responseInProgress(false)
|
|
||||||
, m_responseState(Chat::ResponseStopped)
|
, m_responseState(Chat::ResponseStopped)
|
||||||
, m_creationDate(QDateTime::currentSecsSinceEpoch())
|
, m_creationDate(QDateTime::currentSecsSinceEpoch())
|
||||||
, m_llmodel(new ChatLLM(this))
|
, m_llmodel(new ChatLLM(this))
|
||||||
, m_isServer(false)
|
|
||||||
, m_shouldDeleteLater(false)
|
|
||||||
, m_isModelLoaded(false)
|
|
||||||
, m_shouldLoadModelWhenInstalled(false)
|
|
||||||
, m_collectionModel(new LocalDocsCollectionsModel(this))
|
, m_collectionModel(new LocalDocsCollectionsModel(this))
|
||||||
{
|
{
|
||||||
connectLLM();
|
connectLLM();
|
||||||
|
@ -155,15 +155,15 @@ private:
|
|||||||
QString m_response;
|
QString m_response;
|
||||||
QList<QString> m_collections;
|
QList<QString> m_collections;
|
||||||
ChatModel *m_chatModel;
|
ChatModel *m_chatModel;
|
||||||
bool m_responseInProgress;
|
bool m_responseInProgress = false;
|
||||||
ResponseState m_responseState;
|
ResponseState m_responseState;
|
||||||
qint64 m_creationDate;
|
qint64 m_creationDate;
|
||||||
ChatLLM *m_llmodel;
|
ChatLLM *m_llmodel;
|
||||||
QList<ResultInfo> m_databaseResults;
|
QList<ResultInfo> m_databaseResults;
|
||||||
bool m_isServer;
|
bool m_isServer = false;
|
||||||
bool m_shouldDeleteLater;
|
bool m_shouldDeleteLater = false;
|
||||||
bool m_isModelLoaded;
|
bool m_isModelLoaded = false;
|
||||||
bool m_shouldLoadModelWhenInstalled;
|
bool m_shouldLoadModelWhenInstalled = false;
|
||||||
LocalDocsCollectionsModel *m_collectionModel;
|
LocalDocsCollectionsModel *m_collectionModel;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -16,9 +16,6 @@ ChatListModel *ChatListModel::globalInstance()
|
|||||||
|
|
||||||
ChatListModel::ChatListModel()
|
ChatListModel::ChatListModel()
|
||||||
: QAbstractListModel(nullptr)
|
: QAbstractListModel(nullptr)
|
||||||
, m_newChat(nullptr)
|
|
||||||
, m_serverChat(nullptr)
|
|
||||||
, m_currentChat(nullptr)
|
|
||||||
{
|
{
|
||||||
addChat();
|
addChat();
|
||||||
|
|
||||||
|
@ -239,9 +239,9 @@ private Q_SLOTS:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Chat* m_newChat;
|
Chat* m_newChat = nullptr;
|
||||||
Chat* m_serverChat;
|
Chat* m_serverChat = nullptr;
|
||||||
Chat* m_currentChat;
|
Chat* m_currentChat = nullptr;
|
||||||
QList<Chat*> m_chats;
|
QList<Chat*> m_chats;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user