Removed inline parse model path
This commit is contained in:
parent
32d79a6eea
commit
d17730356a
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue