mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-04-27 19:35:20 +00:00
modellist: remove redundant !isCompatibleApi
check
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
4f97e8fef0
commit
1ab69aa156
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user