Merge pull request #426 from jmorganca/default-template

set default template
This commit is contained in:
Michael Yang 2023-08-26 14:15:38 -07:00 committed by GitHub
commit 495e8b0a6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,6 +165,7 @@ func GetModel(name string) (*Model, error) {
model := &Model{ model := &Model{
Name: mp.GetFullTagname(), Name: mp.GetFullTagname(),
Digest: manifest.Config.Digest, Digest: manifest.Config.Digest,
Template: "{{ .Prompt }}",
} }
for _, layer := range manifest.Layers { for _, layer := range manifest.Layers {