mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-02 17:15:18 +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();
|
m_tokenSpeed = QString();
|
||||||
emit tokenSpeedChanged();
|
emit tokenSpeedChanged();
|
||||||
m_responseInProgress = true;
|
m_responseInProgress = true;
|
||||||
m_responseState = Chat::LocalDocsRetrieval;
|
m_responseState = m_collections.empty() ? Chat::PromptProcessing : Chat::LocalDocsRetrieval;
|
||||||
emit responseInProgressChanged();
|
emit responseInProgressChanged();
|
||||||
emit responseStateChanged();
|
emit responseStateChanged();
|
||||||
}
|
}
|
||||||
@@ -120,7 +120,7 @@ void Chat::resetResponseState()
|
|||||||
void Chat::prompt(const QString &prompt)
|
void Chat::prompt(const QString &prompt)
|
||||||
{
|
{
|
||||||
resetResponseState();
|
resetResponseState();
|
||||||
emit promptRequested( m_collections, prompt);
|
emit promptRequested(m_collections, prompt);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Chat::regenerateResponse()
|
void Chat::regenerateResponse()
|
||||||
|
Reference in New Issue
Block a user