mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-04-28 11:44:17 +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 isClone = sourceModel()->data(index, ModelList::IsCloneRole).toBool();
|
||||||
bool isDiscovered = sourceModel()->data(index, ModelList::IsDiscoveredRole).toBool();
|
bool isDiscovered = sourceModel()->data(index, ModelList::IsDiscoveredRole).toBool();
|
||||||
bool isOnline = sourceModel()->data(index, ModelList::OnlineRole).toBool();
|
bool isOnline = sourceModel()->data(index, ModelList::OnlineRole).toBool();
|
||||||
bool isCompatibleApi = sourceModel()->data(index, ModelList::CompatibleApiRole).toBool();
|
|
||||||
bool satisfiesKeyword = m_keywords.isEmpty();
|
bool satisfiesKeyword = m_keywords.isEmpty();
|
||||||
for (const QString &k : m_keywords)
|
for (const QString &k : m_keywords)
|
||||||
satisfiesKeyword = description.contains(k) ? true : satisfiesKeyword;
|
satisfiesKeyword = description.contains(k) ? true : satisfiesKeyword;
|
||||||
return !isOnline && !isCompatibleApi && !isDiscovered && hasDescription && !isClone && satisfiesKeyword;
|
return !isOnline && !isDiscovered && hasDescription && !isClone && satisfiesKeyword;
|
||||||
}
|
}
|
||||||
|
|
||||||
int GPT4AllDownloadableModels::count() const
|
int GPT4AllDownloadableModels::count() const
|
||||||
|
Loading…
Reference in New Issue
Block a user