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
2 changed files with 3 additions and 2 deletions

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