mirror of
https://github.com/ollama/ollama.git
synced 2025-04-02 09:00:28 +02:00
Merge pull request #2026 from jmorganca/mxyng/fix-windows
fix: normalize name path before splitting
This commit is contained in:
commit
d5a7353357
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user