mirror of
https://github.com/ollama/ollama
synced 2026-04-23 08:45:14 +00:00
Update parser.go
Added "control" role to the list of valid roles. (Granite3.2 support)
This commit is contained in:
parent
76e903cf9d
commit
0749160a24
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue