Restore Models branch manifest lookup

This commit is contained in:
firestar5683
2026-08-15 18:28:59 -05:00
parent 22ee337762
commit 7a54b630fc
2 changed files with 2 additions and 10 deletions
+1 -6
View File
@@ -182,12 +182,7 @@ class ModelManager:
@staticmethod
def _manifest_paths(manifest_version: str) -> tuple[str, ...]:
# Manifests are kept at the root of the Models branch; retain the nested
# path for older resource checkouts that stored them beside artifacts.
return (
f"model_names_{manifest_version}.json",
f"Models/model_names_{manifest_version}.json",
)
return (f"Models/model_names_{manifest_version}.json",)
def _set_model_param_keys(self, model_key: str | None = None, model_name: str | None = None, model_version: str | None = None):
if model_key is not None and model_key != "":
@@ -20,10 +20,7 @@ def test_v24_is_the_only_manifest_candidate():
def test_v24_manifest_is_loaded_from_models_checkout():
assert ModelManager._manifest_paths("v24") == (
"model_names_v24.json",
"Models/model_names_v24.json",
)
assert ModelManager._manifest_paths("v24") == ("Models/model_names_v24.json",)
def test_old_manifest_ids_resolve_to_v23_namespace():