mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-11-04 12:12:21 +01:00
chore(publication): close pre-integration release blockers
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user