Filter: classifai_openai_tokens_per_word

apply_filters( 'classifai_openai_tokens_per_word', $tokens_per_word, $max_tokens ) → {int}

How many tokens a word will take (roughly)

Parameters:
Name Type Description
$tokens_per_word int

How many tokens a word will take (roughly)

$max_tokens int

Maximum tokens the model supports.

Since:
  • 2.4.0
Source:
Returns:
Type
int