Fix regression while using localdocs with server API. (#3410)

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
AT
2025-01-24 10:26:24 -05:00
committed by GitHub
parent 49df6464a7
commit b98501c786
2 changed files with 6 additions and 1 deletions

View File

@@ -869,7 +869,7 @@ auto ChatLLM::promptInternalChat(const QStringList &enabledCollections, const LL
auto &[promptIndex, queryStr] = *query;
const int retrievalSize = MySettings::globalInstance()->localDocsRetrievalSize();
emit requestRetrieveFromDB(enabledCollections, queryStr, retrievalSize, &databaseResults); // blocks
m_chatModel->updateSources(promptIndex, databaseResults);
m_chatModel->updateSources(promptIndex + startOffset, databaseResults);
emit databaseResultsChanged(databaseResults);
}
}