docs: fix trim_messages docstring (#27948)

This commit is contained in:
Bagatur 2024-11-06 14:25:13 -08:00 committed by GitHub
parent 14f1827953
commit 60123bef67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -590,7 +590,7 @@ def trim_messages(
include_system: bool = False,
text_splitter: Optional[Union[Callable[[str], list[str]], TextSplitter]] = None,
) -> list[BaseMessage]:
"""Trim messages to be below a token count.
r"""Trim messages to be below a token count.
trim_messages can be used to reduce the size of a chat history to a specified token
count or specified message count.