mirror of https://github.com/hwchase17/langchain
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.pull/2675/head^2
parent
c8c2276ccb
commit
3df2d831f9
Loading…
Reference in New Issue