Skip to main content

Filter: classifai_openai_tokens_per_word

How many tokens a word will take (roughly)

Parameters

NameTypeDescription
$this->tokens_per_wordfloatHow many tokens a word will take (roughly)
$max_tokensintMaximum tokens the model supports.

Since

  • 2.4.0

Source

Defined in includes/Classifai/Providers/OpenAI/Tokenizer.php at line 63

Returns

Filtered number of tokens per word.

Ready to Get Started?

ClassifAI is a Free WordPress plugin that connects to your choice of AI platforms.