From d17730356a2dac57d61a158d3d43431e23f833c6 Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Thu, 9 Nov 2023 22:44:26 +0000 Subject: [PATCH] Removed inline parse model path --- server/images.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/images.go b/server/images.go index f0a55d3b..e16f4bb4 100644 --- a/server/images.go +++ b/server/images.go @@ -918,7 +918,8 @@ func ShowModelfile(model *Model) (string, error) { mt.From = model.ModelPath if model.OriginalModel != "" { - mt.From = ParseModelPath(model.OriginalModel).GetShortTagname() + mp := ParseModelPath(model.OriginalModel) + mt.From = mp.GetShortTagname() } modelFile := `# Modelfile generated by "ollama show"