Skip to content

Commit

Permalink
Merge branch 'cc/anthropic_313' of github.com:langchain-ai/langchain …
Browse files Browse the repository at this point in the history
…into cc/anthropic_313
  • Loading branch information
ccurme committed Nov 12, 2024
2 parents 6a7528a + 9e908d4 commit def6106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/partners/openai/langchain_openai/chat_models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit def6106

Please sign in to comment.