Skip to main content

Filter: classifai_ollama_embeddings_max_tokens

Filter the max number of tokens.

Useful if you want to change to a different model that uses a different number of tokens, or be more strict on the amount of tokens that can be used.

Parameters​

NameTypeDescription
$modelintThe default maximum tokens.

Since​

  • 3.3.0

Source​

Defined in includes/Classifai/Providers/Localhost/OllamaEmbeddings.php at line 182

Returns​

The maximum tokens.

Ready to Get Started?

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