Commit 32d79a6e authored by Daniel Reis's avatar Daniel Reis
Browse files

Using 'GetShortTagname' method instead

parent c5e1bbab
...@@ -918,7 +918,7 @@ func ShowModelfile(model *Model) (string, error) { ...@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment