Skip to content

Commit

Permalink
Bugfix: use consistent capitalization in keys and roles of messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rhennigan committed Nov 1, 2023
1 parent 37e9711 commit 6709e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Chatbook/SendChat.wl
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,8 @@ toolEvaluation[ settings_, container_Symbol, cell_, as_Association ] := Enclose[
newMessages = Join[
messages,
{
<| "role" -> "assistant", "content" -> StringTrim @ string <> "\nENDTOOLCALL" |>,
<| "role" -> "system" , "content" -> ToString @ output |>
<| "Role" -> "assistant", "Content" -> StringTrim @ string <> "\nENDTOOLCALL" |>,
<| "Role" -> "system" , "Content" -> ToString @ output |>
}
];

Expand Down

0 comments on commit 6709e8d

Please sign in to comment.