fix: remove ollama backend filter conflict (#613)

This commit is contained in:
Christopher Milian
2026-06-01 22:48:35 -04:00
committed by GitHub
parent 5645cce6d0
commit 35ba56fa0c

View File

@@ -1513,7 +1513,10 @@ export async function _fetchCachedModels() {
const data = await res.json();
_dlWp.destroy();
const ready = data.models.filter(m => m.status === 'ready' && (m.backend === 'ollama' || !m.size.includes('MB')));
// CHANGELOG: 'ready' already excludes partial downloads;
// show every complete model regardless of size/backend.
const ready = data.models.filter(m => m.status === 'ready');
const downloading = data.models.filter(m => m.status === 'downloading');
const allModels = [...ready, ...downloading];
_cachedAllModels = allModels;