mirror of
https://github.com/hwchase17/langchain.git
synced 2025-04-28 11:55:21 +00:00
docs[patch]: add warning to token counter docstring (#30426)
This commit is contained in:
parent
3933a4abc3
commit
673ec00030
@ -1529,6 +1529,9 @@ def count_tokens_approximately(
|
||||
This is a simple approximation that may not match the exact token count
|
||||
used by specific models. For accurate counts, use model-specific tokenizers.
|
||||
|
||||
Warning:
|
||||
This function does not currently support counting image tokens.
|
||||
|
||||
.. versionadded:: 0.3.46
|
||||
"""
|
||||
token_count = 0.0
|
||||
|
Loading…
Reference in New Issue
Block a user