estimate_token | R Documentation |
Estimate token count
estimate_token(x, mult = 1.6)
x |
character vector |
mult |
the multiplier used |
This function estimates how many tokens the API will make of the input words. For the models 1 word is more than one token. The default multiplier value resulted from testing the API. See <https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them> for more information.
a integer vector of token counts
estimate_token("this is a test")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.