fix typo in modelfile generation (#4439)

This commit is contained in:
Patrick Devine 2024-05-14 15:34:29 -07:00 committed by GitHub
parent c344da4c5a
commit f2cf97d6f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -709,7 +709,7 @@ func GetModelInfo(req api.ShowRequest) (*api.ShowResponse, error) {
}
var sb strings.Builder
fmt.Fprintln(&sb, "# Modelfile generate by \"ollama show\"")
fmt.Fprintln(&sb, "# Modelfile generated by \"ollama show\"")
fmt.Fprintln(&sb, "# To build a new Modelfile based on this, replace FROM with:")
fmt.Fprintf(&sb, "# FROM %s\n\n", model.ShortName)
fmt.Fprint(&sb, model.String())