mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 21:33:51 +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
|
This is a simple approximation that may not match the exact token count
|
||||||
used by specific models. For accurate counts, use model-specific tokenizers.
|
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
|
.. versionadded:: 0.3.46
|
||||||
"""
|
"""
|
||||||
token_count = 0.0
|
token_count = 0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user