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. (#3410)
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
49df6464a7
commit
b98501c786
gpt4all-chat
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user