Update libs/text-splitters/langchain_text_splitters/transformers_token.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Mason Daugherty
2025-07-30 20:51:41 -04:00
committed by GitHub
parent b1d0a2d3d7
commit 9f3f662798

View File

@@ -71,7 +71,7 @@ class TransformersTokenTextSplitter(TextSplitter):
if self.tokens_per_chunk > self.maximum_tokens_per_chunk:
msg = (
f"The token limit of the models '{self.model_name}'"
f"The token limit of the model '{self.model_name}'"
f" is: {self.maximum_tokens_per_chunk}."
f" Argument tokens_per_chunk={self.tokens_per_chunk}"
f" > maximum token limit."