From 69436ffa30ca0fec1d8d37a85a91ee7d237b4cc9 Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Thu, 19 Dec 2024 09:51:18 -0600 Subject: [PATCH] Doc improvements --- chatlas/_chat.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/chatlas/_chat.py b/chatlas/_chat.py index bc6986f..e54be9e 100644 --- a/chatlas/_chat.py +++ b/chatlas/_chat.py @@ -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 ----------