Browse Source

Merge pull request #2026 from jmorganca/mxyng/fix-windows

fix: normalize name path before splitting
Michael Yang 1 năm trước cách đây
mục cha
commit
d5a7353357
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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: