Browse Source

fix: normalize name path before splitting

Michael Yang 1 year ago
parent
commit
96cfb62641
1 changed files with 1 additions and 0 deletions
  1. 1 0
      server/modelpath.go

+ 1 - 0
server/modelpath.go

@@ -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: