diff --git a/src/transformers/tokenization_utils_base.py b/src/transformers/tokenization_utils_base.py index d2d332d0265f54..c6467bb7d7f7d1 100644 --- a/src/transformers/tokenization_utils_base.py +++ b/src/transformers/tokenization_utils_base.py @@ -1968,7 +1968,7 @@ def get_chat_template(self, chat_template: Optional[str] = None, tools: Optional chat_template = self.chat_template else: raise ValueError( - "Cannot use get_chat_template() because tokenizer.chat_template is not set and no template " + "Cannot use chat template functions because tokenizer.chat_template is not set and no template " "argument was passed! For information about writing templates and setting the " "tokenizer.chat_template attribute, please see the documentation at " "https://huggingface.co/docs/transformers/main/en/chat_templating"