Selaa lähdekoodia

change pulled remote file name to lower case

Bruce MacDonald 1 vuosi sitten
vanhempi
commit
e0ccc0c1b7
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      ollama/model.py

+ 1 - 1
ollama/model.py

@@ -41,7 +41,7 @@ def download_from_repo(url, file_name):
 
     location = location.strip('/')
     if file_name == '':
-        file_name = path.basename(location)
+        file_name = path.basename(location).lower()
 
     download_url = urlunsplit(
         (