Skip to content

Commit

Permalink
chat: don't show "retrieving localdocs" for zero collections (#1874)
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Van Bortel <[email protected]>
  • Loading branch information
cebtenzzre authored Jan 29, 2024
1 parent cfa22ab commit 29d2c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpt4all-chat/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ 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();
}

void Chat::prompt(const QString &prompt)
{
resetResponseState();
emit promptRequested( m_collections, prompt);
emit promptRequested(m_collections, prompt);
}

void Chat::regenerateResponse()
Expand Down

0 comments on commit 29d2c93

Please sign in to comment.