mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-31 08:13:08 +00:00
chat: don't show "retrieving localdocs" for zero collections (#1874)
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user