Using 'GetShortTagname' method instead
This commit is contained in:
parent
c5e1bbabda
commit
32d79a6eea
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue