diff --git a/libs/partners/openai/langchain_openai/chat_models/base.py b/libs/partners/openai/langchain_openai/chat_models/base.py index ca73ed21b8ac4..6c40a17777bd0 100644 --- a/libs/partners/openai/langchain_openai/chat_models/base.py +++ b/libs/partners/openai/langchain_openai/chat_models/base.py @@ -911,7 +911,7 @@ def get_num_tokens_from_messages( """ # TODO: Count bound tools as part of input. if tools is not None: - warnings.warn("Counting tokens in tool schemas is not yet supported.") + warnings.warn("Counting tokens in tool schemas is not yet supported. Ignoring tools.") if sys.version_info[1] <= 7: return super().get_num_tokens_from_messages(messages) model, encoding = self._get_encoding_model()