fix(windows): modelpath and list

This commit is contained in:
Michael Yang
2023-12-15 15:50:51 -08:00
parent 2bb2bdd5d4
commit 2b9892a808
2 changed files with 9 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ func ParseModelPath(name string) ModelPath {
name = after
}
parts := strings.Split(name, string(os.PathSeparator))
parts := strings.Split(name, "/")
switch len(parts) {
case 3:
mp.Registry = parts[0]