From 2efb336b8a7d2cbc02c19f0837642da4009f341f Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Thu, 19 Dec 2024 16:27:10 -0500 Subject: [PATCH] chatmodel: fix sources showing as unconsolidated in UI (#3328) Signed-off-by: Jared Van Bortel --- gpt4all-chat/CHANGELOG.md | 1 + gpt4all-chat/src/chatmodel.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gpt4all-chat/CHANGELOG.md b/gpt4all-chat/CHANGELOG.md index 331994be0b82..f144d449ed2f 100644 --- a/gpt4all-chat/CHANGELOG.md +++ b/gpt4all-chat/CHANGELOG.md @@ -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 diff --git a/gpt4all-chat/src/chatmodel.h b/gpt4all-chat/src/chatmodel.h index 3cdb3ccfc376..25eb8e71808c 100644 --- a/gpt4all-chat/src/chatmodel.h +++ b/gpt4all-chat/src/chatmodel.h @@ -275,7 +275,7 @@ class ChatModel : public QAbstractListModel QList 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 @@ class ChatModel : public QAbstractListModel QList data; if (item->type() == ChatItem::Type::Response) { if (auto prompt = getPeerUnlocked(item)) - data = (*prompt)->sources; + data = (*prompt)->consolidatedSources; } return QVariant::fromValue(data); }