Sfoglia il codice sorgente

fix modelfile message quotes

Michael Yang 9 mesi fa
parent
commit
d87b4a488e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      server/images.go

+ 1 - 1
server/images.go

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