Merge pull request #6109 from ollama/mxyng/fix-modelfile

fix modelfile message quotes
This commit is contained in:
Michael Yang 2024-07-31 17:05:43 -07:00 committed by GitHub
commit 3e614260af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,7 +184,7 @@ func (m *Model) String() string {
for _, msg := range m.Messages {
modelfile.Commands = append(modelfile.Commands, parser.Command{
Name: "message",
Args: fmt.Sprintf("%s %s", msg.Role, msg.Content),
Args: fmt.Sprintf("%s: %s", msg.Role, msg.Content),
})
}