chatmodel: fix sources showing as unconsolidated in UI (#3328)

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel 2024-12-19 16:27:10 -05:00 committed by GitHub
parent 3819842bcc
commit 2efb336b8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
### Fixed
- Fix remote model template to allow for XML in messages ([#3318](https://github.com/nomic-ai/gpt4all/pull/3318))
- Fix Jinja2Cpp bug that broke system message detection in chat templates ([#3325](https://github.com/nomic-ai/gpt4all/pull/3325))
- Fix LocalDocs sources displaying in unconsolidated form after v3.5.0 ([#3328](https://github.com/nomic-ai/gpt4all/pull/3328))
## [3.5.3] - 2024-12-16

View File

@ -275,7 +275,7 @@ public:
QList<ResultInfo> data;
if (item->type() == ChatItem::Type::Response) {
if (auto prompt = getPeerUnlocked(item))
data = (*prompt)->consolidatedSources;
data = (*prompt)->sources;
}
return QVariant::fromValue(data);
}
@ -284,7 +284,7 @@ public:
QList<ResultInfo> data;
if (item->type() == ChatItem::Type::Response) {
if (auto prompt = getPeerUnlocked(item))
data = (*prompt)->sources;
data = (*prompt)->consolidatedSources;
}
return QVariant::fromValue(data);
}