Strip protocol from model path (#377)

This commit is contained in:
Ryan Baker
2023-08-21 21:56:56 -07:00
committed by GitHub
parent e3054fc74e
commit 0a892419ad
5 changed files with 231 additions and 43 deletions

View File

@@ -357,7 +357,12 @@ func ListModelsHandler(c *gin.Context) {
return nil
}
tag := path[:slashIndex] + ":" + path[slashIndex+1:]
mp := ParseModelPath(tag)
mp, err := ParseModelPath(tag, false)
if err != nil {
return err
}
manifest, err := GetManifest(mp)
if err != nil {
log.Printf("skipping file: %s", fp)