diff --git a/server/modelpath.go b/server/modelpath.go index 3fdb4238f..92911542a 100644 --- a/server/modelpath.go +++ b/server/modelpath.go @@ -49,8 +49,7 @@ func ParseModelPath(name string) ModelPath { name = after } - name = strings.ReplaceAll(name, string(os.PathSeparator), "/") - parts := strings.Split(name, "/") + parts := strings.Split(filepath.ToSlash(name), "/") switch len(parts) { case 3: mp.Registry = parts[0]