Skip to content

Commit

Permalink
Merge pull request #21 from CharlesCNorton/patch-5
Browse files Browse the repository at this point in the history
typo: Correct "recieved" to "received" in MistralRequestValidator
  • Loading branch information
patrickvonplaten authored Sep 17, 2024
2 parents bae45b2 + b7cf9d7 commit 88bee5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mistral_common/protocol/instruct/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _validate_tool_calls_followed_by_tool_messages(self, messages: List[UATS]) -
if message.role == Roles.tool:
expected_tool_messages -= 1
elif message.role == Roles.assistant:
# if we have an assistant message and we have not recieved all the function calls
# if we have an assistant message and we have not received all the function calls
# we need to raise an exception
if expected_tool_messages != 0:
raise InvalidMessageStructureException("Not the same number of function calls and responses")
Expand Down

0 comments on commit 88bee5e

Please sign in to comment.