From 1ab69aa1562c89f7503a8f3db07ce4d799bae6c3 Mon Sep 17 00:00:00 2001 From: Jared Van Bortel <jared@nomic.ai> Date: Mon, 24 Feb 2025 14:07:20 -0500 Subject: [PATCH] modellist: remove redundant `!isCompatibleApi` check Signed-off-by: Jared Van Bortel <jared@nomic.ai> --- gpt4all-chat/src/modellist.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gpt4all-chat/src/modellist.cpp b/gpt4all-chat/src/modellist.cpp index b24ffa1f..248f2f09 100644 --- a/gpt4all-chat/src/modellist.cpp +++ b/gpt4all-chat/src/modellist.cpp @@ -503,11 +503,10 @@ bool GPT4AllDownloadableModels::filterAcceptsRow(int sourceRow, bool isClone = sourceModel()->data(index, ModelList::IsCloneRole).toBool(); bool isDiscovered = sourceModel()->data(index, ModelList::IsDiscoveredRole).toBool(); bool isOnline = sourceModel()->data(index, ModelList::OnlineRole).toBool(); - bool isCompatibleApi = sourceModel()->data(index, ModelList::CompatibleApiRole).toBool(); bool satisfiesKeyword = m_keywords.isEmpty(); for (const QString &k : m_keywords) satisfiesKeyword = description.contains(k) ? true : satisfiesKeyword; - return !isOnline && !isCompatibleApi && !isDiscovered && hasDescription && !isClone && satisfiesKeyword; + return !isOnline && !isDiscovered && hasDescription && !isClone && satisfiesKeyword; } int GPT4AllDownloadableModels::count() const