chore(publication): close pre-integration release blockers

This commit is contained in:
Alexandre Teixeira
2026-10-05 01:37:49 +01:00
parent 3d3aee2093
commit dab660543b
77 changed files with 4074 additions and 83103 deletions
+5 -2
View File
@@ -282,7 +282,7 @@ def reset_model_cache():
def refresh_dynamic_catalogs(force=False):
"""Refresh API-backed model catalogs and invalidate the merged cache.
The bundled JSON files remain the offline fallback. Dynamic catalogs live
The bundled JSON lists are intentionally empty. Dynamic catalogs live
under DATA_DIR so runtime refreshes do not dirty the source tree.
"""
from services.hwfit.hf_discovery import (
@@ -324,6 +324,7 @@ def get_models():
seen.add(name)
rows.append(_normalize_model_entry(model))
_append_models(_load_model_file(model_catalog_path()))
for model in _load_model_file(data_path):
if not isinstance(model, dict):
continue
@@ -340,4 +341,6 @@ def get_models():
def model_catalog_path():
return os.path.join(os.path.dirname(__file__), "data", "hf_models.json")
"""Mutable user catalog populated by the maintenance scripts."""
from src.constants import DATA_DIR
return os.path.join(DATA_DIR, "hwfit", "hf_models.json")