mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
Fix some usage events.
This commit is contained in:
parent
c8e9259bd1
commit
27599d4a0a
6
chat.cpp
6
chat.cpp
@ -107,10 +107,10 @@ void Chat::responseStopped()
|
||||
{
|
||||
m_responseInProgress = false;
|
||||
emit responseInProgressChanged();
|
||||
if (m_llmodel->generatedName().isEmpty()) {
|
||||
Network::globalInstance()->sendChatStarted();
|
||||
if (m_llmodel->generatedName().isEmpty())
|
||||
emit generateNameRequested();
|
||||
}
|
||||
if (chatModel()->count() < 3)
|
||||
Network::globalInstance()->sendChatStarted();
|
||||
}
|
||||
|
||||
QString Chat::modelName() const
|
||||
|
@ -124,7 +124,7 @@ bool ChatLLM::loadModel(const QString &modelName)
|
||||
|
||||
emit isModelLoadedChanged();
|
||||
|
||||
static bool isFirstLoad = false;
|
||||
static bool isFirstLoad = true;
|
||||
if (isFirstLoad) {
|
||||
emit sendStartup();
|
||||
isFirstLoad = false;
|
||||
|
Loading…
Reference in New Issue
Block a user