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

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),
})
}