Explorar el Código

Using 'GetShortTagname' method instead

Daniel Reis hace 1 año
padre
commit
32d79a6eea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 
 	if model.OriginalModel != "" {
-		mt.From = model.OriginalModel
+		mt.From = ParseModelPath(model.OriginalModel).GetShortTagname()
 	}
 
 	modelFile := `# Modelfile generated by "ollama show"