mirror of
https://github.com/cloudstack-llc/ollama.git
synced 2026-07-18 20:44:44 -04:00
fix: normalize name path before splitting
This commit is contained in:
@@ -46,6 +46,7 @@ func ParseModelPath(name string) ModelPath {
|
||||
name = after
|
||||
}
|
||||
|
||||
name = strings.ReplaceAll(name, string(os.PathSeparator), "/")
|
||||
parts := strings.Split(name, "/")
|
||||
switch len(parts) {
|
||||
case 3:
|
||||
|
||||
Reference in New Issue
Block a user