Merge pull request #1 from aparmar2000/patch-1

automatically convert path to lowercase
This commit is contained in:
mags0ft
2026-03-10 19:11:04 +01:00
committed by GitHub
+1 -1
View File
@@ -19,7 +19,7 @@ def find_model_path(model_name, gguf_in_repo="model.gguf"):
The full path to the cached model, or None if not found
"""
cache_name = model_name.replace("/", "--")
cache_name = model_name.replace("/", "--").lower()
snapshots_dir = os.path.join(
CACHE_DIR, f"models--{cache_name}", "snapshots"
)