langchain
3df2d831 - Fix get_num_tokens for Anthropic models (#4911)

Commit
2 years ago
Fix get_num_tokens for Anthropic models (#4911) The Anthropic classes used `BaseLanguageModel.get_num_tokens` because of an issue with multiple inheritance. Fixed by moving the method from `_AnthropicCommon` to both its subclasses. This change will significantly speed up token counting for Anthropic users.
Author
Parents
Loading