From 0749160a245e653ac9d4095e7f6c1833a813ffbb Mon Sep 17 00:00:00 2001 From: "Xavier Rey-Robert @ IBM" <43029233+XReyRobert-IBM@users.noreply.github.com> Date: Thu, 27 Feb 2025 15:23:20 +0100 Subject: [PATCH] Update parser.go Added "control" role to the list of valid roles. (Granite3.2 support) --- parser/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/parser.go b/parser/parser.go index 6832351fb..a429e4672 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -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 {