From f571555953ab750a13164e87d64080a11402de9e Mon Sep 17 00:00:00 2001 From: Ted Sanders Date: Sat, 25 Mar 2023 00:14:45 -0700 Subject: [PATCH] updates description of token counting function --- examples/How_to_count_tokens_with_tiktoken.ipynb | 2 +- examples/How_to_format_inputs_to_ChatGPT_models.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/How_to_count_tokens_with_tiktoken.ipynb b/examples/How_to_count_tokens_with_tiktoken.ipynb index afe06582..83d20314 100644 --- a/examples/How_to_count_tokens_with_tiktoken.ipynb +++ b/examples/How_to_count_tokens_with_tiktoken.ipynb @@ -434,7 +434,7 @@ "\n", "Below is an example function for counting tokens for messages passed to `gpt-3.5-turbo-0301` or `gpt-4-0314`.\n", "\n", - "Note that the exact way that messages are converted into tokens may change from model to model, and may even change over time for the same model. Therefore, the counts returned by the function below should be considered an estimate, not a guarantee." + "Note that the exact way that tokens are counted from messages may change from model to model. Consider the counts from the function below an estimate, not a timeless guarantee." ] }, { diff --git a/examples/How_to_format_inputs_to_ChatGPT_models.ipynb b/examples/How_to_format_inputs_to_ChatGPT_models.ipynb index f72a4859..c26af24a 100644 --- a/examples/How_to_format_inputs_to_ChatGPT_models.ipynb +++ b/examples/How_to_format_inputs_to_ChatGPT_models.ipynb @@ -437,7 +437,7 @@ "\n", "You can use the following function to count the number of tokens that a list of messages will use.\n", "\n", - "Note that the exact way that messages are converted into tokens may change from model to model, and may even change over time for the same model. Therefore, the counts returned by the function below should be considered an estimate, not a guarantee.\n", + "Note that the exact way that tokens are counted from messages may change from model to model. Consider the counts from the function below an estimate, not a timeless guarantee.\n", "\n", "Read more about counting tokens in [How to count tokens with tiktoken](How_to_count_tokens_with_tiktoken.ipynb)." ]