Skip to content

Bug #24901 Fix. #1

Open
ttarpinyan wants to merge 1 commit intomasterfrom
ttarpinyan-bug-24901-patch-1
Open

Bug #24901 Fix. #1
ttarpinyan wants to merge 1 commit intomasterfrom
ttarpinyan-bug-24901-patch-1

Conversation

@ttarpinyan
Copy link
Owner

Description: This pull request fixes langchain-ai#24901.

get_num_tokens_from_messages method in langchain_openai/chat_models/base.py generates "TypeError: expected string or buffer" error

It modifies the libs/partners/openai/langchain_openai/chat_models/base.py file.

Issue: langchain-ai#24901

@ttarpinyan
Copy link
Owner Author

Let me know if you need more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_num_tokens_from_messages method in langchain_openai/chat_models/base.py generates "TypeError: expected string or buffer" error

1 participant