Skip to content

Commit ebfdfe3

Browse files
Merge pull request openai#281 from openai/ted/update-verbiage-on-tokenization
updates description of token counting function
2 parents 8610529 + 7622aa1 commit ebfdfe3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/How_to_count_tokens_with_tiktoken.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@
434434
"\n",
435435
"Below is an example function for counting tokens for messages passed to `gpt-3.5-turbo-0301` or `gpt-4-0314`.\n",
436436
"\n",
437-
"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."
437+
"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."
438438
]
439439
},
440440
{

examples/How_to_format_inputs_to_ChatGPT_models.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
"\n",
438438
"You can use the following function to count the number of tokens that a list of messages will use.\n",
439439
"\n",
440-
"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",
440+
"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",
441441
"\n",
442442
"Read more about counting tokens in [How to count tokens with tiktoken](How_to_count_tokens_with_tiktoken.ipynb)."
443443
]

0 commit comments

Comments
 (0)