diff --git a/src/mistral_common/tokens/tokenizers/sentencepiece.py b/src/mistral_common/tokens/tokenizers/sentencepiece.py index d3a92c4..8cd2a9c 100644 --- a/src/mistral_common/tokens/tokenizers/sentencepiece.py +++ b/src/mistral_common/tokens/tokenizers/sentencepiece.py @@ -157,7 +157,7 @@ def encode_user_message( system_prompt: Optional[str] = None, ) -> List[int]: assert message.content is not None - assert isinstance(message.content, str), "Message content must be nornmalized" + assert isinstance(message.content, str), "Message content must be normalized" content = "" if is_first and system_prompt: content = system_prompt + "\n\n" + message.content @@ -208,7 +208,7 @@ def encode_user_message( system_prompt: Optional[str] = None, ) -> List[int]: assert message.content is not None - assert isinstance(message.content, str), "Message content must be nornmalized" + assert isinstance(message.content, str), "Message content must be normalized" content = "" tools_tokens: List[int] = [] if is_last and available_tools: