Skip to content

Commit

Permalink
Take suggestion from CR
Browse files Browse the repository at this point in the history
Co-authored-by: Matt <Rocketknight1@users.noreply.github.com>
  • Loading branch information
tibor-reiss and Rocketknight1 authored Sep 23, 2024
1 parent a287e5e commit f14d063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/tokenization_utils_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f14d063

Please sign in to comment.