chat: don't show "retrieving localdocs" for zero collections (#1874)

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel
2024-01-29 13:57:42 -05:00
committed by GitHub
parent cfa22ab1c4
commit 29d2c936d1

View File

@@ -112,7 +112,7 @@ void Chat::resetResponseState()
m_tokenSpeed = QString();
emit tokenSpeedChanged();
m_responseInProgress = true;
m_responseState = Chat::LocalDocsRetrieval;
m_responseState = m_collections.empty() ? Chat::PromptProcessing : Chat::LocalDocsRetrieval;
emit responseInProgressChanged();
emit responseStateChanged();
}
@@ -120,7 +120,7 @@ void Chat::resetResponseState()
void Chat::prompt(const QString &prompt)
{
resetResponseState();
emit promptRequested( m_collections, prompt);
emit promptRequested(m_collections, prompt);
}
void Chat::regenerateResponse()