fix list models for windows

This commit is contained in:
Michael Yang 2023-08-30 14:14:12 -04:00
parent 0f541a0367
commit eeb40a672c
2 changed files with 14 additions and 27 deletions

View file

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