mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-17 10:15:27 -04:00
fix: remove ollama backend filter conflict (#613)
This commit is contained in:
committed by
GitHub
parent
5645cce6d0
commit
35ba56fa0c
@@ -1513,7 +1513,10 @@ export async function _fetchCachedModels() {
|
|||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
_dlWp.destroy();
|
_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 downloading = data.models.filter(m => m.status === 'downloading');
|
||||||
const allModels = [...ready, ...downloading];
|
const allModels = [...ready, ...downloading];
|
||||||
_cachedAllModels = allModels;
|
_cachedAllModels = allModels;
|
||||||
|
|||||||
Reference in New Issue
Block a user