mirror of
https://github.com/ollama/ollama.git
synced 2025-04-09 20:29:23 +02: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…
x
Reference in New Issue
Block a user