mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 16:26:59 +00:00
Merge pull request #2026 from jmorganca/mxyng/fix-windows
fix: normalize name path before splitting
This commit is contained in:
@@ -46,6 +46,7 @@ func ParseModelPath(name string) ModelPath {
|
|||||||
name = after
|
name = after
|
||||||
}
|
}
|
||||||
|
|
||||||
|
name = strings.ReplaceAll(name, string(os.PathSeparator), "/")
|
||||||
parts := strings.Split(name, "/")
|
parts := strings.Split(name, "/")
|
||||||
switch len(parts) {
|
switch len(parts) {
|
||||||
case 3:
|
case 3:
|
||||||
|
|||||||
Reference in New Issue
Block a user