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

View File

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