1
0
mirror of https://github.com/nomic-ai/gpt4all.git synced 2025-05-05 06:57:15 +00:00

Fix regression while using localdocs with server API. ()

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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [Unreleased]
### Fixed
- Fix regression while using localdocs with server API ([#3410](https://github.com/nomic-ai/gpt4all/pull/3410))
## [3.7.0] - 2025-01-21
### Added

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);
}
}