소스 검색

Using 'GetShortTagname' method instead

Daniel Reis 1 년 전
부모
커밋
32d79a6eea
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      server/images.go

+ 1 - 1
server/images.go

@@ -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"