Fix some usage events.

This commit is contained in:
Adam Treat 2023-05-09 23:43:16 -04:00
parent c8e9259bd1
commit 27599d4a0a
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;