s/DisplayLongest/String/
This commit is contained in:
parent
d245460362
commit
f5e8b207fb
1 changed files with 3 additions and 3 deletions
|
@ -23,15 +23,15 @@ type layerWithGGML struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseFromModel(ctx context.Context, name model.Name, fn func(api.ProgressResponse)) (layers []*layerWithGGML, err error) {
|
func parseFromModel(ctx context.Context, name model.Name, fn func(api.ProgressResponse)) (layers []*layerWithGGML, err error) {
|
||||||
modelpath := ParseModelPath(name.DisplayLongest())
|
modelpath := ParseModelPath(name.String())
|
||||||
manifest, _, err := GetManifest(modelpath)
|
manifest, _, err := GetManifest(modelpath)
|
||||||
switch {
|
switch {
|
||||||
case errors.Is(err, os.ErrNotExist):
|
case errors.Is(err, os.ErrNotExist):
|
||||||
if err := PullModel(ctx, name.DisplayLongest(), ®istryOptions{}, fn); err != nil {
|
if err := PullModel(ctx, name.String(), ®istryOptions{}, fn); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
modelpath = ParseModelPath(name.DisplayLongest())
|
modelpath = ParseModelPath(name.String())
|
||||||
manifest, _, err = GetManifest(modelpath)
|
manifest, _, err = GetManifest(modelpath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in a new issue