Skip to content

Commit

Permalink
Set role and content from transformers
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler committed Dec 7, 2024
1 parent d611d16 commit 4e8fed4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/templates/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ func (e *Evaluator) templateJinjaChat(templateName string, messageData []ChatMes
// TODO: this is not correct, we have to map jinja tokenizer template from transformers to our own

messages = append(messages, map[string]interface{}{
"Role": message.Role,
"RoleName": message.RoleName,
"Content": message.Content,
//"role": message.Role,
"role": message.RoleName,
"content": message.Content,
"FunctionCall": message.FunctionCall,
"FunctionName": message.FunctionName,
"LastMessage": message.LastMessage,
Expand Down

0 comments on commit 4e8fed4

Please sign in to comment.