mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-26 07:23:38 +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;
|
m_responseInProgress = false;
|
||||||
emit responseInProgressChanged();
|
emit responseInProgressChanged();
|
||||||
if (m_llmodel->generatedName().isEmpty()) {
|
if (m_llmodel->generatedName().isEmpty())
|
||||||
Network::globalInstance()->sendChatStarted();
|
|
||||||
emit generateNameRequested();
|
emit generateNameRequested();
|
||||||
}
|
if (chatModel()->count() < 3)
|
||||||
|
Network::globalInstance()->sendChatStarted();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString Chat::modelName() const
|
QString Chat::modelName() const
|
||||||
|
@ -124,7 +124,7 @@ bool ChatLLM::loadModel(const QString &modelName)
|
|||||||
|
|
||||||
emit isModelLoadedChanged();
|
emit isModelLoadedChanged();
|
||||||
|
|
||||||
static bool isFirstLoad = false;
|
static bool isFirstLoad = true;
|
||||||
if (isFirstLoad) {
|
if (isFirstLoad) {
|
||||||
emit sendStartup();
|
emit sendStartup();
|
||||||
isFirstLoad = false;
|
isFirstLoad = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user