fix(cache): share the orphaned-.incomplete check with /models/status

This commit is contained in:
jamiepine
2026-10-04 00:00:28 +00:00
committed by capy-ai-staging[bot]
parent f62aff0809
commit e86a2dcaa5
3 changed files with 26 additions and 17 deletions
+2 -2
View File
@@ -20,10 +20,10 @@ from typing import Optional
_SOURCE = (Path(__file__).parent.parent / "backends" / "base.py").read_text()
_MODULE = ast.parse(_SOURCE)
_FUNC_SRC = next(
_FUNC_SRC = "\n\n".join(
ast.get_source_segment(_SOURCE, node)
for node in _MODULE.body
if isinstance(node, ast.FunctionDef) and node.name == "is_model_cached"
if isinstance(node, ast.FunctionDef) and node.name in ("has_in_progress_download", "is_model_cached")
)
_namespace = {