fix: downloaded model hub screen should from variant level instead of the model level

This commit is contained in:
Faisal Amir 2025-08-19 21:55:57 +07:00
parent 926f3ab99a
commit 9e3237da38

View File

@ -146,13 +146,14 @@ function Hub() {
}
// Apply downloaded filter
if (showOnlyDownloaded) {
filtered = filtered?.filter((model) =>
model.quants.some((variant) =>
filtered = filtered?.map((model) => ({
...model,
quants: model.quants.filter((variant) =>
llamaProvider?.models.some(
(m: { id: string }) => m.id === variant.model_id
)
)
)
})).filter((model) => model.quants.length > 0)
}
// Add HuggingFace repo at the beginning if available
if (huggingFaceRepo) {