Browse Source

Using 'GetShortTagname' method instead

Daniel Reis 1 year ago
parent
commit
32d79a6eea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/images.go

+ 1 - 1
server/images.go

@@ -918,7 +918,7 @@ func ShowModelfile(model *Model) (string, error) {
 	mt.From = model.ModelPath
 	mt.From = model.ModelPath
 
 
 	if model.OriginalModel != "" {
 	if model.OriginalModel != "" {
-		mt.From = model.OriginalModel
+		mt.From = ParseModelPath(model.OriginalModel).GetShortTagname()
 	}
 	}
 
 
 	modelFile := `# Modelfile generated by "ollama show"
 	modelFile := `# Modelfile generated by "ollama show"