Merge 16510440e86d0736d3695ecad9d2bc6c28c71b7c into 67691e410db7a50b07a64858820b14de9aa91314

This commit is contained in:
Shiming Zhang 2024-11-14 16:21:15 +08:00 committed by GitHub
commit 59585261b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,6 +61,10 @@ func ParseModelPath(name string) ModelPath {
mp.Repository = parts[1]
case 1:
mp.Repository = parts[0]
default:
mp.Registry = parts[0]
mp.Namespace = strings.Join(parts[1:len(parts)-1], "/")
mp.Repository = parts[len(parts)-1]
}
if repo, tag, found := strings.Cut(mp.Repository, ":"); found {