Commit d1773035 authored by Daniel Reis's avatar Daniel Reis
Browse files

Removed inline parse model path

parent 32d79a6e
...@@ -918,7 +918,8 @@ func ShowModelfile(model *Model) (string, error) { ...@@ -918,7 +918,8 @@ func ShowModelfile(model *Model) (string, error) {
mt.From = model.ModelPath mt.From = model.ModelPath
if model.OriginalModel != "" { if model.OriginalModel != "" {
mt.From = ParseModelPath(model.OriginalModel).GetShortTagname() mp := ParseModelPath(model.OriginalModel)
mt.From = mp.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