Using 'GetShortTagname' method instead

This commit is contained in:
Daniel Reis 2023-11-09 22:40:37 +00:00
parent c5e1bbabda
commit 32d79a6eea

View file

@ -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"