Update parser.go

Added "control" role to the list of valid roles. (Granite3.2 support)
This commit is contained in:
Xavier Rey-Robert @ IBM 2025-02-27 15:23:20 +01:00 committed by GitHub
parent 76e903cf9d
commit 0749160a24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -557,7 +557,7 @@ func isNewline(r rune) bool {
}
func isValidMessageRole(role string) bool {
return role == "system" || role == "user" || role == "assistant"
return role == "system" || role == "user" || role == "assistant" || role == "control"
}
func isValidCommand(cmd string) bool {