Skip to content

Commit

Permalink
Doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert authored Dec 19, 2024
1 parent 71d7d83 commit 69436ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chatlas/_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,11 @@ def token_count(
extract_data: bool = False,
) -> int:
"""
Get the token count for the given input.
Get an estimated token count for the given input.
This is useful for estimating the number of tokens your input will cost
before sending it to the model.
Estimate the token size of input content. This can help determine whether input(s)
and/or conversation history (i.e., `.get_turns()`) should be reduced in size before
sending it to the model.
Parameters
----------
Expand Down

0 comments on commit 69436ff

Please sign in to comment.