Skip to content

Commit

Permalink
Update libs/partners/openai/langchain_openai/chat_models/base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Bagatur <[email protected]>
  • Loading branch information
ccurme and baskaryan authored Nov 12, 2024
1 parent 29ba5fd commit 9e908d4
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.")

Check failure on line 914 in libs/partners/openai/langchain_openai/chat_models/base.py

View workflow job for this annotation

GitHub Actions / cd libs/partners/openai / make lint #3.13

Ruff (E501)

langchain_openai/chat_models/base.py:914:89: E501 Line too long (98 > 88)

Check failure on line 914 in libs/partners/openai/langchain_openai/chat_models/base.py

View workflow job for this annotation

GitHub Actions / cd libs/partners/openai / make lint #3.9

Ruff (E501)

langchain_openai/chat_models/base.py:914:89: E501 Line too long (98 > 88)
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 9e908d4

Please sign in to comment.