Skip to content

Commit

Permalink
chatmodel: fix sources showing as unconsolidated in UI (#3328)
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
  • Loading branch information
cebtenzzre authored Dec 19, 2024
1 parent 3819842 commit 2efb336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions gpt4all-chat/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions gpt4all-chat/src/chatmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class ChatModel : public QAbstractListModel
QList<ResultInfo> data;
if (item->type() == ChatItem::Type::Response) {
if (auto prompt = getPeerUnlocked(item))
data = (*prompt)->consolidatedSources;
data = (*prompt)->sources;
}
return QVariant::fromValue(data);
}
Expand All @@ -284,7 +284,7 @@ class ChatModel : public QAbstractListModel
QList<ResultInfo> data;
if (item->type() == ChatItem::Type::Response) {
if (auto prompt = getPeerUnlocked(item))
data = (*prompt)->sources;
data = (*prompt)->consolidatedSources;
}
return QVariant::fromValue(data);
}
Expand Down

0 comments on commit 2efb336

Please sign in to comment.