Ver Fonte

change pulled remote file name to lower case

Bruce MacDonald há 1 ano atrás
pai
commit
e0ccc0c1b7
1 ficheiros alterados com 1 adições e 1 exclusões
  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(
         (